diff --git a/01_Matlab/01_Libraries/01_Controller/BLDC_controller_Lib.slx b/01_Matlab/01_Libraries/01_Controller/BLDC_controller_Lib.slx index 545ac3c..7d74270 100644 Binary files a/01_Matlab/01_Libraries/01_Controller/BLDC_controller_Lib.slx and b/01_Matlab/01_Libraries/01_Controller/BLDC_controller_Lib.slx differ diff --git a/01_Matlab/02_Figures/control_methods.png b/01_Matlab/02_Figures/control_methods.png index 303777e..ee612d8 100644 Binary files a/01_Matlab/02_Figures/control_methods.png and b/01_Matlab/02_Figures/control_methods.png differ diff --git a/01_Matlab/03_CreateParamTable/tableParamType.xlsx b/01_Matlab/03_CreateParamTable/tableParamType.xlsx index 466781f..20aa626 100644 Binary files a/01_Matlab/03_CreateParamTable/tableParamType.xlsx and b/01_Matlab/03_CreateParamTable/tableParamType.xlsx differ 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 cab615f..36f4043 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview.json @@ -79,7 +79,28 @@ 67, 68, 69, - 70 + 70, + 71, + 72, + 73, + 74, + 75, + 76, + 77, + 78, + 79, + 80, + 81, + 82, + 83, + 84, + 85, + 86, + 87, + 88, + 89, + 90, + 91 ], "hierarchyUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_h_1.json", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_m.json" diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.json new file mode 100644 index 0000000..3613553 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.json @@ -0,0 +1,231 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10012", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_inpTgtScaDft", + "label":"r_inpTgtScaDft", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10007", + "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:10009", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10007", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "reset", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10008", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtScaRaw", + "label":"r_inpTgtScaRaw", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10007", + "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:10008#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10007", + "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_10007_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.png new file mode 100644 index 0000000..cf0341e Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.svg new file mode 100644 index 0000000..6322f48 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.svg @@ -0,0 +1,190 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtScaDft + + + + + + + + + + + + + + + + + + + + + + + + + + else { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtScaRaw + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.json new file mode 100644 index 0000000..8fc5151 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.json @@ -0,0 +1,693 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10035:576", + "className":"Simulink.Annotation", + "icon":"WebViewIcon2", + "name":"

Modulo implementation: rem = num - div*(num/div)

Note: Division and multiplier has the setting 'Floor'

", + "label":"

Modulo implementation: rem = num - div*(num/div)

Note: Division and multiplier has the setting 'Floor'

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

Modulo implementation: rem = num - div*(num/div)

\n

Note: Division and multiplier has the setting 'Floor'

", + "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:10035:572", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "*/", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(1,16,0)", + "off", + "Floor", + "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:10035:574", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|+-", + "off", + "Inherit: Same as first input", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10035:573", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide3", + "label":"Divide3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Floor", + "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:10035:570", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"num", + "label":"num", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "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:10035:571", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"div", + "label":"div", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "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:10035:575", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"rem", + "label":"rem", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "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:10035:572#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "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:10035:571#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "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:10035:573#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "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:10035:574#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "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:10035:570#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "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_10035_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.png new file mode 100644 index 0000000..3c78827 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.svg new file mode 100644 index 0000000..5052248 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.svg @@ -0,0 +1,523 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Modulo implementation: + rem = num - div*(num/div) + + + + + + + + Note + : Division and multiplier has the setting 'Floor' + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + num + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + div + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + rem + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.json new file mode 100644 index 0000000..3d3af8d --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.json @@ -0,0 +1,3243 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10523", + "className":"Simulink.Annotation", + "icon":"WebViewIcon2", + "name":"

Field Weakening / Phase Advance

", + "label":"

Field Weakening / Phase Advance

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

Field Weakening / Phase Advance

", + "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:10522", + "className":"Simulink.Annotation", + "icon":"WebViewIcon2", + "name":"

This blendig factor is a number between [0, 1]. It manages the Field weakening amount, ranging from 0 to a calibratable Max value.

", + "label":"

This blendig factor is a number between [0, 1]. It manages the Field weakening amount, ranging from 0 to a calibratable Max value.

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

This blendig factor is a number between [0, 1]. It manages the Field weakening amount, ranging from 0 to a calibratable Max value.

", + "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:10521", + "className":"Simulink.Annotation", + "icon":"WebViewIcon2", + "name":"

Calculate Blending Factor

", + "label":"

Calculate Blending Factor

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

Calculate Blending Factor

", + "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:10518", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"r_fieldWeakHi", + "label":"r_fieldWeakHi", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "r_fieldWeakHi", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10517", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"n_fieldWeakAuthLo", + "label":"n_fieldWeakAuthLo", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "n_fieldWeakAuthLo", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10519", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"r_fieldWeakLo", + "label":"r_fieldWeakLo", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "r_fieldWeakLo", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10516", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"n_fieldWeakAuthHi", + "label":"n_fieldWeakAuthHi", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "n_fieldWeakAuthHi", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10513", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10512", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum4", + "label":"Sum4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10511", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10509", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10506", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator1", + "label":"Relational Operator1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10504", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto27", + "label":"Goto27", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10503", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto22", + "label":"Goto22", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10502", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10500", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From8", + "label":"From8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10514", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"a_phaAdvMax", + "label":"a_phaAdvMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "a_phaAdvMax", + "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:10499", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From24", + "label":"From24", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic", + "label":"Saturation Dynamic", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10498", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10497", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10493", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide14", + "label":"Divide14", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "*/", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(0,16,15)", + "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:10494", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(0,16,15)", + "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:10492", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide1", + "label":"Divide1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "*/", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(0,16,15)", + "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:10491", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM2", + "label":"CTRL_COMM2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "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/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10495", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide3", + "label":"Divide3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10489", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10496", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_blendFactor", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10490", + "className":"Simulink.Abs", + "icon":"WebViewIcon3", + "name":"Abs5", + "label":"Abs5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime", + "ZeroCross" + ], + "values":[ + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "-1", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Abs", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10510", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10488", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"n_motAbs", + "label":"n_motAbs", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10505", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_blendFactor", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10487", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgt", + "label":"r_inpTgt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10508", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10501", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10486", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlTypSel", + "label":"z_ctrlTypSel", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10520", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_fieldWeak ", + "label":"r_fieldWeak ", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "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:10515", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"id_fieldWeakMax", + "label":"id_fieldWeakMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "id_fieldWeakMax", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10514#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10500#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10513#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10517#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10491#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10506#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10498#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10488#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10493#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10507#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10516#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10492#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10512#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10496#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10511#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10515#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10499#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10508#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10494#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10510#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10490#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10486#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10487#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10518#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10519#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10495#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10509#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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:10497#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "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_10066_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.png new file mode 100644 index 0000000..392943e Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.svg new file mode 100644 index 0000000..739f497 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.svg @@ -0,0 +1,2800 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Field Weakening / Phase Advance + + + + + + + + + + + + + + + + + + + This blendig factor is a number between [0, 1]. + + + + + + + + It manages the Field weakening amount, + + + + + + + + ranging from 0 to a calibratable Max value. + + + + + + + + + + + + + + + + + + + Calculate Blending Factor + + + + + + + + + + + + + + + + + + + + + + + + r_fieldWeakHi + + + + + + + + + + + + + + + + + + + + + + r_fieldWeakHi + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + n_fieldWeakAuthLo + + + + + + + + + + + + + + + + + + + + + + n_fieldWeakAuthLo + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + r_fieldWeakLo + + + + + + + + + + + + + + + + + + + + + + r_fieldWeakLo + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + n_fieldWeakAuthHi + + + + + + + + + + + + + + + + + + + + + + n_fieldWeakAuthHi + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + a_phaAdvMax + + + + + + + + + + + + + + + + + + + + + + a_phaAdvMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ufix16_En15 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ufix16_En15 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ufix16_En15 + + + + + + + + + + + + + + + + + + + + + + + + + + CTRL_FOC + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + [r_blendFactor] + + + + + + + + + + + + + + + + + + + + + + ufix16_En15 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + n_motAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_blendFactor] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + r_inpTgt + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + z_ctrlTypSel + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_fieldWeak + + + + + + + + + + + + + + + + + + + + + + + + + + id_fieldWeakMax + + + + + + + + + + + + + + + + + + + + + + id_fieldWeakMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.json new file mode 100644 index 0000000..93f4284 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.json @@ -0,0 +1,889 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10169", + "className":"Simulink.Annotation", + "icon":"WebViewIcon2", + "name":"

Task Squeduler: This creates a pulse train for alternating task squeduling in series.

", + "label":"

Task Squeduler: This creates a pulse train for alternating task squeduling in series.

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

Task Squeduler: This creates a pulse train for alternating task squeduling in series.

", + "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:10186", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"task3", + "label":"task3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10185", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay6", + "label":"UnitDelay6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "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:10162", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay4", + "label":"UnitDelay4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "1", + "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:10167", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"task1", + "label":"task1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10183", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay2", + "label":"UnitDelay2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "1", + "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:10168", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"task2", + "label":"task2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10190", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion", + "label":"Data Type Conversion", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "boolean", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10184", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay5", + "label":"UnitDelay5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "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:10163", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"Logical Operator2", + "label":"Logical Operator2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "NOT", + "2", + "rectangular", + "off", + "boolean", + "-1" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 5 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Logic", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10162#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "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:10163#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "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:10183#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "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:10184#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "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:10185#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "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:10190#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "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_10164_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.png new file mode 100644 index 0000000..f2559f1 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.svg new file mode 100644 index 0000000..7606b2f --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.svg @@ -0,0 +1,875 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Task Squeduler + : This creates a pulse train for + + + + + + + + alternating task squeduling in series. + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + task3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + task1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=1 + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + task2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.json new file mode 100644 index 0000000..c4481e4 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.json @@ -0,0 +1,7284 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10370", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vd", + "label":"Vd", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Vd_Calculation", + "label":"Vd_Calculation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Speed_Mode", + "label":"Speed_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Voltage_Mode", + "label":"Voltage_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10425", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto9", + "label":"Goto9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10391", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto8", + "label":"Goto8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10424", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10368", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vq", + "label":"Vq", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "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:10420", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_nLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8852", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto30", + "label":"Goto30", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10388", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10413", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto29", + "label":"Goto29", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10387", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto27", + "label":"Goto27", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10411", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto19", + "label":"Goto19", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9715", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If1", + "label":"If1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 ~= 0", + "", + "off", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10410", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto18", + "label":"Goto18", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vd_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10735", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto21", + "label":"Goto21", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10409", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto17", + "label":"Goto17", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vd_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10723", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto16", + "label":"Goto16", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9108", + "className":"Simulink.SwitchCase", + "icon":"WebViewIcon3", + "name":"Switch Case", + "label":"Switch Case", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "CaseConditions", + "ShowDefaultCase", + "SampleTime", + "ZeroCross" + ], + "values":[ + "{VLT_MODE, SPD_MODE, TRQ_MODE}", + "on", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SwitchCase", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8834", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto14", + "label":"Goto14", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_Vlt", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10427", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_mot", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8831", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto11", + "label":"Goto11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_Trq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8830", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto10", + "label":"Goto10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_Open", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10030", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From9", + "label":"From9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8823", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From67", + "label":"From67", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10367", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8813", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From58", + "label":"From58", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8812", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From57", + "label":"From57", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8814", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From59", + "label":"From59", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8808", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From53", + "label":"From53", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10742", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8803", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From48", + "label":"From48", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_Trq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10722", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto15", + "label":"Goto15", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_iqLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10419", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8793", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From38", + "label":"From38", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8824", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From68", + "label":"From68", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_limProtErr", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8792", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From37", + "label":"From37", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8791", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From36", + "label":"From36", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_mot", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8832", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto12", + "label":"Goto12", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_Spd", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10724", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_iqLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8777", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From20", + "label":"From20", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10730", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8774", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From18", + "label":"From18", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8771", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From14", + "label":"From14", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10408", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_Tgt", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8770", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_Tgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Torque_Mode", + "label":"Torque_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8766", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8765", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8809", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From54", + "label":"From54", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10366", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10417", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vq_nLimProtMax", + "label":"Vq_nLimProtMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "20", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10416", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq_limProtErr", + "label":"iq_limProtErr", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "19", + "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:10720", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_iqLimProtMax", + "label":"r_iqLimProtMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "17", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10423", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq_min", + "label":"iq_min", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "16", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10721", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_nLimProtMax", + "label":"r_nLimProtMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "18", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10422", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq_max", + "label":"iq_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "15", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8816", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From60", + "label":"From60", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10407", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"id_min", + "label":"id_min", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "14", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8780", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From25", + "label":"From25", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8800", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From45", + "label":"From45", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10369", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10415", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vq_min", + "label":"Vq_min", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "12", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10398", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10414", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vq_max", + "label":"Vq_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "11", + "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:10405", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vd_min", + "label":"Vd_min", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "10", + "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:8799", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From44", + "label":"From44", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8773", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From16", + "label":"From16", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10404", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vd_max", + "label":"Vd_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "9", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8789", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From34", + "label":"From34", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8802", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From47", + "label":"From47", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_Spd", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10397", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq", + "label":"iq", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "8", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8779", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From23", + "label":"From23", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10402", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"id_Tgt", + "label":"id_Tgt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:8912", + "className":"Simulink.Merge", + "icon":"WebViewIcon3", + "name":"Merge", + "label":"Merge", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets", + "Inputs" + ], + "values":[ + "[]", + "off", + "[]", + "4" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Merge", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10734", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtScaAbs", + "label":"r_inpTgtScaAbs", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8801", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From46", + "label":"From46", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_Vlt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10418", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10421", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto31", + "label":"Goto31", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_limProtErr", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8804", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From49", + "label":"From49", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_Open", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9029", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Open_Mode", + "label":"Open_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10372", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlMod", + "label":"z_ctrlMod", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "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:10403", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"id", + "label":"id", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:10412", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8841", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto20", + "label":"Goto20", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10406", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"id_max", + "label":"id_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "13", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10426", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"n_mot", + "label":"n_mot", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:10371", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_enaAdvCtrl", + "label":"b_enaAdvCtrl", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10373", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8766#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8770#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8779#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:9029#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:9109#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:9074#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:9171#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8765#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8773#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8777#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8774#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8780#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8789#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8791#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8799#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8793#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8792#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8800#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:9108#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:9108#out:2", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:9108#out:3", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:9108#out:4", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8801#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8802#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8803#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8804#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8912#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8808#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8809#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8812#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8813#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8814#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8816#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8823#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:8824#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:9143#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10364", + "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:9715#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10030#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10367#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10369#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10373#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10372#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10371#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10397#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10407#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10406#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10404#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10402#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10403#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10405#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10415#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10414#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10417#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10416#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10423#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10422#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10426#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10720#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10721#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10724#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10730#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10734#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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:10742#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "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_10364_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.png new file mode 100644 index 0000000..d572ef3 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.svg new file mode 100644 index 0000000..1061140 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.svg @@ -0,0 +1,5814 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + Vd + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + id_Tgt + + + + + + + + id + + + + + + + + Vd_max + + + + + + + + Vd_min + + + + + + + + id_max + + + + + + + + id_min + + + + + + + + Vd + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Vd_Calculation + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + Vq_max + + + + + + + + Vq_min + + + + + + + + n_mot + + + + + + + + iq_limProtErr + + + + + + + + Vq_Spd + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Speed_Mode + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + r_inpTgtScaAbs + + + + + + + + Vq_max + + + + + + + + Vq_min + + + + + + + + r_iqLimProtMax + + + + + + + + r_nLimProtMax + + + + + + + + Vq_Vlt + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Voltage_Mode + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + Vq + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlMod] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [id_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [id_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + case [ 1 ]: + + + + + + + + case [ 2 ]: + + + + + + + + case [ 3 ]: + + + + + + + + default: + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Vlt] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Trq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Open] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Trq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_limProtErr] + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Spd] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [id_Tgt] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [id_Tgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + Vq_max + + + + + + + + Vq_min + + + + + + + + iq + + + + + + + + iq_max + + + + + + + + iq_min + + + + + + + + Vq_nLimProtMax + + + + + + + + Vq_Trq + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Torque_Mode + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 20 + + + + + + + + + + + + + + + + + + + + + + Vq_nLimProtMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 19 + + + + + + + + + + + + + + + + + + + + + + iq_limProtErr + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 17 + + + + + + + + + + + + + + + + + + + + + + r_iqLimProtMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 16 + + + + + + + + + + + + + + + + + + + + + + iq_min + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 18 + + + + + + + + + + + + + + + + + + + + + + r_nLimProtMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 15 + + + + + + + + + + + + + + + + + + + + + + iq_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 14 + + + + + + + + + + + + + + + + + + + + + + id_min + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 12 + + + + + + + + + + + + + + + + + + + + + + Vq_min + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 11 + + + + + + + + + + + + + + + + + + + + + + Vq_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 10 + + + + + + + + + + + + + + + + + + + + + + Vd_min + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 9 + + + + + + + + + + + + + + + + + + + + + + Vd_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Spd] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + + + + + + + + + + + + + + + + + + + + + + iq + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlMod] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + id_Tgt + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtScaAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Vlt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_limProtErr] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Open] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + Vq_Open + + + + + + + + default: { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Open_Mode + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_ctrlMod + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + id + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 13 + + + + + + + + + + + + + + + + + + + + + + id_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + n_mot + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + b_enaAdvCtrl + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.json index 7836211..2e9de79 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2790", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2790", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"y", "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", "inspector":{ "params":[ "Port", @@ -80,12 +80,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2788", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2788", "className":"Simulink.Sum", "icon":"WebViewIcon3", "name":"Sum1", "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", "inspector":{ "params":[ "IconShape", @@ -139,12 +139,79 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2789", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2786", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", + "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:10454:2789", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", "name":"UnitDelay", "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", "inspector":{ "params":[ "InitialCondition", @@ -189,12 +256,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2787", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2787", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", "name":"Data Type Conversion1", "label":"Data Type Conversion1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", "inspector":{ "params":[ "OutMin", @@ -236,79 +303,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2786", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"u", - "label":"u", - "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" - ], - "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:2787#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2787#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -354,12 +354,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2789#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2789#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -405,12 +405,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2788#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2788#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -456,12 +456,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2786#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2786#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.png diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.svg similarity index 93% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.svg index c4f33f1..667e23c 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.svg @@ -9,11 +9,11 @@ - + - + @@ -61,7 +61,7 @@ - + @@ -133,9 +133,72 @@ - + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + - + @@ -143,35 +206,35 @@ - + - + - + - + - + - + - + - + @@ -192,32 +255,32 @@ - - - + + + - - + + - - Ini=0 + + sfix32_En20 - - - + + + - - + + - - sfix32_En20 + + Ini=0 @@ -228,7 +291,7 @@ - + @@ -238,19 +301,19 @@ - + - + - + - + @@ -276,11 +339,11 @@ - + - + sfix16_En4 @@ -290,70 +353,7 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - + @@ -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_9721_2791_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.json index 0b3bcda..4fa88b0 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2710", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2377", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"hitMin", - "label":"hitMin", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ "Port", @@ -33,7 +33,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -80,12 +80,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2377", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2709", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"y", - "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "name":"hitMax", + "label":"hitMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ "Port", @@ -113,7 +113,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -160,12 +160,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2709", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2710", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"hitMax", - "label":"hitMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "name":"hitMin", + "label":"hitMin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ "Port", @@ -193,7 +193,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1", + "3", "Port number", "[]", "[]", @@ -240,12 +240,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2704", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2707", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"LowerRelop1", - "label":"LowerRelop1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "name":"UpperRelop", + "label":"UpperRelop", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ "Operator", @@ -256,7 +256,7 @@ "ZeroCross" ], "values":[ - ">", + "<", "off", "boolean", "Nearest", @@ -285,12 +285,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2848", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2849", "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "name":"Switch3", + "label":"Switch3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ "Criteria", @@ -342,50 +342,38 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2849", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2704", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Switch3", - "label":"Switch3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "name":"LowerRelop1", + "label":"LowerRelop1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454: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", - "Zero", - "off", + ">", "off", + "boolean", + "Nearest", "-1", - "0", "on" ], "tabs":[ "Main", - "Signal Attributes", + "Data Type", "-Other" ], "tabs_idx":[ 0, 1, - 9 + 4 ] }, "viewer":{ @@ -394,17 +382,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2701", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2700", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"lo", - "label":"lo", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ "Port", @@ -426,7 +414,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -466,38 +454,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2707", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2848", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"UpperRelop", - "label":"UpperRelop", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454: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":{ @@ -506,17 +506,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2700", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2699", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"u", - "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "name":"up", + "label":"up", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ "Port", @@ -538,7 +538,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -578,12 +578,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2699", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2701", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"up", - "label":"up", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "name":"lo", + "label":"lo", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ "Port", @@ -605,7 +605,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "3", "Port number", "[]", "[]", @@ -645,12 +645,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2849#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2849#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -696,12 +696,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2701#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2701#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -747,12 +747,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2704#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2704#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -798,12 +798,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2707#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2707#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -849,12 +849,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2699#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2699#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -900,12 +900,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2700#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2700#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -951,12 +951,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791:2848#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791:2848#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454: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_10454_2791_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.png diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.svg similarity index 92% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.svg index be589d2..0b25f6d 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2791_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.svg @@ -9,15 +9,15 @@ - + - - + + - + @@ -27,30 +27,30 @@ - - 3 + + 2 - + - - + + - + - - hitMin + + y @@ -61,11 +61,11 @@ - - + + - + @@ -75,30 +75,30 @@ - - 2 + + 1 - + - - + + - + - - y + + hitMax @@ -109,11 +109,11 @@ - - + + - + @@ -123,30 +123,30 @@ - - 1 + + 3 - + - - + + - + - - hitMax + + hitMin @@ -157,11 +157,11 @@ - - - + + + - + @@ -171,7 +171,7 @@ - + @@ -179,8 +179,8 @@ - - + + @@ -194,37 +194,37 @@ - + - - + + - + - - LowerRelop1 + + UpperRelop - + - + - + boolean @@ -236,157 +236,157 @@ - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T @@ -394,29 +394,29 @@ - + F - + - + - + - + sfix16_En4 @@ -428,330 +428,330 @@ - - - + + + - - + + - + - + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + LowerRelop1 + + + + + + + - - + + - - + + boolean + + + + + + + + + + + + + + + + + + - - + + - - + + 2 + + + + + + + + + + + + + + - - + + - - + + u + + + + + + + - - + + - - + + sfix16_En4 + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - T + + - - + + - - F - - - - - - - - - - - - - - + + - - + + - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - 3 - - - - - - - - - - - - - - + + - - + + - - lo + + - - - - - - + + + + + + + - - + + - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - + + T - - + + - - + + F - - - - - - - - - - - - - - - - - - - - - - - - - UpperRelop + + - - + + - + - - boolean + + sfix16_En4 @@ -762,11 +762,11 @@ - - + + - + @@ -776,44 +776,44 @@ - - 2 + + 1 - + - - + + - + - - u + + up - + - + - + sfix16_En4 @@ -825,11 +825,11 @@ - - + + - + @@ -839,44 +839,44 @@ - - 1 + + 3 - + - - + + - + - - up + + lo - + - + - + sfix16_En4 @@ -886,7 +886,7 @@ - + @@ -900,7 +900,7 @@ - + @@ -934,7 +934,7 @@ - + @@ -968,7 +968,7 @@ - + @@ -1002,7 +1002,7 @@ - + @@ -1036,7 +1036,7 @@ - + @@ -1090,7 +1090,7 @@ - + @@ -1106,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_10454_2816_d.json similarity index 86% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2816_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2816_d.json index 90276b1..3bbedfe 100644 --- 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_10454_2816_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2819", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2819", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"preSat", "label":"preSat", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "Port", @@ -67,12 +67,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2818", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2818", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"preIntegrator", "label":"preIntegrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "Port", @@ -134,12 +134,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2831", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2831", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"Clamp", "label":"Clamp", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "Port", @@ -214,12 +214,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2839", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2839", "className":"Simulink.Signum", "icon":"WebViewIcon3", "name":"SignDeltaU3", "label":"SignDeltaU3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "ZeroCross", @@ -245,12 +245,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2840", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2837", + "className":"Simulink.Signum", + "icon":"WebViewIcon3", + "name":"SignDeltaU2", + "label":"SignDeltaU2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454: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:10454:2840", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", "name":"DataTypeConv4", "label":"DataTypeConv4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "OutMin", @@ -292,38 +323,40 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2841", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2836", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"Equal1", - "label":"Equal1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "name":"DataTypeConv3", + "label":"DataTypeConv3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ - "Operator", - "InputSameDT", + "OutMin", + "OutMax", "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", "RndMeth", - "SampleTime", - "ZeroCross" + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "==", + "[]", + "[]", + "int8", "on", - "Inherit: Logical (see Configuration Parameters: Optimization)", + "Real World Value (RWV)", "Zero", - "-1", - "on" + "off", + "-1" ], "tabs":[ - "Main", - "Data Type", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 4 + 7 ] }, "viewer":{ @@ -332,45 +365,43 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2836", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2841", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"DataTypeConv3", - "label":"DataTypeConv3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "name":"Equal1", + "label":"Equal1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ - "OutMin", - "OutMax", + "Operator", + "InputSameDT", "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "SampleTime", + "ZeroCross" ], "values":[ - "[]", - "[]", - "int8", + "==", "on", - "Real World Value (RWV)", + "Inherit: Logical (see Configuration Parameters: Optimization)", "Zero", - "off", - "-1" + "-1", + "on" ], "tabs":[ - "Parameter Attributes", + "Main", + "Data Type", "-Other" ], "tabs_idx":[ 0, - 7 + 1, + 4 ] }, "viewer":{ @@ -379,17 +410,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2843", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2843", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"hitSat", "label":"hitSat", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "Port", @@ -451,43 +482,12 @@ } }, { - "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:2838", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2838", "className":"Simulink.Logic", "icon":"WebViewIcon3", "name":"AND1", "label":"AND1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "Operator", @@ -527,12 +527,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2843#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2843#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -578,12 +578,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2838#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2838#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -629,12 +629,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2841#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2841#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -680,12 +680,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2840#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2840#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -731,12 +731,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2836#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2836#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -782,12 +782,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2839#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2839#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -833,12 +833,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2837#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2837#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -884,12 +884,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2819#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2819#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -935,12 +935,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2818#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2818#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454: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_10454_2816_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2816_d.png 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_10454_2816_d.svg similarity index 94% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2816_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2816_d.svg index 37df42c..e96628f 100644 --- 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_10454_2816_d.svg @@ -9,11 +9,11 @@ - + - + @@ -76,7 +76,7 @@ - + @@ -139,7 +139,7 @@ - + @@ -187,9 +187,9 @@ - + - + @@ -267,9 +267,9 @@ - + - + @@ -347,38 +347,30 @@ - - - + + + - - + + - + - - + + - - - - - - - - - + - - + + @@ -392,23 +384,23 @@ - - + + - - + + - - + + - - boolean + + int8 @@ -419,29 +411,29 @@ - - + + - + - + - + - + - + @@ -456,22 +448,22 @@ - + - + - - + + - + int8 @@ -483,30 +475,38 @@ - - - + + + - - + + - - + + - - + + + + + + + + + + - + - - + + @@ -520,23 +520,23 @@ - - + + - - + + - + - - int8 + + boolean @@ -547,7 +547,7 @@ - + @@ -610,7 +610,7 @@ - + @@ -642,37 +642,37 @@ - - - - - - - - - - - - + - + boolean + + + + + + + + + + + - + @@ -686,7 +686,7 @@ - + @@ -700,7 +700,7 @@ - + @@ -714,7 +714,7 @@ - + @@ -728,7 +728,7 @@ - + @@ -742,7 +742,7 @@ - + @@ -756,7 +756,7 @@ - + @@ -770,7 +770,7 @@ - + @@ -784,7 +784,7 @@ - + @@ -800,5 +800,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.json index 453c236..8455f21 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2785", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2785", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"out", "label":"out", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "Port", @@ -80,12 +80,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2817", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2817", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", "name":"UnitDelay1", "label":"UnitDelay1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "InitialCondition", @@ -130,69 +130,12 @@ } }, { - "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", - "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:9729:2783", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2783", "className":"Simulink.Sum", "icon":"WebViewIcon3", "name":"Sum1", "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "IconShape", @@ -246,12 +189,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "className":"Simulink.SubSystem", "icon":"WebViewIcon9", "name":"Saturation_hit", "label":"Saturation_hit", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "ShowPortLabels", @@ -339,12 +282,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", "name":"Integrator", "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "ShowPortLabels", @@ -436,12 +379,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2795", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2794", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "GotoTag", @@ -449,7 +392,7 @@ "IconDisplay" ], "values":[ - "b_hitMin", + "b_hitMax", "local", "Tag" ], @@ -469,19 +412,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2846", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2795", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_hitSat", + "b_hitMin", + "local", "Tag" ], "tabs":[ @@ -495,24 +440,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2832", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2846", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "GotoTag", "IconDisplay" ], "values":[ - "b_hitMax", + "b_hitSat", "Tag" ], "tabs":[ @@ -531,78 +476,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2778", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide5", - "label":"Divide5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,5)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2794", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2833", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "b_hitMax", - "local", + "b_hitMin", "Tag" ], "tabs":[ @@ -616,24 +502,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2833", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2832", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "GotoTag", "IconDisplay" ], "values":[ - "b_hitMin", + "b_hitMax", "Tag" ], "tabs":[ @@ -652,27 +538,51 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2845", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2814", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" ], "values":[ - "b_hitSat", - "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" @@ -680,55 +590,47 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2732", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2781", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"satMax", - "label":"satMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ - "Port", - "IconDisplay", + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "4", - "Port number", + "rectangular", + "++", + "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", @@ -738,7 +640,7 @@ "tabs_idx":[ 0, 2, - 11 + 10 ] }, "viewer":{ @@ -747,55 +649,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2771", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2776", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"I", - "label":"I", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "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":[ - "3", - "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", @@ -805,7 +697,7 @@ "tabs_idx":[ 0, 2, - 11 + 9 ] }, "viewer":{ @@ -814,23 +706,22 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2781", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2778", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "name":"Divide5", + "label":"Divide5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ - "IconShape", "Inputs", + "Multiplication", "InputSameDT", - "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", @@ -842,13 +733,12 @@ "SampleTime" ], "values":[ - "rectangular", - "++", + "**", + "Element-wise(.*)", "off", - "Inherit: Inherit via internal rule", "[]", "[]", - "Inherit: Inherit via internal rule", + "fixdt(1,16,5)", "off", "Simplest", "on", @@ -864,7 +754,7 @@ "tabs_idx":[ 0, 2, - 10 + 9 ] }, "viewer":{ @@ -873,74 +763,147 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2776", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2845", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "**", - "Element-wise(.*)", + "b_hitSat", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Clamping_circuit", + "label":"Clamping_circuit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", + "on", + "", + "", "off", - "Simplest", + "", + "void_void", "off", - "1", - "All dimensions", - "-1" + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" ], "tabs":[ "Main", - "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 9 + 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2770", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2732", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"P", - "label":"P", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "name":"satMax", + "label":"satMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "Port", @@ -962,7 +925,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "4", "Port number", "[]", "[]", @@ -1002,32 +965,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2815", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2771", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"a_elecPeriod1", - "label":"a_elecPeriod1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "name":"I", + "label":"I", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "0", - "on", - "inf", + "3", + "Port number", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", @@ -1036,8 +1017,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -1046,17 +1027,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2773", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2770", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"ext_limProt", - "label":"ext_limProt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "name":"P", + "label":"P", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "Port", @@ -1078,7 +1059,7 @@ "OutputFunctionCall" ], "values":[ - "6", + "2", "Port number", "[]", "[]", @@ -1118,12 +1099,61 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2733", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2815", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant", + "label":"Constant", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2733", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"satMin", "label":"satMin", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "Port", @@ -1185,109 +1215,79 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clamping_circuit", - "label":"Clamping_circuit", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2769", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"err", + "label":"err", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", + "1", + "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:9729:2769", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2773", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"err", - "label":"err", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "name":"ext_limProt", + "label":"ext_limProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "Port", @@ -1309,7 +1309,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "6", "Port number", "[]", "[]", @@ -1349,12 +1349,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2844", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2844", "className":"Simulink.Logic", "icon":"WebViewIcon3", "name":"AND1", "label":"AND1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "Operator", @@ -1394,12 +1394,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1445,12 +1445,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2846#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2846#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1496,12 +1496,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2844#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2844#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1547,12 +1547,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2833#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2833#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1598,12 +1598,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2832#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2832#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1649,12 +1649,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2817#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2817#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1700,12 +1700,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1751,12 +1751,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2814#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2814#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1802,12 +1802,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2781#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2781#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1853,12 +1853,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2783#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2783#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1904,12 +1904,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2815#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2815#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1955,12 +1955,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791#out:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2006,12 +2006,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2057,12 +2057,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2733#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2733#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2108,12 +2108,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2732#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2732#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2159,12 +2159,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2770#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2770#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2210,12 +2210,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2261,12 +2261,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2771#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2771#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2312,12 +2312,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2778#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2778#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2363,12 +2363,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2776#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2776#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2414,12 +2414,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2773#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2773#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2465,12 +2465,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2769#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2769#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.png new file mode 100644 index 0000000..ba494ac Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.svg similarity index 96% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.svg index e76bc7e..8d44d89 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.svg @@ -9,11 +9,11 @@ - + - + @@ -61,7 +61,7 @@ - + @@ -120,224 +120,32 @@ - - - - - - - - - - - Ini=0 - - - - - + - + boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - + + - - + + - - sfix32_En20 + + Ini=0 @@ -348,7 +156,7 @@ - + @@ -358,35 +166,35 @@ - + - + - + - + - + - + - + - + @@ -404,11 +212,11 @@ - + - + sfix16_En4 @@ -420,7 +228,7 @@ - + @@ -430,91 +238,91 @@ - + - + up - + - + u - + - + lo - + - + hitMax - + - + y - + - + hitMin - + - + - + - + - + - + - + - + - + - + @@ -528,75 +336,75 @@ - + - - + + - + boolean - - + + - - + + - - sfix16_En4 + + boolean - - + + - - + + - - boolean + + sfix16_En4 - + - + - + - + - + - + @@ -610,7 +418,7 @@ - + @@ -626,19 +434,19 @@ - + - + u - + - + y @@ -668,11 +476,11 @@ - + - + Integrator @@ -689,11 +497,11 @@ - + - + sfix16_En4 @@ -705,13 +513,46 @@ - + + + + + + + + + + + + + + + + [b_hitMax] + + + + + + + + + + + + + + + + + + @@ -721,11 +562,11 @@ - + - + [b_hitMin] @@ -744,7 +585,7 @@ - + @@ -754,11 +595,11 @@ - + - + [b_hitSat] @@ -776,11 +617,11 @@ - + - + boolean @@ -792,43 +633,43 @@ - - + + - + - + - - [b_hitMax] + + [b_hitMin] - + - + - - + + - + boolean @@ -840,52 +681,44 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + [b_hitMax] - - + + - - + + - - + + - - sfix16_En5 + + boolean @@ -896,29 +729,188 @@ - - - + + + - - + + - - + + - - [b_hitMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - + + + + + + + + + + + + + + + + + sfix32_En20 @@ -929,44 +921,68 @@ - - - + + + - - + + + + + + + + + + - + - - [b_hitMin] + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - boolean + + sfix32_En20 @@ -977,29 +993,52 @@ - - - + + + - - + + - - + + - - [b_hitSat] + + + + + + + + + + - - + + + + + + + + + + + + + + + + + sfix32_En20 @@ -1010,59 +1049,85 @@ - - - + + + - - + + - - + + - - 4 + + + + + + + + + + - - + + - - - + + + - - + + - - satMax + + sfix16_En5 - - - - + + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + [b_hitSat] + + + + + + + @@ -1073,59 +1138,107 @@ - - - + + + - - + + + + + + + + - - + + - - 3 + + preIntegrator + + + + + + + + preSat + + + + + + + + hitSat + + + + + + + + Clamp - - + + + + + + + + - - + + + + + + + + - - + + - - I + + Clamping_circuit - - + + + + + + + + - - + + - - ufix16_En16 + + boolean @@ -1136,68 +1249,65 @@ - - - + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + 4 - - + + + + + + + + + + + + + + + + + satMax - - + + - - + + - - sfix32_En20 + + sfix16_En4 @@ -1208,52 +1318,59 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + 3 - - + + + + + + + + + + + + + + + + + I - - + + - - + + - - sfix32_En20 + + ufix16_En16 @@ -1264,7 +1381,7 @@ - + @@ -1274,11 +1391,11 @@ - + - + 2 @@ -1296,11 +1413,11 @@ - + - + P @@ -1311,11 +1428,11 @@ - + - + ufix16_En12 @@ -1327,7 +1444,7 @@ - + @@ -1337,11 +1454,11 @@ - + - + 0 @@ -1359,74 +1476,11 @@ - + - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - ext_limProt - - - - - - - - - - - - - - + sfix32_En20 @@ -1438,7 +1492,7 @@ - + @@ -1448,11 +1502,11 @@ - + - + 5 @@ -1470,11 +1524,11 @@ - + - + satMin @@ -1485,11 +1539,11 @@ - + - + sfix16_En4 @@ -1501,107 +1555,59 @@ - - - + + + - - - - - - - - + + - - - - - - - preIntegrator - - - - - - - - preSat - - - - - - - - hitSat - - + - - Clamp + + 1 - - - - - - - - + + - - - - - - - - + + - + - - Clamping_circuit + + err - - - - - - - - + + - + - - boolean + + sfix16_En4 @@ -1612,17 +1618,11 @@ - - - - - - - - + + - + @@ -1632,45 +1632,45 @@ - - 1 + + 6 - + - - + + - + - - err + + ext_limProt - - + + - + - - sfix16_En4 + + sfix32_En20 @@ -1681,7 +1681,7 @@ - + @@ -1743,7 +1743,7 @@ - + @@ -1757,7 +1757,7 @@ - + @@ -1771,7 +1771,7 @@ - + @@ -1785,7 +1785,7 @@ - + @@ -1799,7 +1799,7 @@ - + @@ -1813,7 +1813,7 @@ - + @@ -1827,7 +1827,7 @@ - + @@ -1841,7 +1841,7 @@ - + @@ -1855,7 +1855,7 @@ - + @@ -1889,7 +1889,7 @@ - + @@ -1923,7 +1923,7 @@ - + @@ -1937,7 +1937,7 @@ - + @@ -1951,7 +1951,7 @@ - + @@ -1965,7 +1965,7 @@ - + @@ -1979,7 +1979,7 @@ - + @@ -1993,7 +1993,7 @@ - + @@ -2007,7 +2007,7 @@ - + @@ -2021,7 +2021,7 @@ - + @@ -2035,7 +2035,7 @@ - + @@ -2049,7 +2049,7 @@ - + @@ -2063,7 +2063,7 @@ - + @@ -2077,7 +2077,7 @@ - + @@ -2113,5 +2113,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.json index e606397..d6c9103 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2789", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2789", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", "name":"UnitDelay", "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", "inspector":{ "params":[ "InitialCondition", @@ -50,59 +50,12 @@ } }, { - "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:9729:2779", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2790", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2790", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"y", "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", "inspector":{ "params":[ "Port", @@ -177,12 +130,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2788", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2788", "className":"Simulink.Sum", "icon":"WebViewIcon3", "name":"Sum1", "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", "inspector":{ "params":[ "IconShape", @@ -236,12 +189,59 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2786", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2787", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2786", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"u", "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", "inspector":{ "params":[ "Port", @@ -303,12 +303,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2787#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2787#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -354,12 +354,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2789#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2789#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -405,12 +405,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2788#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2788#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -456,12 +456,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2786#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2786#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2779_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.png diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.svg similarity index 95% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.svg index 039573e..ea97384 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.svg @@ -9,11 +9,11 @@ - + - + @@ -108,71 +108,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - + @@ -182,11 +118,11 @@ - + - + 1 @@ -204,11 +140,11 @@ - + - + y @@ -220,7 +156,7 @@ - + @@ -230,35 +166,35 @@ - + - + - + - + - + - + - + - + @@ -276,11 +212,11 @@ - + - + sfix32_En20 @@ -292,7 +228,71 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + @@ -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_9728_2791_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.json index f55a90e..570c2ee 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2709", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2709", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"hitMax", "label":"hitMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ "Port", @@ -80,12 +80,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2707", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2707", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"UpperRelop", "label":"UpperRelop", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ "Operator", @@ -125,69 +125,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2849", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch3", - "label":"Switch3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2377", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2377", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"y", "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ "Port", @@ -262,57 +205,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2704", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"LowerRelop1", - "label":"LowerRelop1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728: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:9728:2791:2848", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2849", "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "name":"Switch3", + "label":"Switch3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ "Criteria", @@ -364,12 +262,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2700", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2710", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"u", - "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "name":"hitMin", + "label":"hitMin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ "Port", @@ -384,14 +282,20 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -403,10 +307,17 @@ "-1", "auto", "off", - "", - "on", "off", + "[]", + "off", + "held", "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -426,17 +337,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2710", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2701", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"hitMin", - "label":"hitMin", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "name":"lo", + "label":"lo", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ "Port", @@ -451,17 +362,11 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ "3", @@ -476,17 +381,10 @@ "-1", "auto", "off", + "", + "on", "off", - "[]", - "off", - "held", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", "off" ], "tabs":[ @@ -506,17 +404,62 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2701", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2704", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"LowerRelop1", + "label":"LowerRelop1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455: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:10455:2791:2700", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"lo", - "label":"lo", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ "Port", @@ -538,7 +481,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -578,12 +521,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2699", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2699", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"up", "label":"up", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ "Port", @@ -645,12 +588,69 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2849#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2848", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2849#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -696,12 +696,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2701#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2701#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -747,12 +747,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2704#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2704#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -798,12 +798,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2707#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2707#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -849,12 +849,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2699#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2699#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -900,12 +900,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2700#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2700#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -951,12 +951,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791:2848#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791:2848#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455: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_10455_2791_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.png diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.svg similarity index 90% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.svg index df49d3f..5c71280 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.svg @@ -9,15 +9,15 @@ - + - - + + - + @@ -27,30 +27,30 @@ - - 2 + + 1 - + - - + + - + - - y + + hitMax @@ -61,44 +61,123 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + UpperRelop + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + - + - + - - 1 + + 2 - + - - + + - - + + - - hitMax + + y @@ -109,7 +188,7 @@ - + @@ -119,155 +198,155 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T - + - + F @@ -285,11 +364,11 @@ - + - + sfix16_En4 @@ -301,221 +380,140 @@ - - - + + + - - + + - - + + - - + + 3 + + + + + + + + + + + + + + - - + + - - + + hitMin + + + + + + + + + + + + + + + + + + - - + + - - + + 3 + + + + + + + + + + + + + + - - + + - - + + lo + + + + + + + - - + + - - + + sfix16_En4 + + + + + + + + + + + + + + + + + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -541,11 +539,11 @@ - + - + LowerRelop1 @@ -556,11 +554,11 @@ - + - + boolean @@ -572,44 +570,59 @@ - - + + - + - + - - 3 + + 2 - + - - + + - - + + - - hitMin + + u + + + + + + + + + + + + + + + sfix16_En4 @@ -620,58 +633,58 @@ - - + + - + - + - - 2 + + 1 - + - - + + - - + + - - u + + up - + - - + + - + sfix16_En4 @@ -683,200 +696,187 @@ - - - + + + - - + + - + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - UpperRelop + + - - - - - - + + + + + + + - - + + - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - 1 + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - up + + - - - - - - + + + + + + + - - + + - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - 3 + + - - - - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + T - + - - lo + + F + + + + + + + - + - + - + sfix16_En4 @@ -886,7 +886,7 @@ - + @@ -900,7 +900,7 @@ - + @@ -934,7 +934,7 @@ - + @@ -968,7 +968,7 @@ - + @@ -1002,7 +1002,7 @@ - + @@ -1036,7 +1036,7 @@ - + @@ -1090,7 +1090,7 @@ - + @@ -1106,5 +1106,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.json similarity index 86% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.json index d2c0ffc..09fd3f8 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2819", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2819", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"preSat", "label":"preSat", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "Port", @@ -67,12 +67,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2818", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2818", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"preIntegrator", "label":"preIntegrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "Port", @@ -134,12 +134,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2831", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2831", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"Clamp", "label":"Clamp", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "Port", @@ -214,119 +214,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2839", - "className":"Simulink.Signum", - "icon":"WebViewIcon3", - "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:2841", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Equal1", - "label":"Equal1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721: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:9721:2837", - "className":"Simulink.Signum", - "icon":"WebViewIcon3", - "name":"SignDeltaU2", - "label":"SignDeltaU2", - "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:2836", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2840", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"DataTypeConv3", - "label":"DataTypeConv3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "name":"DataTypeConv4", + "label":"DataTypeConv4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "OutMin", @@ -368,12 +261,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2840", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2836", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"DataTypeConv4", - "label":"DataTypeConv4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "name":"DataTypeConv3", + "label":"DataTypeConv3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "OutMin", @@ -415,12 +308,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2843", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2843", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"hitSat", "label":"hitSat", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "Port", @@ -482,12 +375,119 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2838", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2839", + "className":"Simulink.Signum", + "icon":"WebViewIcon3", + "name":"SignDeltaU3", + "label":"SignDeltaU3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455: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:10455:2841", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Equal1", + "label":"Equal1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455: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:10455:2837", + "className":"Simulink.Signum", + "icon":"WebViewIcon3", + "name":"SignDeltaU2", + "label":"SignDeltaU2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455: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:10455:2838", "className":"Simulink.Logic", "icon":"WebViewIcon3", "name":"AND1", "label":"AND1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "Operator", @@ -527,12 +527,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2843#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2843#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -578,12 +578,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2838#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2838#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -629,12 +629,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2841#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2841#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -680,12 +680,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2840#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2840#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -731,12 +731,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2836#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2836#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -782,12 +782,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2839#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2839#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -833,12 +833,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2837#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2837#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -884,12 +884,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2819#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2819#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -935,12 +935,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2818#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2818#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "inspector":{ "params":[ "SignalNameFromLabel", 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_10455_2816_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2816_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.png 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_10455_2816_d.svg similarity index 93% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2816_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.svg index b59abef..e3a0522 100644 --- 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_10455_2816_d.svg @@ -9,11 +9,11 @@ - + - + @@ -76,7 +76,7 @@ - + @@ -139,7 +139,7 @@ - + @@ -187,46 +187,30 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - - - - - - - - + - - + + @@ -240,23 +224,23 @@ - - + + - - + + - - + + - - int16 + + int8 @@ -267,29 +251,29 @@ - - + + - + - + - + - + - + @@ -304,22 +288,22 @@ - + - + - - + + - + int8 @@ -331,67 +315,58 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - + - - + + - - + + 3 - - - - - + + + + - - - + + + + + + + + + + + hitSat - + - - + + - + boolean @@ -403,30 +378,46 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + @@ -440,23 +431,23 @@ - - + + - - + + - - + + - - int8 + + int16 @@ -467,58 +458,67 @@ - - - + + + - - + + - + - - + + - - 3 + + + + + + + + + + + + + + + + + + - - - - + - - - - - - - - - - - hitSat + + + + + + + - + - + - + boolean @@ -530,7 +530,7 @@ - + @@ -610,7 +610,7 @@ - + @@ -642,37 +642,37 @@ - - - - - - - - - - - - + - + boolean + + + + + + + + + + + - + @@ -686,7 +686,7 @@ - + @@ -700,7 +700,7 @@ - + @@ -714,7 +714,7 @@ - + @@ -728,7 +728,7 @@ - + @@ -742,7 +742,7 @@ - + @@ -756,7 +756,7 @@ - + @@ -770,7 +770,7 @@ - + @@ -784,7 +784,7 @@ - + @@ -800,5 +800,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.json index 308e7cf..a5fb375 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.json @@ -1,91 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2785", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"out", - "label":"out", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", - "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:2817", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2817", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", "name":"UnitDelay1", "label":"UnitDelay1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "InitialCondition", @@ -130,12 +50,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2783", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2781", "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "IconShape", @@ -159,7 +79,7 @@ "Inherit: Inherit via internal rule", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: Inherit via internal rule", "off", "Simplest", "on", @@ -189,12 +109,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2794", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2794", "className":"Simulink.Goto", "icon":"WebViewIcon3", "name":"Goto6", "label":"Goto6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "GotoTag", @@ -222,12 +142,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2795", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2795", "className":"Simulink.Goto", "icon":"WebViewIcon3", "name":"Goto1", "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "GotoTag", @@ -255,43 +175,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2846", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", - "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:9728:2833", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2833", "className":"Simulink.From", "icon":"WebViewIcon3", "name":"From1", "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "GotoTag", @@ -317,12 +206,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2832", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2832", "className":"Simulink.From", "icon":"WebViewIcon3", "name":"From", "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "GotoTag", @@ -348,40 +237,63 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2778", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2785", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Divide5", - "label":"Divide5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "name":"out", + "label":"out", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "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", "[]", "[]", - "fixdt(1,16,5)", + "Inherit: auto", "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -391,7 +303,7 @@ "tabs_idx":[ 0, 2, - 9 + 11 ] }, "viewer":{ @@ -400,17 +312,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", "name":"Integrator", "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "ShowPortLabels", @@ -502,12 +414,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2776", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2778", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "name":"Divide5", + "label":"Divide5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "Inputs", @@ -529,10 +441,10 @@ "off", "[]", "[]", - "Inherit: Inherit via internal rule", + "fixdt(1,16,5)", "off", "Simplest", - "off", + "on", "1", "All dimensions", "-1" @@ -559,40 +471,63 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2814", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2846", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ - "Criteria", - "InputSameDT", + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hitSat", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2815", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant", + "label":"Constant", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" + "FramePeriod" ], "values":[ - "u2 ~= 0", - "off", + "0", + "on", + "inf", "[]", "[]", "Inherit: Inherit via back propagation", "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" + "inf" ], "tabs":[ "Main", @@ -601,8 +536,8 @@ ], "tabs_idx":[ 0, - 1, - 9 + 3, + 7 ] }, "viewer":{ @@ -611,95 +546,148 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"Constant", "masktype":"" } }, { - "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":{ + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2814", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"Saturation_hit", + "label":"Saturation_hit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "inspector":{ "params":[ "ShowPortLabels", + "BlockChoice", + "TemplateBlock", + "MemberBlocks", "Permissions", "ErrorFcn", "PermitHierarchicalResolution", "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", "MinAlgLoopOccurrences", - "OverrideUsingVariant", "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", + "SystemSampleTime", + "RTWSystemCode", "RTWFcnNameOpts", - "RTWFileName", + "RTWFcnName", "RTWFileNameOpts", + "RTWFileName", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "RTWMemSecFuncInitTerm", + "RTWMemSecFuncExecute", "RTWMemSecDataConstants", "RTWMemSecDataInternal", "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", + "IsSubsystemVirtual", "Variant", - "VariantControl" + "VariantControl", + "OverrideUsingVariant", + "GeneratePreprocessorConditionals", + "AllowZeroVariantControls", + "PropagateVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "TreatAsGroupedWhenPropagatingVariantConditions" ], "values":[ "FromPortIcon", - "ReadWrite", "", - "All", - "off", - "on", "", "", - "off", - "", - "void_void", - "off", - "off", - "on", + "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", - "Auto", - "-1", + "on", + "off", + "", "", "off", - "" + "off", + "off", + "", + "", + "on" ], "tabs":[ - "Main", - "-Other" ], "tabs_idx":[ - 0, - 6 ] }, "viewer":{ @@ -713,12 +701,45 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2733", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2845", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hitSat", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2733", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"satMin", "label":"satMin", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "Port", @@ -780,12 +801,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2781", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2783", "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "IconShape", @@ -809,7 +830,7 @@ "Inherit: Inherit via internal rule", "[]", "[]", - "Inherit: Inherit via internal rule", + "fixdt(1,16,4)", "off", "Simplest", "on", @@ -839,12 +860,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2771", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2771", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"I", "label":"I", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "Port", @@ -906,187 +927,176 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2773", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"ext_limProt", + "label":"ext_limProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "className":"Simulink.SubSystem", - "icon":"WebViewIcon9", - "name":"Saturation_hit", - "label":"Saturation_hit", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "icon":"WebViewIcon1", + "name":"Clamping_circuit", + "label":"Clamping_circuit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "ShowPortLabels", - "BlockChoice", - "TemplateBlock", - "MemberBlocks", "Permissions", "ErrorFcn", "PermitHierarchicalResolution", "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", "MinAlgLoopOccurrences", + "OverrideUsingVariant", "PropExecContextOutsideSubsystem", - "SystemSampleTime", - "RTWSystemCode", - "RTWFcnNameOpts", + "PropagateVariantConditions", "RTWFcnName", - "RTWFileNameOpts", + "RTWFcnNameOpts", "RTWFileName", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "RTWMemSecFuncInitTerm", - "RTWMemSecFuncExecute", + "RTWFileNameOpts", "RTWMemSecDataConstants", "RTWMemSecDataInternal", "RTWMemSecDataParameters", - "IsSubsystemVirtual", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", "Variant", - "VariantControl", - "OverrideUsingVariant", - "GeneratePreprocessorConditionals", - "AllowZeroVariantControls", - "PropagateVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "TreatAsGroupedWhenPropagatingVariantConditions" + "VariantControl" ], "values":[ "FromPortIcon", + "ReadWrite", "", + "All", + "off", + "on", "", "", - "ReadWrite", + "off", "", - "All", + "void_void", "off", "off", + "on", + "", + "off", + "", + "off", "off", - "-1", - "Auto", - "Auto", "", "Auto", "", - "void_void", - "off", + "Auto", "Inherit from model", "Inherit from model", "Inherit from model", "Inherit from model", "Inherit from model", - "on", - "off", - "", - "", - "off", - "off", - "off", - "", + "Auto", + "-1", "", - "on" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2815", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"a_elecPeriod1", - "label":"a_elecPeriod1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", "off", - "inf" + "" ], "tabs":[ "Main", - "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 7 + 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2845", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hitSat", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2770", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2732", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"P", - "label":"P", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "name":"satMax", + "label":"satMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "Port", @@ -1108,7 +1118,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "4", "Port number", "[]", "[]", @@ -1148,12 +1158,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2769", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2770", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"err", - "label":"err", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "name":"P", + "label":"P", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "Port", @@ -1175,7 +1185,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -1215,12 +1225,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2773", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2769", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"ext_limProt", - "label":"ext_limProt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "name":"err", + "label":"err", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "Port", @@ -1242,7 +1252,7 @@ "OutputFunctionCall" ], "values":[ - "6", + "1", "Port number", "[]", "[]", @@ -1282,50 +1292,40 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2732", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2776", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"satMax", - "label":"satMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "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", - "off", - "", - "on", + "Inherit: Inherit via internal rule", "off", + "Simplest", "off", - "off" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -1335,7 +1335,7 @@ "tabs_idx":[ 0, 2, - 11 + 9 ] }, "viewer":{ @@ -1344,17 +1344,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2844", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2844", "className":"Simulink.Logic", "icon":"WebViewIcon3", "name":"AND1", "label":"AND1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "Operator", @@ -1394,12 +1394,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1445,12 +1445,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2846#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2846#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1496,12 +1496,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2844#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2844#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1547,12 +1547,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2833#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2833#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1598,12 +1598,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2832#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2832#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1649,12 +1649,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2817#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2817#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1700,12 +1700,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1751,12 +1751,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2814#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2814#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1802,12 +1802,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2781#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2781#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1853,12 +1853,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2783#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2783#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1904,12 +1904,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2815#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2815#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1955,12 +1955,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791#out:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2006,12 +2006,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2057,12 +2057,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2733#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2733#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2108,12 +2108,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2732#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2732#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2159,12 +2159,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2770#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2770#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2210,12 +2210,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2261,12 +2261,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2771#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2771#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2312,12 +2312,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2778#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2778#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2363,12 +2363,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2776#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2776#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2414,12 +2414,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2773#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2773#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2465,12 +2465,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2769#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2769#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.png new file mode 100644 index 0000000..ba494ac Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.svg similarity index 95% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.svg index e73b3b1..0492093 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.svg @@ -9,61 +9,13 @@ - + - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - out - - - - - - - - - - - + - + @@ -71,35 +23,35 @@ - + - + - + - + - + - + - + - + @@ -120,32 +72,32 @@ - - - + + + - - + + - - Ini=0 + + boolean - - - + + + - - + + - - boolean + + Ini=0 @@ -156,68 +108,68 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - sfix16_En4 + + sfix32_En20 @@ -228,7 +180,7 @@ - + @@ -238,11 +190,11 @@ - + - + [b_hitMax] @@ -261,7 +213,7 @@ - + @@ -271,11 +223,11 @@ - + - + [b_hitMin] @@ -294,55 +246,7 @@ - - - - - - - - - - - - - - - - [b_hitSat] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - + @@ -352,11 +256,11 @@ - + - + [b_hitMin] @@ -374,11 +278,11 @@ - + - + boolean @@ -390,7 +294,7 @@ - + @@ -400,11 +304,11 @@ - + - + [b_hitMax] @@ -422,11 +326,11 @@ - + - + boolean @@ -438,52 +342,44 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + 1 - - + + - - - + + + - - + + - - sfix16_En5 + + out @@ -494,7 +390,7 @@ - + @@ -510,19 +406,19 @@ - + - + u - + - + y @@ -552,11 +448,11 @@ - + - + Integrator @@ -573,11 +469,11 @@ - + - + sfix16_En4 @@ -589,58 +485,58 @@ - + - + - + - - + + - - + + - - + + - - + + - + - - + + - - + + - - sfix32_En20 + + sfix16_En5 @@ -651,30 +547,134 @@ - - - + + + - - + + - - + + - - + + [b_hitSat] - - - - - - - + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -682,7 +682,7 @@ - + @@ -690,7 +690,7 @@ - + @@ -698,7 +698,7 @@ - + @@ -706,7 +706,7 @@ - + @@ -714,7 +714,7 @@ - + @@ -722,7 +722,7 @@ - + @@ -730,7 +730,7 @@ - + @@ -738,7 +738,7 @@ - + @@ -746,7 +746,7 @@ - + @@ -754,7 +754,7 @@ - + @@ -762,7 +762,7 @@ - + @@ -770,7 +770,7 @@ - + @@ -778,7 +778,7 @@ - + @@ -786,30 +786,22 @@ - - - - - - - - - + - + T - + - + F @@ -827,11 +819,11 @@ - + - + sfix32_En20 @@ -843,176 +835,186 @@ - - - + + + - - - - - - - - + + + + + + + + + up + - + - - preIntegrator + + u - + - - preSat + + lo - + - - hitSat + + hitMax - + - - Clamp + + y - - - - - - - - + + + - - + + hitMin - - - - - - - - + + + - - + + - - + + - - Clamping_circuit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + - - + + - - boolean + + sfix16_En4 - - - - - - - - - - - - - - - - - - - - - + + + + - - + + - - 5 - - - - - - - + + boolean - - - + + + - - + + - - satMin + + boolean - - - - + - - + + - - sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + @@ -1023,68 +1025,29 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + [b_hitSat] - - - - - - - - - - - - - - - - - sfix32_En20 + + @@ -1095,59 +1058,59 @@ - - + + - + - + - - 3 + + 5 - + - - + + - - + + - - I + + satMin - - + + - - + + - - ufix16_En16 + + sfix16_En4 @@ -1158,186 +1121,131 @@ - - - + + + - - + + - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - hitMax - - + - - y + + - + - - hitMin + + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + - - + + - - boolean + + sfix16_En4 - - - - + + + + + + + + + + + + + + + - - + + - - boolean + + 3 - - - - - - - - - - - sfix16_En4 + + + - + + + + - - + + - - + + I - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + ufix16_En16 @@ -1348,43 +1256,58 @@ - - - + + + - - + + - - + + - - 0 + + 6 - - + + + + + + + + + + + + + + + + + ext_limProt - + - - + + - + sfix32_En20 @@ -1396,29 +1319,107 @@ - - - + + + - - + + + + + + + + - - + + - - [b_hitSat] + + preIntegrator + + + + + + + + preSat + + + + + + + + hitSat + + + + + + + + Clamp - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Clamping_circuit + + + + + + + + + + + + + + + + + + + + + boolean @@ -1429,11 +1430,17 @@ - - + + + + + + + + - + @@ -1443,45 +1450,45 @@ - - 2 + + 4 - + - - + + - + - - P + + satMax - - + + - + - - ufix16_En12 + + sfix16_En4 @@ -1492,11 +1499,11 @@ - - + + - + @@ -1506,45 +1513,45 @@ - - 1 + + 2 - + - - + + - + - - err + + P - - + + - + - - sfix16_En4 + + ufix16_En12 @@ -1555,11 +1562,11 @@ - - + + - + @@ -1569,45 +1576,45 @@ - - 6 + + 1 - + - - + + - + - - ext_limProt + + err - - + + - + - - sfix16_En10 + + sfix16_En4 @@ -1618,59 +1625,52 @@ - - - + + + - - + + - + - - 4 - - - - - - - - - - - - - - + + - + - - satMax + + + + + + + + + - - + + - + - - sfix16_En4 + + sfix32_En20 @@ -1681,7 +1681,7 @@ - + @@ -1743,7 +1743,7 @@ - + @@ -1757,7 +1757,7 @@ - + @@ -1771,7 +1771,7 @@ - + @@ -1785,7 +1785,7 @@ - + @@ -1799,7 +1799,7 @@ - + @@ -1813,7 +1813,7 @@ - + @@ -1827,7 +1827,7 @@ - + @@ -1841,7 +1841,7 @@ - + @@ -1855,7 +1855,7 @@ - + @@ -1889,7 +1889,7 @@ - + @@ -1923,7 +1923,7 @@ - + @@ -1937,7 +1937,7 @@ - + @@ -1951,7 +1951,7 @@ - + @@ -1965,7 +1965,7 @@ - + @@ -1979,7 +1979,7 @@ - + @@ -1993,7 +1993,7 @@ - + @@ -2007,7 +2007,7 @@ - + @@ -2021,7 +2021,7 @@ - + @@ -2035,7 +2035,7 @@ - + @@ -2049,7 +2049,7 @@ - + @@ -2063,7 +2063,7 @@ - + @@ -2077,7 +2077,7 @@ - + @@ -2113,5 +2113,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9133_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9133_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.json index d9353c0..12e7f43 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9133_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:10", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:10", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"y", "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "Port", @@ -80,12 +80,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:9", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:9", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"UpperRelop", "label":"UpperRelop", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "Operator", @@ -125,12 +125,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:8", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:8", "className":"Simulink.Switch", "icon":"WebViewIcon3", "name":"Switch2", "label":"Switch2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "Criteria", @@ -182,12 +182,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:7", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:7", "className":"Simulink.Switch", "icon":"WebViewIcon3", "name":"Switch", "label":"Switch", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "Criteria", @@ -239,12 +239,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:6", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"LowerRelop1", "label":"LowerRelop1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "Operator", @@ -284,12 +284,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:5", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:5", "className":"Simulink.SFunction", "icon":"WebViewIcon3", "name":"Data Type Propagation", "label":"Data Type Propagation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "PropDataTypeMode", @@ -347,12 +347,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:4", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:4", "className":"Simulink.DataTypeDuplicate", "icon":"WebViewIcon3", "name":"Data Type Duplicate", "label":"Data Type Duplicate", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "NumInputPorts" @@ -376,12 +376,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:3", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"lo", "label":"lo", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "Port", @@ -443,12 +443,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:2", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"u", "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "Port", @@ -510,12 +510,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:1", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"up", "label":"up", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "Port", @@ -577,12 +577,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:1#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:1#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "SignalNameFromLabel", @@ -628,12 +628,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:2#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:2#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "SignalNameFromLabel", @@ -679,12 +679,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:3#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:3#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "SignalNameFromLabel", @@ -730,12 +730,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:7#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:7#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "SignalNameFromLabel", @@ -781,12 +781,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:8#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:8#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "SignalNameFromLabel", @@ -832,12 +832,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:6#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:6#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "SignalNameFromLabel", @@ -883,12 +883,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133:9#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507:9#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10507", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8930_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8930_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.png diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.svg new file mode 100644 index 0000000..5be994b --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.svg @@ -0,0 +1,1180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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_8993_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8993_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.json index e9ed1cc..8277b17 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8993_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:10", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:10", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"y", "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "Port", @@ -80,12 +80,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:9", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:9", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"UpperRelop", "label":"UpperRelop", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "Operator", @@ -125,12 +125,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:8", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:8", "className":"Simulink.Switch", "icon":"WebViewIcon3", "name":"Switch2", "label":"Switch2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "Criteria", @@ -182,12 +182,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:7", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:7", "className":"Simulink.Switch", "icon":"WebViewIcon3", "name":"Switch", "label":"Switch", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "Criteria", @@ -239,12 +239,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:6", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"LowerRelop1", "label":"LowerRelop1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "Operator", @@ -284,12 +284,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:5", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:5", "className":"Simulink.SFunction", "icon":"WebViewIcon3", "name":"Data Type Propagation", "label":"Data Type Propagation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "PropDataTypeMode", @@ -347,12 +347,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:4", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:4", "className":"Simulink.DataTypeDuplicate", "icon":"WebViewIcon3", "name":"Data Type Duplicate", "label":"Data Type Duplicate", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "NumInputPorts" @@ -376,12 +376,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:3", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"lo", "label":"lo", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "Port", @@ -443,12 +443,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:2", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"u", "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "Port", @@ -510,12 +510,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:1", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"up", "label":"up", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "Port", @@ -577,12 +577,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:1#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:1#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "SignalNameFromLabel", @@ -628,12 +628,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:2#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:2#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "SignalNameFromLabel", @@ -679,12 +679,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:3#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:3#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "SignalNameFromLabel", @@ -730,12 +730,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:7#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:7#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "SignalNameFromLabel", @@ -781,12 +781,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:8#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:8#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "SignalNameFromLabel", @@ -832,12 +832,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:6#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:6#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "SignalNameFromLabel", @@ -883,12 +883,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993:9#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508:9#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8993", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10508", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8993_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8993_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.png diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.svg new file mode 100644 index 0000000..fa09bba --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.svg @@ -0,0 +1,1180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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_10566_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.json new file mode 100644 index 0000000..9c5fdc9 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.json @@ -0,0 +1,2468 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10583", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_nLimProtMax", + "label":"r_nLimProtMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10575", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_iqLimProtMax", + "label":"r_iqLimProtMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10653", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_nKiLimProt", + "label":"cf_nKiLimProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_nKiLimProt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10574", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_iqKiLimProt", + "label":"cf_iqKiLimProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_iqKiLimProt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10640", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_KbLimProt", + "label":"cf_KbLimProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_KbLimProt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,12)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10658", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10649", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10634", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10625", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto10", + "label":"Goto10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10642", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_iqLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10656", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10630", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10655", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10627", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iqAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"I_backCalc_fixdt", + "label":"I_backCalc_fixdt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "yInit" + ], + "values":[ + "0" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10659", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10643", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10641", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_iqLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10629", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10673", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant1", + "label":"Constant1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10651", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10672", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant", + "label":"Constant", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10570", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10568", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq_max", + "label":"iq_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10746", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"I_backCalc_fixdt1", + "label":"I_backCalc_fixdt1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "yInit" + ], + "values":[ + "0" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10633", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iqAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10567", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iqAbs", + "label":"iqAbs", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10576", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"n_motAbs", + "label":"n_motAbs", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10657", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtScaAbs", + "label":"r_inpTgtScaAbs", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10632", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10577", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"n_max", + "label":"n_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10568#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10567#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10577#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10576#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10632#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10640#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10641#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10643#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10655#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10656#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10657#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10659#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10633#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10634#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10745#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10574#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10672#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10653#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10651#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10746#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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:10673#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "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_10566_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.png new file mode 100644 index 0000000..cfecf0d Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.svg new file mode 100644 index 0000000..31cd610 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.svg @@ -0,0 +1,2106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + r_nLimProtMax + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_iqLimProtMax + + + + + + + + + + + + + + + + + + + + + + + + + + cf_nKiLimProt + + + + + + + + + + + + + + + + + + + + + + cf_nKiLimProt + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + cf_iqKiLimProt + + + + + + + + + + + + + + + + + + + + + + cf_iqKiLimProt + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + cf_KbLimProt + + + + + + + + + + + + + + + + + + + + + + cf_KbLimProt + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iqAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + err + + + + + + + + I + + + + + + + + Kb + + + + + + + + satMax + + + + + + + + satMin + + + + + + + + out + + + + + + + + I(z) + + + + + + + + + + + + + + + + + + + + + + I_backCalc_fixdt + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + iq_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + err + + + + + + + + I + + + + + + + + Kb + + + + + + + + satMax + + + + + + + + satMin + + + + + + + + out + + + + + + + + I(z) + + + + + + + + + + + + + + + + + + + + + + I_backCalc_fixdt1 + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iqAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + iqAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + n_motAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtScaAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + n_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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_10584_d.json similarity index 86% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.json index d1b7f58..e7ffb4f 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_10584_d.json @@ -1,31 +1,62 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8932", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10600", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"cf_iqKpLimProt", - "label":"cf_iqKpLimProt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "name":"iq_limProtErr", + "label":"iq_limProtErr", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "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_iqKpLimProt", - "on", - "inf", + "1", + "Port number", "[]", "[]", - "fixdt(0,16,8)", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -34,8 +65,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -44,47 +75,37 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8931", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10662", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "name":"cf_iqKiLimProt", + "label":"cf_iqKiLimProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "FramePeriod" ], "values":[ - "round", - "|+-", - "off", - "Inherit: Inherit via internal rule", + "cf_iqKiLimProt", + "on", + "inf", "[]", "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", + "fixdt(0,16,16)", "off", - "1", - "All dimensions", - "-1" + "inf" ], "tabs":[ "Main", @@ -93,8 +114,8 @@ ], "tabs_idx":[ 0, - 2, - 10 + 3, + 7 ] }, "viewer":{ @@ -103,48 +124,56 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8928", - "className":"Simulink.ActionPort", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594", + "className":"Saturation Dynamic", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "name":"Saturation Dynamic", + "label":"Saturation Dynamic", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" ], "values":[ - "reset", - "Only when execution is resumed" + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" ], "tabs":[ - "Parameter Attributes" ], - "tabs_idx":0 + "tabs_idx":[ + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", - "masktype":"" + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8926", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10587", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq_max", - "label":"iq_max", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "name":"iq_min", + "label":"iq_min", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ "Port", @@ -166,7 +195,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -206,51 +235,12 @@ } }, { - "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:8925", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10586", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq", - "label":"iq", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "name":"iq_max", + "label":"iq_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ "Port", @@ -272,7 +262,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -312,17 +302,18 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8929", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10597", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ + "IconShape", "Inputs", - "Multiplication", "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", @@ -334,15 +325,16 @@ "SampleTime" ], "values":[ - "**", - "Element-wise(.*)", + "round", + "|+-", "off", + "Inherit: Inherit via internal rule", "[]", "[]", - "Inherit: Same as first input", + "Inherit: Inherit via internal rule", "off", "Simplest", - "on", + "off", "1", "All dimensions", "-1" @@ -355,7 +347,7 @@ "tabs_idx":[ 0, 2, - 9 + 10 ] }, "viewer":{ @@ -364,17 +356,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8933", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10591", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"iq_limProt", - "label":"iq_limProt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10585", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq", + "label":"iq", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ "Port", @@ -389,17 +412,11 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ "1", @@ -414,17 +431,10 @@ "-1", "auto", "off", + "", + "on", "off", - "0", - "off", - "reset", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", "off" ], "tabs":[ @@ -444,55 +454,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8927", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10661", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"iq_min", - "label":"iq_min", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "name":"Divide1", + "label":"Divide1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "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":[ - "3", - "Port number", + "**", + "Element-wise(.*)", + "off", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", + "fixdt(1,32,20)", "off", + "Simplest", "off", - "off" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -502,7 +502,7 @@ "tabs_idx":[ 0, 2, - 11 + 9 ] }, "viewer":{ @@ -511,17 +511,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8931#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10585#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ "SignalNameFromLabel", @@ -567,12 +567,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8925#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ "SignalNameFromLabel", @@ -618,12 +618,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8932#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10586#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ "SignalNameFromLabel", @@ -669,12 +669,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10587#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ "SignalNameFromLabel", @@ -720,12 +720,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8926#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10662#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ "SignalNameFromLabel", @@ -771,12 +771,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8927#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10661#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ "SignalNameFromLabel", @@ -822,12 +822,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8929#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10597#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.png new file mode 100644 index 0000000..6115b2c Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.png differ 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_10584_d.svg similarity index 77% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.svg index 0278bea..d0eeac6 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_10584_d.svg @@ -1,183 +1,56 @@ - + - + - + - - - + + + - - + + - + - - cf_iqKpLimProt + + 1 - - + + - - + + - - - - - cf_iqKpLimProt - - - - - - - - - - - - - - - ufix16_En8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - + - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port + + iq_limProtErr @@ -188,59 +61,59 @@ - - - + + + - - + + - - + + - - 2 + + cf_iqKiLimProt - - + + - - + + - - + + - - iq_max + + cf_iqKiLimProt - - + + - - + + - - sfix16_En4 + + ufix16_En16 @@ -251,45 +124,45 @@ - - - + + + - + - + - + - + - + - + - + - + - + @@ -301,57 +174,57 @@ - + - + up - + - + u - + - + lo - + - + y - + - + - - + + - + sfix16_En4 @@ -363,58 +236,58 @@ - - + + - + - + - - 1 + + 3 - + - - + + - - + + - - iq + + iq_min - + - - + + - + sfix16_En4 @@ -426,51 +299,122 @@ - - - + + + - - + + - - + + + + + + 2 + + + + + + + + + + + + + + + + + + - - + + iq_max + + + + + + + - - + + - - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -482,44 +426,44 @@ - - - + + + - - + + - - + + - - 1 + + case: { } - - + + - - + + - - + + - - iq_limProt + + Action Port @@ -530,58 +474,58 @@ - - + + - + - + - - 3 + + 1 - + - - + + - - + + - - iq_min + + iq - + - - + + - + sfix16_En4 @@ -591,118 +535,174 @@ - + - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -711,5 +711,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8930_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10594_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8930_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10594_d.json index 1903c12..794cd52 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8930_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10594_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:10", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:10", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"y", "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "Port", @@ -80,12 +80,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:9", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:9", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"UpperRelop", "label":"UpperRelop", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "Operator", @@ -125,12 +125,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:8", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:8", "className":"Simulink.Switch", "icon":"WebViewIcon3", "name":"Switch2", "label":"Switch2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "Criteria", @@ -182,12 +182,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:7", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:7", "className":"Simulink.Switch", "icon":"WebViewIcon3", "name":"Switch", "label":"Switch", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "Criteria", @@ -239,12 +239,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:6", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"LowerRelop1", "label":"LowerRelop1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "Operator", @@ -284,12 +284,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:5", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:5", "className":"Simulink.SFunction", "icon":"WebViewIcon3", "name":"Data Type Propagation", "label":"Data Type Propagation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "PropDataTypeMode", @@ -347,12 +347,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:4", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:4", "className":"Simulink.DataTypeDuplicate", "icon":"WebViewIcon3", "name":"Data Type Duplicate", "label":"Data Type Duplicate", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "NumInputPorts" @@ -376,12 +376,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:3", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"lo", "label":"lo", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "Port", @@ -443,12 +443,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:2", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"u", "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "Port", @@ -510,12 +510,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:1", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"up", "label":"up", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "Port", @@ -577,12 +577,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:1#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:1#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "SignalNameFromLabel", @@ -628,12 +628,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:2#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:2#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "SignalNameFromLabel", @@ -679,12 +679,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:3#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:3#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "SignalNameFromLabel", @@ -730,12 +730,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:7#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:7#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "SignalNameFromLabel", @@ -781,12 +781,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:8#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:8#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "SignalNameFromLabel", @@ -832,12 +832,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:6#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:6#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "SignalNameFromLabel", @@ -883,12 +883,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930:9#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594:9#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8930", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9133_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10594_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9133_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10594_d.png 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_10594_d.svg similarity index 98% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9133_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10594_d.svg index 6e12bd0..fc7f1d2 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_10594_d.svg @@ -9,11 +9,11 @@ - + - + @@ -61,7 +61,7 @@ - + @@ -140,7 +140,7 @@ - + @@ -332,7 +332,7 @@ - + @@ -524,7 +524,7 @@ - + @@ -603,7 +603,7 @@ - + @@ -652,7 +652,7 @@ - + @@ -709,7 +709,7 @@ - + @@ -772,7 +772,7 @@ - + @@ -835,7 +835,7 @@ - + @@ -896,7 +896,7 @@ - + @@ -930,7 +930,7 @@ - + @@ -1009,7 +1009,7 @@ - + @@ -1018,13 +1018,13 @@ - + - + @@ -1058,7 +1058,7 @@ - + @@ -1103,16 +1103,16 @@ - + - + - + @@ -1146,7 +1146,7 @@ - + @@ -1160,7 +1160,7 @@ - + @@ -1176,5 +1176,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.json new file mode 100644 index 0000000..dde1e1f --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.json @@ -0,0 +1,1302 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10811", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_nKiLimProt", + "label":"cf_nKiLimProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_nKiLimProt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10619", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vq_nLimProtMax", + "label":"Vq_nLimProtMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10809", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10810", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_KbLimProt", + "label":"cf_KbLimProt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_KbLimProt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,12)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10777", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10776", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "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:10815", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10804", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10805", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"I_backCalc_fixdt", + "label":"I_backCalc_fixdt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "yInit" + ], + "values":[ + "0" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10812", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10609", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10814", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vq_max", + "label":"Vq_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10803", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant1", + "label":"Constant1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10774", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"n_motAbs", + "label":"n_motAbs", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:10607", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"n_max", + "label":"n_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:10774#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "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:10607#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "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:10809#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "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:10805#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "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:10803#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "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:10804#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "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:10811#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "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:10810#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "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:10812#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "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:10808#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "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:10814#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "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_10602_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.png new file mode 100644 index 0000000..66b827b Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_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_10602_d.svg similarity index 56% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.svg index 4f3c586..cd8dceb 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_10602_d.svg @@ -1,29 +1,73 @@ - + - + - + - + - - - + + + + + + + + + + + + + + + + cf_nKiLimProt + + - - - - - - - Input Scaling [-1000,1000] → [min,max] + + + + + + + + + + + + + + + + + + + cf_nKiLimProt + + + + + + + + + + + + + + + ufix16_En16 + + @@ -32,44 +76,44 @@ - - + + - + - + - + 1 - + - - + + - - + + - - r_inpTgtSca + + Vq_nLimProtMax @@ -80,75 +124,60 @@ - - - + + + - - + + - - + + - - u1 + + - - + + - - if(u1 == CTRL_FOC) + + - - + + - - else + + - - - - - - - - - - - - - - - - - action + + - - + + - - + + - - action + + sfix16_En4 @@ -159,77 +188,59 @@ - - - + + + - - + + - - + + - - [r_inpTgtSca] + + cf_KbLimProt - - + + - - - - - - - - - - - - - - - + + + + - + - - [z_ctrlModReq] - - - - - - - + + cf_KbLimProt - - + + - + - - uint8 + + ufix16_En12 @@ -240,44 +251,29 @@ - - - + + + - - + + - + - - [r_inpTgt] + + [n_motAbs] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -288,60 +284,29 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + [n_max] - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -352,28 +317,28 @@ - - + + - + - - + + - - [z_ctrlTypSel] + + [Vq_max] - + @@ -385,43 +350,43 @@ - - + + - + - - + + - - [r_inpTgtSca] + + [n_max] - + - + - - + + - + sfix16_En4 @@ -433,43 +398,43 @@ - - + + - + - - + + - - [r_inpTgt] + + [n_motAbs] - + - + - - + + - + sfix16_En4 @@ -481,215 +446,154 @@ - - - + + + - - + + - - + + - - [z_ctrlTypSel] - - - - - - - + + err - - - - - - + + + + + + + I - - + + - - uint8 + + Kb - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - r_inpTgt + + satMax - - + + - - z_ctrlModReq + + satMin - - + + - - r_inpTgtScaFOC + + out - - + + - - if { } + + I(z) - - - - - - - - + + - - - - - - - - + + - - + + - - FOC_Control_Type + + I_backCalc_fixdt - - - - - - - - - + + + - - + + - - sfix16_En4 + + Ini=0 - - - - - - - - + + - - + + - - action + + sfix16_En4 - - - - - - - - - - - - - - - - - - - - - + - - + + - - [z_ctrlModReq] + + - - - - - + + + + + + + + + + + + + + + + + + @@ -700,58 +604,43 @@ - - - + + + - - + + - - + + - - 3 + + [Vq_max] - - - - - - - - - - - - - - - - - r_inpTgt + + - + - - + + - + sfix16_En4 @@ -763,29 +652,44 @@ - - - + + + - - + + - - + + - - [r_inpTgt] + + case: { } - - + + + + + + + + + + + + + + + + + Action Port @@ -796,59 +700,59 @@ - - + + - + - + - - 2 + + 3 - + - - + + - - + + - - z_ctrlModReq + + Vq_max - - + + - - + + - - uint8 + + sfix16_En4 @@ -859,119 +763,106 @@ - - - + + + - - - - - - - - + + - - - - - - r_inpTgt - - - - - - - - r_inpTgtScaCOM - - - - + + - - else { } + + 0 - - - - - - - - + + - - - - - - - - - + + + - - + + - - Commutation_Control_Type + + sfix16_En4 - + + + + + + + + + + + + + + + - - - - + + + - - + + 1 + + + + + + + + + + + + + + - - + + - - action + + n_motAbs - - - - - - - + - - + + - + sfix16_En4 @@ -983,65 +874,59 @@ - - - - - - - - + + - + - + - - 1 + + 2 - + - - + + - - + + - - z_ctrlTypSel + + n_max - - + + - - + + - - uint8 + + sfix16_En4 @@ -1050,182 +935,154 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - + - + - + - - - - - - - - - - - - - - - + @@ -1234,5 +1091,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.json new file mode 100644 index 0000000..180a1d5 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.json @@ -0,0 +1,509 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2882", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "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:10745:2879", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2880", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|++", + "off", + "Inherit: Same as first input", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2878", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2896", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "yInit", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2878#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "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:10745:2880#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "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:10745:2896#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "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:10745:2879#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "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_10745_2877_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.png new file mode 100644 index 0000000..f441a94 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.svg new file mode 100644 index 0000000..9cdfa6a --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.svg @@ -0,0 +1,435 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=yInit + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.json new file mode 100644 index 0000000..2e9d3e0 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.json @@ -0,0 +1,936 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895:10", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "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", + "OutMin", + "OutMax", + "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:10745:2895:9", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"UpperRelop", + "label":"UpperRelop", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "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:10745:2895:8", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "OutMin", + "OutMax", + "Inherit: Inherit via back propagation", + "off", + "Floor", + "off", + "off", + "-1", + "0", + "off" + ], + "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:10745:2895:7", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch", + "label":"Switch", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Floor", + "off", + "off", + "-1", + "0", + "off" + ], + "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:10745:2895:6", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"LowerRelop1", + "label":"LowerRelop1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "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:10745:2895:5", + "className":"Simulink.SFunction", + "icon":"WebViewIcon3", + "name":"Data Type Propagation", + "label":"Data Type Propagation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "inspector":{ + "params":[ + "PropDataTypeMode", + "PropDataType", + "IfRefDouble", + "IfRefSingle", + "IsSigned", + "NumBitsBase", + "NumBitsMult", + "NumBitsAdd", + "NumBitsAllowFinal", + "PropScalingMode", + "PropScaling", + "ValuesUsedBestPrec", + "SlopeBase", + "SlopeMult", + "SlopeAdd", + "BiasBase", + "BiasMult", + "BiasAdd" + ], + "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" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"S-Function", + "masktype":"Data Type Propagation" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895:4", + "className":"Simulink.DataTypeDuplicate", + "icon":"WebViewIcon3", + "name":"Data Type Duplicate", + "label":"Data Type Duplicate", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "inspector":{ + "params":[ + "NumInputPorts" + ], + "values":[ + "2" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeDuplicate", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895:3", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"lo", + "label":"lo", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "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:10745:2895:2", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "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:10745:2895:1", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"up", + "label":"up", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "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:10745:2895:1#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "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:10745:2895:2#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "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:10745:2895:3#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "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:10745:2895:7#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "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:10745:2895:8#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "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:10745:2895:6#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "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:10745:2895:9#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "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_10745_2895_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.png new file mode 100644 index 0000000..7eb4c3d Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.svg new file mode 100644 index 0000000..b01636a --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.svg @@ -0,0 +1,1180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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_10745_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.json new file mode 100644 index 0000000..8fd2db3 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.json @@ -0,0 +1,1447 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2894", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2892", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2855", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMin", + "label":"satMin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2891", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide1", + "label":"Divide1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2893", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "-+|", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2854", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMax", + "label":"satMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2889", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"out", + "label":"out", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2869", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2890", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Kb", + "label":"Kb", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2853", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"I", + "label":"I", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2851", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"err", + "label":"err", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2892#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2869#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2890#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2893#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2891#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2894#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2877#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2895#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2851#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2853#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2854#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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:10745:2855#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "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_10745_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.png new file mode 100644 index 0000000..6145996 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.svg new file mode 100644 index 0000000..aabeea9 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.svg @@ -0,0 +1,1144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Integrator + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + satMin + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + satMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + out + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + Kb + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + I + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + err + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.json new file mode 100644 index 0000000..1094cf2 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.json @@ -0,0 +1,509 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2882", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "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:10746:2896", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "yInit", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2880", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|++", + "off", + "Inherit: Same as first input", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2879", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2878", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2878#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "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:10746:2880#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "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:10746:2896#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "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:10746:2879#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "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_10746_2877_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.png new file mode 100644 index 0000000..f441a94 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.svg new file mode 100644 index 0000000..46796c8 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.svg @@ -0,0 +1,435 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + Ini=yInit + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2895_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2895_d.json new file mode 100644 index 0000000..c6f99ce --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2895_d.json @@ -0,0 +1,936 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895:10", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "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", + "OutMin", + "OutMax", + "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:10746:2895:9", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"UpperRelop", + "label":"UpperRelop", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "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:10746:2895:8", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "OutMin", + "OutMax", + "Inherit: Inherit via back propagation", + "off", + "Floor", + "off", + "off", + "-1", + "0", + "off" + ], + "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:10746:2895:7", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch", + "label":"Switch", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Floor", + "off", + "off", + "-1", + "0", + "off" + ], + "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:10746:2895:6", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"LowerRelop1", + "label":"LowerRelop1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "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:10746:2895:5", + "className":"Simulink.SFunction", + "icon":"WebViewIcon3", + "name":"Data Type Propagation", + "label":"Data Type Propagation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "inspector":{ + "params":[ + "PropDataTypeMode", + "PropDataType", + "IfRefDouble", + "IfRefSingle", + "IsSigned", + "NumBitsBase", + "NumBitsMult", + "NumBitsAdd", + "NumBitsAllowFinal", + "PropScalingMode", + "PropScaling", + "ValuesUsedBestPrec", + "SlopeBase", + "SlopeMult", + "SlopeAdd", + "BiasBase", + "BiasMult", + "BiasAdd" + ], + "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" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"S-Function", + "masktype":"Data Type Propagation" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895:4", + "className":"Simulink.DataTypeDuplicate", + "icon":"WebViewIcon3", + "name":"Data Type Duplicate", + "label":"Data Type Duplicate", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "inspector":{ + "params":[ + "NumInputPorts" + ], + "values":[ + "2" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeDuplicate", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895:3", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"lo", + "label":"lo", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "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:10746:2895:2", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895:1", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"up", + "label":"up", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895:1#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "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:10746:2895:2#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "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:10746:2895:3#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "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:10746:2895:7#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "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:10746:2895:8#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "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:10746:2895:6#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "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:10746:2895:9#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "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_10746_2895_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2895_d.png new file mode 100644 index 0000000..7eb4c3d Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2895_d.png differ 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_10746_2895_d.svg similarity index 98% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8930_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2895_d.svg index d9522f0..8afff39 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_10746_2895_d.svg @@ -9,11 +9,11 @@ - + - + @@ -61,9 +61,9 @@ - + - + @@ -140,7 +140,7 @@ - + @@ -332,7 +332,7 @@ - + @@ -524,7 +524,7 @@ - + @@ -603,7 +603,7 @@ - + @@ -652,7 +652,7 @@ - + @@ -709,7 +709,7 @@ - + @@ -772,7 +772,7 @@ - + @@ -835,7 +835,7 @@ - + @@ -896,7 +896,7 @@ - + @@ -930,7 +930,7 @@ - + @@ -1024,7 +1024,7 @@ - + @@ -1058,7 +1058,7 @@ - + @@ -1112,7 +1112,7 @@ - + @@ -1146,7 +1146,7 @@ - + @@ -1160,7 +1160,7 @@ - + @@ -1176,5 +1176,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.json new file mode 100644 index 0000000..c3742ae --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.json @@ -0,0 +1,1447 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2889", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"out", + "label":"out", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "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:10746:2894", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2893", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "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:10746:2895", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2854", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMax", + "label":"satMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2890", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Kb", + "label":"Kb", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:10746:2869", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2891", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide1", + "label":"Divide1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2853", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"I", + "label":"I", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2855", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMin", + "label":"satMin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2892", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2851", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"err", + "label":"err", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2892#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "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:10746:2869#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "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:10746:2890#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "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:10746:2893#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "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:10746:2891#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "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:10746:2894#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "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:10746:2877#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "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:10746:2895#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "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:10746:2851#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "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:10746:2853#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "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:10746:2854#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "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:10746:2855#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "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_10746_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.png new file mode 100644 index 0000000..6145996 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.svg new file mode 100644 index 0000000..363d551 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.svg @@ -0,0 +1,1144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + out + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + satMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + Kb + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + I + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + satMin + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Integrator + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + err + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.json new file mode 100644 index 0000000..36a5222 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.json @@ -0,0 +1,509 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2896", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "yInit", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2880", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|++", + "off", + "Inherit: Same as first input", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2882", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "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:10808:2878", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2879", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2878#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "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:10808:2880#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "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:10808:2896#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "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:10808:2879#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "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_10808_2877_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.png new file mode 100644 index 0000000..f441a94 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.svg new file mode 100644 index 0000000..a3cc180 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.svg @@ -0,0 +1,435 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=yInit + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2895_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2895_d.json new file mode 100644 index 0000000..97d0d89 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2895_d.json @@ -0,0 +1,936 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895:10", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "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", + "OutMin", + "OutMax", + "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:10808:2895:9", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"UpperRelop", + "label":"UpperRelop", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "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:10808:2895:8", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "OutMin", + "OutMax", + "Inherit: Inherit via back propagation", + "off", + "Floor", + "off", + "off", + "-1", + "0", + "off" + ], + "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:10808:2895:7", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch", + "label":"Switch", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Floor", + "off", + "off", + "-1", + "0", + "off" + ], + "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:10808:2895:6", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"LowerRelop1", + "label":"LowerRelop1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "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:10808:2895:5", + "className":"Simulink.SFunction", + "icon":"WebViewIcon3", + "name":"Data Type Propagation", + "label":"Data Type Propagation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "inspector":{ + "params":[ + "PropDataTypeMode", + "PropDataType", + "IfRefDouble", + "IfRefSingle", + "IsSigned", + "NumBitsBase", + "NumBitsMult", + "NumBitsAdd", + "NumBitsAllowFinal", + "PropScalingMode", + "PropScaling", + "ValuesUsedBestPrec", + "SlopeBase", + "SlopeMult", + "SlopeAdd", + "BiasBase", + "BiasMult", + "BiasAdd" + ], + "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" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"S-Function", + "masktype":"Data Type Propagation" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895:4", + "className":"Simulink.DataTypeDuplicate", + "icon":"WebViewIcon3", + "name":"Data Type Duplicate", + "label":"Data Type Duplicate", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "inspector":{ + "params":[ + "NumInputPorts" + ], + "values":[ + "2" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeDuplicate", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895:3", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"lo", + "label":"lo", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "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:10808:2895:2", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895:1", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"up", + "label":"up", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "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:10808:2895:1#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "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:10808:2895:2#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "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:10808:2895:3#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "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:10808:2895:7#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "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:10808:2895:8#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "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:10808:2895:6#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "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:10808:2895:9#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "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_10808_2895_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2895_d.png new file mode 100644 index 0000000..7eb4c3d Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2895_d.png differ 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_10808_2895_d.svg similarity index 97% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2395_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2895_d.svg index fc1ded5..02721e9 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_10808_2895_d.svg @@ -9,11 +9,11 @@ - + - + @@ -61,7 +61,7 @@ - + @@ -140,7 +140,7 @@ - + @@ -313,7 +313,7 @@ - + @@ -321,7 +321,7 @@ - sfix28_En16 + sfix16_En4 @@ -332,7 +332,7 @@ - + @@ -505,7 +505,7 @@ - + @@ -513,7 +513,7 @@ - sfix28_En16 + sfix16_En4 @@ -524,7 +524,7 @@ - + @@ -603,7 +603,7 @@ - + @@ -652,7 +652,7 @@ - + @@ -709,7 +709,7 @@ - + @@ -753,7 +753,7 @@ - + @@ -761,7 +761,7 @@ - sfix28_En16 + sfix16_En4 @@ -772,7 +772,7 @@ - + @@ -816,7 +816,7 @@ - + @@ -824,7 +824,7 @@ - sfix28_En16 + sfix16_En4 @@ -835,7 +835,7 @@ - + @@ -879,7 +879,7 @@ - + @@ -887,7 +887,7 @@ - sfix28_En16 + sfix16_En4 @@ -896,7 +896,7 @@ - + @@ -930,7 +930,7 @@ - + @@ -1009,22 +1009,22 @@ - + - + - + - + - + @@ -1058,7 +1058,7 @@ - + @@ -1103,16 +1103,16 @@ - + - + - + @@ -1146,7 +1146,7 @@ - + @@ -1160,7 +1160,7 @@ - + @@ -1176,5 +1176,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.json new file mode 100644 index 0000000..5a0197f --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.json @@ -0,0 +1,1447 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2892", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2891", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide1", + "label":"Divide1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2889", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"out", + "label":"out", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "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:10808:2855", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMin", + "label":"satMin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:10808:2894", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "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:10808:2854", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMax", + "label":"satMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:10808:2893", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "-+|", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2890", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Kb", + "label":"Kb", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:10808:2851", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"err", + "label":"err", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:10808:2869", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2853", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"I", + "label":"I", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2892#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "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:10808:2869#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "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:10808:2890#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "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:10808:2893#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "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:10808:2891#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "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:10808:2894#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "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:10808:2877#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "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:10808:2895#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "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:10808:2851#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "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:10808:2853#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "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:10808:2854#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "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:10808:2855#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "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_10808_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.png new file mode 100644 index 0000000..6145996 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.svg new file mode 100644 index 0000000..36f207c --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.svg @@ -0,0 +1,1144 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Integrator + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + out + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + satMin + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + satMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + Kb + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + err + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + I + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.json index 3e2652f..fdfbd27 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.json @@ -1,117 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2788", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "round", - "|++", - "off", - "Inherit: Same as first input", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2787", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2790", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2790", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"y", "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", "inspector":{ "params":[ "Port", @@ -186,12 +80,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2789", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2789", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", "name":"UnitDelay", "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", "inspector":{ "params":[ "InitialCondition", @@ -236,12 +130,118 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2786", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2787", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2788", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|++", + "off", + "Inherit: Same as first input", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2786", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"u", "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", "inspector":{ "params":[ "Port", @@ -303,12 +303,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2787#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2787#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -354,12 +354,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2789#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2789#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -405,12 +405,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2788#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2788#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", "inspector":{ "params":[ "SignalNameFromLabel", @@ -456,12 +456,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2786#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2786#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2779_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.png diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.svg similarity index 93% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.svg index 01a3e2e..79b4feb 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2779_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.svg @@ -9,72 +9,48 @@ - + - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + 1 - - + + - - - + + + - - + + - - sfix32_En20 + + y @@ -85,30 +61,46 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + @@ -122,23 +114,38 @@ - - + + + + + + + + + + + + + + + + + Ini=0 - - + + - + - - sfix16_En4 + + sfix32_En20 @@ -149,44 +156,60 @@ - - - + + + - - + + - + - + - - 1 + + + + + + + + + + + + + + + + + + - - + + - - - + + + - - + + - - y + + sfix16_En4 @@ -197,90 +220,67 @@ - - - + + + - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - Ini=0 + + - - + + - + - + sfix32_En20 @@ -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_9729_2791_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.json index b2fca38..5d1718e 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.json @@ -1,11 +1,91 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2377", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2710", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"hitMin", + "label":"hitMin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "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:10828:2791:2377", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"y", "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ "Port", @@ -80,12 +160,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2709", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2709", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"hitMax", "label":"hitMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ "Port", @@ -160,50 +240,38 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2849", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2707", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Switch3", - "label":"Switch3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "name":"UpperRelop", + "label":"UpperRelop", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828: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", - "Zero", - "off", + "<", "off", + "boolean", + "Nearest", "-1", - "0", "on" ], "tabs":[ "Main", - "Signal Attributes", + "Data Type", "-Other" ], "tabs_idx":[ 0, 1, - 9 + 4 ] }, "viewer":{ @@ -212,17 +280,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2848", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2849", "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "name":"Switch3", + "label":"Switch3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ "Criteria", @@ -274,12 +342,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2704", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2704", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"LowerRelop1", "label":"LowerRelop1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ "Operator", @@ -319,92 +387,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2710", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"hitMin", - "label":"hitMin", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729: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":[ - "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:9729:2791:2700", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2700", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"u", "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ "Port", @@ -466,38 +454,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2707", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2848", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"UpperRelop", - "label":"UpperRelop", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828: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":{ @@ -506,17 +506,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2699", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2701", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"up", - "label":"up", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "name":"lo", + "label":"lo", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ "Port", @@ -538,7 +538,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "3", "Port number", "[]", "[]", @@ -578,12 +578,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2701", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2699", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"lo", - "label":"lo", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "name":"up", + "label":"up", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ "Port", @@ -605,7 +605,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "1", "Port number", "[]", "[]", @@ -645,12 +645,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2849#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2849#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -696,12 +696,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2701#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2701#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -747,12 +747,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2704#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2704#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -798,12 +798,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2707#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2707#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -849,12 +849,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2699#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2699#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -900,12 +900,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2700#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2700#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ "SignalNameFromLabel", @@ -951,12 +951,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791:2848#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791:2848#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828: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_10828_2791_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2791_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.png diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.svg similarity index 94% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.svg index 2c659f5..0f8cd15 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2791_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.svg @@ -9,11 +9,107 @@ - + - + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + hitMin + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + + + + + @@ -23,11 +119,11 @@ - + - + 1 @@ -45,11 +141,11 @@ - + - + hitMax @@ -61,7 +157,7 @@ - + @@ -71,19 +167,19 @@ - + - + - + - + @@ -109,11 +205,11 @@ - + - + UpperRelop @@ -124,11 +220,11 @@ - + - + boolean @@ -140,7 +236,7 @@ - + @@ -150,155 +246,155 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T - + - + F @@ -316,11 +412,11 @@ - + - + sfix16_En4 @@ -332,57 +428,9 @@ - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - y - - - - - - - - - - - + - + @@ -390,19 +438,19 @@ - + - + - + - + @@ -428,11 +476,11 @@ - + - + LowerRelop1 @@ -443,11 +491,11 @@ - + - + boolean @@ -459,9 +507,72 @@ - + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + - + @@ -469,155 +580,155 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T - + - + F @@ -635,11 +746,11 @@ - + - + sfix16_En4 @@ -651,118 +762,7 @@ - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - hitMin - - - - - - - - - - - + @@ -825,7 +825,7 @@ - + @@ -886,7 +886,7 @@ - + @@ -900,7 +900,7 @@ - + @@ -934,7 +934,7 @@ - + @@ -968,7 +968,7 @@ - + @@ -1002,7 +1002,7 @@ - + @@ -1036,7 +1036,7 @@ - + @@ -1081,16 +1081,16 @@ - + - + - + @@ -1106,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_10828_2816_d.json similarity index 86% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_2816_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2816_d.json index b40806a..cb9dfc5 100644 --- 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_10828_2816_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2819", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2819", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"preSat", "label":"preSat", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "Port", @@ -67,12 +67,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2818", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2818", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"preIntegrator", "label":"preIntegrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "Port", @@ -134,12 +134,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2831", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2831", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"Clamp", "label":"Clamp", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "Port", @@ -214,43 +214,12 @@ } }, { - "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:2837", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2837", "className":"Simulink.Signum", "icon":"WebViewIcon3", "name":"SignDeltaU2", "label":"SignDeltaU2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "ZeroCross", @@ -276,12 +245,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2841", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2841", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"Equal1", "label":"Equal1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "Operator", @@ -321,12 +290,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2840", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2836", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"DataTypeConv4", - "label":"DataTypeConv4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "name":"DataTypeConv3", + "label":"DataTypeConv3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "OutMin", @@ -368,12 +337,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2836", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2840", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"DataTypeConv3", - "label":"DataTypeConv3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "name":"DataTypeConv4", + "label":"DataTypeConv4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "OutMin", @@ -415,12 +384,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2843", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2839", + "className":"Simulink.Signum", + "icon":"WebViewIcon3", + "name":"SignDeltaU3", + "label":"SignDeltaU3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", + "inspector":{ + "params":[ + "ZeroCross", + "SampleTime" + ], + "values":[ + "on", + "-1" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Signum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2843", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"hitSat", "label":"hitSat", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "Port", @@ -482,12 +482,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2838", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2838", "className":"Simulink.Logic", "icon":"WebViewIcon3", "name":"AND1", "label":"AND1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "Operator", @@ -527,12 +527,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2843#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2843#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -578,12 +578,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2838#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2838#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -629,12 +629,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2841#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2841#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -680,12 +680,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2840#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2840#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -731,12 +731,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2836#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2836#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -782,12 +782,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2839#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2839#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -833,12 +833,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2837#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2837#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -884,12 +884,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2819#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2819#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "SignalNameFromLabel", @@ -935,12 +935,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2818#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2818#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ "SignalNameFromLabel", 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_10828_2816_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_2816_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2816_d.png 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_10828_2816_d.svg similarity index 92% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_2816_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2816_d.svg index bfb01c0..1dc4deb 100644 --- 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_10828_2816_d.svg @@ -9,11 +9,11 @@ - + - + @@ -76,7 +76,7 @@ - + @@ -139,7 +139,7 @@ - + @@ -187,11 +187,11 @@ - - - + + + - + @@ -201,7 +201,7 @@ - + @@ -209,7 +209,7 @@ - + @@ -217,7 +217,7 @@ - + @@ -225,7 +225,7 @@ - + @@ -240,23 +240,23 @@ - + - + - + - - int16 + + int32 @@ -267,9 +267,9 @@ - + - + @@ -339,46 +339,30 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - - - - - - - - + - - + + @@ -392,23 +376,23 @@ - - + + - - + + - - + + - - int32 + + int8 @@ -419,29 +403,29 @@ - - + + - + - + - + - + - + @@ -456,22 +440,22 @@ - + - + - - + + - + int8 @@ -483,30 +467,46 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + @@ -520,23 +520,23 @@ - - + + - - + + - + - - int8 + + int16 @@ -547,7 +547,7 @@ - + @@ -610,9 +610,9 @@ - + - + @@ -672,7 +672,7 @@ - + @@ -686,7 +686,7 @@ - + @@ -700,7 +700,7 @@ - + @@ -714,7 +714,7 @@ - + @@ -728,7 +728,7 @@ - + @@ -742,7 +742,7 @@ - + @@ -756,7 +756,7 @@ - + @@ -770,7 +770,7 @@ - + @@ -784,7 +784,7 @@ - + @@ -800,5 +800,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.json index 68ee10c..5618e92 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2785", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2785", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"out", "label":"out", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "Port", @@ -80,42 +80,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2815", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2817", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"a_elecPeriod1", - "label":"a_elecPeriod1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"UnitDelay1", + "label":"UnitDelay1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ - "Value", - "VectorParams1D", + "InitialCondition", + "InputProcessing", "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", + "Inherited", + "-1", + "", + "", "off", - "inf" + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, 3, - 7 + 4 ] }, "viewer":{ @@ -124,47 +125,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"UnitDelay", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2783", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2814", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ - "IconShape", - "Inputs", + "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", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: Inherit via back propagation", "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "Zero", + "off", + "off", + "-1", + "0", + "on" ], "tabs":[ "Main", @@ -173,8 +172,8 @@ ], "tabs_idx":[ 0, - 2, - 10 + 1, + 9 ] }, "viewer":{ @@ -183,17 +182,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2781", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2781", "className":"Simulink.Sum", "icon":"WebViewIcon3", "name":"Sum2", "label":"Sum2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "IconShape", @@ -247,45 +246,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2845", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", - "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:9721:2779", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", "name":"Integrator", "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "ShowPortLabels", @@ -377,76 +343,145 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2814", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2795", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", + "b_hitMin", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"Saturation_hit", + "label":"Saturation_hit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "ShowPortLabels", + "BlockChoice", + "TemplateBlock", + "MemberBlocks", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "MinAlgLoopOccurrences", + "PropExecContextOutsideSubsystem", + "SystemSampleTime", + "RTWSystemCode", + "RTWFcnNameOpts", + "RTWFcnName", + "RTWFileNameOpts", + "RTWFileName", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "RTWMemSecFuncInitTerm", + "RTWMemSecFuncExecute", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "IsSubsystemVirtual", + "Variant", + "VariantControl", + "OverrideUsingVariant", + "GeneratePreprocessorConditionals", + "AllowZeroVariantControls", + "PropagateVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "TreatAsGroupedWhenPropagatingVariantConditions" + ], + "values":[ + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", "off", - "Zero", "off", "off", "-1", - "0", + "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":[ - "Main", - "Signal Attributes", - "-Other" ], "tabs_idx":[ - 0, - 1, - 9 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2833", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2846", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "GotoTag", "IconDisplay" ], "values":[ - "b_hitMin", + "b_hitSat", "Tag" ], "tabs":[ @@ -465,19 +500,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2832", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2833", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "GotoTag", "IconDisplay" ], "values":[ - "b_hitMax", + "b_hitMin", "Tag" ], "tabs":[ @@ -496,12 +531,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2776", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2776", "className":"Simulink.Product", "icon":"WebViewIcon3", "name":"Divide2", "label":"Divide2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "Inputs", @@ -553,51 +588,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2778", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2845", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Divide5", - "label":"Divide5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,5)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "b_hitSat", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -605,91 +616,95 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "className":"Simulink.SubSystem", - "icon":"WebViewIcon9", - "name":"Saturation_hit", - "label":"Saturation_hit", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "icon":"WebViewIcon1", + "name":"Clamping_circuit", + "label":"Clamping_circuit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "ShowPortLabels", - "BlockChoice", - "TemplateBlock", - "MemberBlocks", "Permissions", "ErrorFcn", "PermitHierarchicalResolution", "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", "MinAlgLoopOccurrences", + "OverrideUsingVariant", "PropExecContextOutsideSubsystem", - "SystemSampleTime", - "RTWSystemCode", - "RTWFcnNameOpts", + "PropagateVariantConditions", "RTWFcnName", - "RTWFileNameOpts", + "RTWFcnNameOpts", "RTWFileName", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "RTWMemSecFuncInitTerm", - "RTWMemSecFuncExecute", + "RTWFileNameOpts", "RTWMemSecDataConstants", "RTWMemSecDataInternal", "RTWMemSecDataParameters", - "IsSubsystemVirtual", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", "Variant", - "VariantControl", - "OverrideUsingVariant", - "GeneratePreprocessorConditionals", - "AllowZeroVariantControls", - "PropagateVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "TreatAsGroupedWhenPropagatingVariantConditions" + "VariantControl" ], "values":[ "FromPortIcon", + "ReadWrite", "", + "All", + "off", + "on", "", "", - "ReadWrite", + "off", "", - "All", + "void_void", "off", "off", + "on", + "", + "off", + "", + "off", "off", - "-1", - "Auto", - "Auto", "", "Auto", "", - "void_void", - "off", + "Auto", "Inherit from model", "Inherit from model", "Inherit from model", "Inherit from model", "Inherit from model", - "on", - "off", - "", + "Auto", + "-1", "", "off", - "off", - "off", - "", - "", - "on" + "" ], "tabs":[ + "Main", + "-Other" ], "tabs_idx":[ + 0, + 6 ] }, "viewer":{ @@ -703,12 +718,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2773", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2773", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"ext_limProt", "label":"ext_limProt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "Port", @@ -770,12 +785,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2733", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2733", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"satMin", "label":"satMin", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "Port", @@ -837,12 +852,79 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2795", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2732", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMax", + "label":"satMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:10828:2794", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "GotoTag", @@ -850,7 +932,7 @@ "IconDisplay" ], "values":[ - "b_hitMin", + "b_hitMax", "local", "Tag" ], @@ -870,12 +952,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2770", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2771", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"P", - "label":"P", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"I", + "label":"I", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "Port", @@ -897,7 +979,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -937,178 +1019,91 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clamping_circuit", - "label":"Clamping_circuit", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2815", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant", + "label":"Constant", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", + "0", "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", "off", - "" + "inf" ], "tabs":[ "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 6 + 3, + 7 ] }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2846", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_hitSat", - "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:9721:2769", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2783", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"err", - "label":"err", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ - "Port", - "IconDisplay", + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "1", - "Port number", + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "fixdt(1,16,4)", "off", - "", + "Simplest", "on", - "off", - "off", - "off" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -1118,7 +1113,7 @@ "tabs_idx":[ 0, 2, - 11 + 10 ] }, "viewer":{ @@ -1127,17 +1122,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2732", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2769", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"satMax", - "label":"satMax", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"err", + "label":"err", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "Port", @@ -1159,7 +1154,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "1", "Port number", "[]", "[]", @@ -1199,43 +1194,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2817", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2778", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"UnitDelay1", - "label":"UnitDelay1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"Divide5", + "label":"Divide5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "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,5)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 2, + 9 ] }, "viewer":{ @@ -1244,26 +1246,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2794", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2832", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "b_hitMax", - "local", "Tag" ], "tabs":[ @@ -1277,17 +1277,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2771", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2770", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"I", - "label":"I", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"P", + "label":"P", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "Port", @@ -1309,7 +1309,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -1349,12 +1349,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2844", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2844", "className":"Simulink.Logic", "icon":"WebViewIcon3", "name":"AND1", "label":"AND1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "Operator", @@ -1394,12 +1394,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1445,12 +1445,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2846#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2846#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1496,12 +1496,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2844#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2844#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1547,12 +1547,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2833#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2833#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1598,12 +1598,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2832#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2832#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1649,12 +1649,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2817#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2817#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1700,12 +1700,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1751,12 +1751,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2814#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2814#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1802,12 +1802,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2781#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2781#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1853,12 +1853,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2783#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2783#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1904,12 +1904,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2815#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2815#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1955,12 +1955,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791#out:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2006,12 +2006,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2057,12 +2057,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2733#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2733#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2108,12 +2108,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2732#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2732#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2159,12 +2159,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2770#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2770#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2210,12 +2210,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2261,12 +2261,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2771#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2771#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2312,12 +2312,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2778#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2778#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2363,12 +2363,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2776#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2776#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2414,12 +2414,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2773#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2773#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "SignalNameFromLabel", @@ -2465,12 +2465,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2769#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2769#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "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_10828_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.png diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.svg similarity index 92% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.svg index 27a580b..e15f957 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9721_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.svg @@ -9,11 +9,11 @@ - + - + @@ -61,44 +61,91 @@ - - - + + + - - + + - + - + - - 0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + Ini=0 - - + + - - + + - - sfix32_En20 + + boolean @@ -109,68 +156,188 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - + + - - + + - - + + - - sfix16_En4 + + sfix32_En20 @@ -181,7 +348,7 @@ - + @@ -191,35 +358,35 @@ - + - + - + - + - + - + - + - + @@ -237,11 +404,11 @@ - + - + sfix32_En20 @@ -253,42 +420,9 @@ - - - - - - - - - - - - - - - - [b_hitSat] - - - - - - - - - - - - - - - - - - + - + @@ -302,19 +436,19 @@ - + - + u - + - + y @@ -344,11 +478,11 @@ - + - + Integrator @@ -365,11 +499,11 @@ - + - + sfix16_En4 @@ -381,194 +515,225 @@ - + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + [b_hitMin] - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + up - - + + - - + + u - - + + - - + + lo - - + + - - + + hitMax - - + + - - + + y - - + + - - + + hitMin - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - T + + + + + + + + + + + + + + + + - - + + - - F + + boolean - - - + + + + + + + + + + + sfix16_En4 - - + + - - + + - - sfix32_En20 + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -579,43 +744,43 @@ - - - + + + - - + + - - + + - - [b_hitMin] + + [b_hitSat] - - + + - - + + - - + + - + boolean @@ -627,43 +792,43 @@ - - + + - + - + - - [b_hitMax] + + [b_hitMin] - + - + - - + + - + boolean @@ -675,7 +840,7 @@ - + @@ -685,19 +850,19 @@ - + - + - + - + @@ -715,11 +880,11 @@ - + - + sfix32_En20 @@ -731,52 +896,29 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + [b_hitSat] - - - - - - - - - - - - - - - - - sfix16_En5 + + @@ -787,186 +929,107 @@ - - - + + + - - + + + + + + + + - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - hitMax - - - - - - - - y - - - - - - - - hitMin - - - - - - - - - + - - + + - - + + preIntegrator - - + + - - + + preSat - - + + - - + + hitSat - - + + - - + + Clamp - - - - - - - - - - - - - + + + + - - boolean + + - - - + + + + + + + + + - - + + - - sfix16_En4 + + Clamping_circuit - - - - - - + + + + - - boolean + + - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - + + boolean @@ -977,7 +1040,13 @@ - + + + + + + + @@ -987,11 +1056,11 @@ - + - + 6 @@ -1009,11 +1078,11 @@ - + - + ext_limProt @@ -1024,11 +1093,11 @@ - + - + sfix32_En20 @@ -1040,7 +1109,7 @@ - + @@ -1050,11 +1119,11 @@ - + - + 5 @@ -1072,11 +1141,11 @@ - + - + satMin @@ -1087,11 +1156,11 @@ - + - + sfix16_En4 @@ -1103,92 +1172,59 @@ - - - - - - - - - - - - - - - - [b_hitMin] - - - - - - - - - - - - - - - - - - - + + - + - + - - 2 + + 4 - + - - + + - - + + - - P + + satMax - - + + - - + + - - ufix16_En12 + + sfix16_En4 @@ -1199,107 +1235,92 @@ - - - + + + - - - - - - - - + + - - - - - - preIntegrator - - - - + + - - preSat + + [b_hitMax] - - - - - - - hitSat + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - Clamp + + 3 - - - - - - - - + + - - - - - - - - + + - - + + - - Clamping_circuit + + I - - - - - - - - + + - - + + - - boolean + + ufix16_En16 @@ -1310,50 +1331,44 @@ - - - - - - - - - + + + - - + + - - + + - - [b_hitSat] + + 0 - - + + - - + + - - + + - - boolean + + sfix32_En20 @@ -1364,58 +1379,67 @@ - - - + + + - - + + - - + + - - 1 + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - err + + + + + + + + + - + - - + + - + sfix16_En4 @@ -1427,58 +1451,58 @@ - - + + - + - + - - 4 + + 1 - + - - + + - - + + - - satMax + + err - + - - + + - + sfix16_En4 @@ -1490,91 +1514,52 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - Ini=0 + + - - + + - - + + - - boolean + + sfix16_En5 @@ -1585,29 +1570,44 @@ - - - + + + - - + + - - + + - + [b_hitMax] - - + + + + + + + + + + + + + + + + + boolean @@ -1618,11 +1618,11 @@ - - + + - + @@ -1632,45 +1632,45 @@ - - 3 + + 2 - + - - + + - + - - I + + P - + - + - - ufix16_En16 + + ufix16_En12 @@ -1681,7 +1681,7 @@ - + @@ -1743,7 +1743,7 @@ - + @@ -1757,7 +1757,7 @@ - + @@ -1771,7 +1771,7 @@ - + @@ -1785,7 +1785,7 @@ - + @@ -1799,7 +1799,7 @@ - + @@ -1813,7 +1813,7 @@ - + @@ -1827,7 +1827,7 @@ - + @@ -1841,7 +1841,7 @@ - + @@ -1855,7 +1855,7 @@ - + @@ -1889,7 +1889,7 @@ - + @@ -1923,7 +1923,7 @@ - + @@ -1937,7 +1937,7 @@ - + @@ -1951,7 +1951,7 @@ - + @@ -1965,7 +1965,7 @@ - + @@ -1979,7 +1979,7 @@ - + @@ -1993,7 +1993,7 @@ - + @@ -2007,7 +2007,7 @@ - + @@ -2021,7 +2021,7 @@ - + @@ -2035,7 +2035,7 @@ - + @@ -2049,7 +2049,7 @@ - + @@ -2063,7 +2063,7 @@ - + @@ -2077,7 +2077,7 @@ - + @@ -2113,5 +2113,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2395_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10829_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2395_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10829_d.json index 6cb05b4..19c5274 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2395_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10829_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:10", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:10", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"y", "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "Port", @@ -80,12 +80,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:9", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:9", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"UpperRelop", "label":"UpperRelop", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "Operator", @@ -125,12 +125,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:8", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:8", "className":"Simulink.Switch", "icon":"WebViewIcon3", "name":"Switch2", "label":"Switch2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "Criteria", @@ -182,12 +182,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:7", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:7", "className":"Simulink.Switch", "icon":"WebViewIcon3", "name":"Switch", "label":"Switch", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "Criteria", @@ -239,12 +239,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:6", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", "name":"LowerRelop1", "label":"LowerRelop1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "Operator", @@ -284,12 +284,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:5", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:5", "className":"Simulink.SFunction", "icon":"WebViewIcon3", "name":"Data Type Propagation", "label":"Data Type Propagation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "PropDataTypeMode", @@ -347,12 +347,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:4", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:4", "className":"Simulink.DataTypeDuplicate", "icon":"WebViewIcon3", "name":"Data Type Duplicate", "label":"Data Type Duplicate", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "NumInputPorts" @@ -376,12 +376,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:3", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"lo", "label":"lo", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "Port", @@ -443,12 +443,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:2", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"u", "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "Port", @@ -510,12 +510,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:1", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"up", "label":"up", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "Port", @@ -577,12 +577,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:1#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:1#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "SignalNameFromLabel", @@ -628,12 +628,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:2#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:2#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "SignalNameFromLabel", @@ -679,12 +679,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:3#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:3#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "SignalNameFromLabel", @@ -730,12 +730,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:7#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:7#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "SignalNameFromLabel", @@ -781,12 +781,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:8#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:8#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "SignalNameFromLabel", @@ -832,12 +832,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:6#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:6#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "SignalNameFromLabel", @@ -883,12 +883,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395:9#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829:9#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10829_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10829_d.png new file mode 100644 index 0000000..7eb4c3d Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10829_d.png differ 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_10829_d.svg similarity index 98% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8993_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10829_d.svg index 06277e4..c29baab 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_10829_d.svg @@ -9,11 +9,11 @@ - + - + @@ -61,7 +61,7 @@ - + @@ -140,7 +140,7 @@ - + @@ -332,7 +332,7 @@ - + @@ -524,7 +524,7 @@ - + @@ -603,7 +603,7 @@ - + @@ -652,7 +652,7 @@ - + @@ -709,7 +709,7 @@ - + @@ -772,7 +772,7 @@ - + @@ -835,7 +835,7 @@ - + @@ -896,7 +896,7 @@ - + @@ -930,7 +930,7 @@ - + @@ -1009,22 +1009,22 @@ - + - + - + - + - + @@ -1058,7 +1058,7 @@ - + @@ -1103,16 +1103,16 @@ - + - + - + @@ -1146,7 +1146,7 @@ - + @@ -1160,7 +1160,7 @@ - + @@ -1176,5 +1176,5 @@ - + 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 5241f3b..6924cf8 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 @@ -97,6 +97,55 @@ "finder":[ ] }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10192", + "className":"Simulink.Annotation", + "icon":"WebViewIcon2", + "name":"

Task1: Diagnostics + Control_Manager
Task2: Field Weakening + Limitations
Task3: PI Controllers in FOC

", + "label":"

Task1: Diagnostics + Control_Manager
Task2: Field Weakening + Limitations
Task3: PI Controllers in FOC

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

Task1: Diagnostics + Control_Manager
Task2: Field Weakening + Limitations
Task3: PI Controllers in FOC

", + "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:9307", "className":"Simulink.Annotation", @@ -227,11 +276,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9305", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9304", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"r_devSignal1", - "label":"r_devSignal1", + "name":"a_elecAngle", + "label":"a_elecAngle", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -260,7 +309,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "7", + "6", "Port number", "[]", "[]", @@ -273,9 +322,9 @@ "auto", "off", "off", - "0", + "[]", "off", - "reset", + "held", "off", "0", "", @@ -307,11 +356,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9304", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9303", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"a_elecAngle", - "label":"a_elecAngle", + "name":"n_mot", + "label":"n_mot", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -340,7 +389,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "6", + "5", "Port number", "[]", "[]", @@ -387,32 +436,63 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9298", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9302", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"z_ctrlTypSel1", - "label":"z_ctrlTypSel1", + "name":"z_errCode", + "label":"z_errCode", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "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":[ - "z_ctrlTypSel", - "on", - "inf", + "4", + "Port number", "[]", "[]", - "uint8", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -421,8 +501,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -431,16 +511,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9297", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10064", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"b_diagEna", - "label":"b_diagEna", + "name":"b_fieldWeakEna", + "label":"b_fieldWeakEna", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -454,7 +534,7 @@ "FramePeriod" ], "values":[ - "b_diagEna", + "b_fieldWeakEna", "on", "inf", "[]", @@ -485,36 +565,32 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9669", - "className":"Simulink.Saturate", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9297", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Saturation2", - "label":"Saturation2", + "name":"b_diagEna", + "label":"b_diagEna", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "UpperLimit", - "LowerLimit", - "LinearizeAsGain", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SampleTime", - "ZeroCross" + "FramePeriod" ], "values":[ - "1000", - "-1000", + "b_diagEna", "on", + "inf", "[]", "[]", - "fixdt(1,16,4)", + "boolean", "off", - "Floor", - "-1", - "on" + "inf" ], "tabs":[ "Main", @@ -524,7 +600,7 @@ "tabs_idx":[ 0, 3, - 8 + 7 ] }, "viewer":{ @@ -533,51 +609,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Saturate", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9294", - "className":"Simulink.Saturate", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9441", + "className":"Simulink.Terminator", "icon":"WebViewIcon3", - "name":"Saturation", - "label":"Saturation", + "name":"Terminator", + "label":"Terminator", "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":{ @@ -586,111 +636,138 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Saturate", + "blocktype":"Terminator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9291", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Task_Scheduler", + "label":"Task_Scheduler", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" + "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":[ - "1", - "u1 ~= 0", + "FromPortIcon", + "ReadWrite", "", + "All", "off", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9302", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10751", + "className":"Simulink.Saturate", "icon":"WebViewIcon3", - "name":"z_errCode", - "label":"z_errCode", + "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", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "ZeroCross" ], "values":[ - "4", - "Port number", + "1700", + "-1700", + "on", "[]", "[]", - "Inherit: auto", + "fixdt(1,16,4)", "off", - "inherit", - "-1", - "Inherit", + "Floor", "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "on" ], "tabs":[ "Main", @@ -699,8 +776,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 8 ] }, "viewer":{ @@ -709,65 +786,139 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Saturate", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9284", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "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":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "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":[ - "b_hallC", - "local", - "Tag" + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" ], "tabs":[ - "Parameter Attributes" + "Main", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 6 + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9289", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10258", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"Goto28", - "label":"Goto28", + "name":"If4", + "label":"If4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" ], "values":[ - "b_motEna", - "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" @@ -775,32 +926,42 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9287", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9290", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"Goto26", - "label":"Goto26", + "name":"If1", + "label":"If1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" ], "values":[ - "DC_phaA", - "local", - "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" @@ -808,79 +969,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9303", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9934", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", + "name":"Goto7", + "label":"Goto7", "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":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "z_dir", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -888,16 +1002,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9283", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9279", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto23", - "label":"Goto23", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -906,7 +1020,7 @@ "IconDisplay" ], "values":[ - "z_pos", + "z_ctrlTypSel", "local", "Tag" ], @@ -926,11 +1040,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9272", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9289", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto28", + "label":"Goto28", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -939,7 +1053,7 @@ "IconDisplay" ], "values":[ - "r_devSignal2", + "b_motEna", "local", "Tag" ], @@ -959,11 +1073,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9278", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9286", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", + "name":"Goto25", + "label":"Goto25", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -972,7 +1086,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "DC_phaC", "local", "Tag" ], @@ -992,11 +1106,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9276", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9283", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", + "name":"Goto23", + "label":"Goto23", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1005,7 +1119,7 @@ "IconDisplay" ], "values":[ - "i_phaBC", + "z_pos", "local", "Tag" ], @@ -1025,11 +1139,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9275", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10189", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", + "name":"Goto20", + "label":"Goto20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1038,7 +1152,7 @@ "IconDisplay" ], "values":[ - "a_elecAngle", + "task3", "local", "Tag" ], @@ -1058,27 +1172,74 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9456", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9300", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", + "name":"DC_phaB", + "label":"DC_phaB", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "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":[ - "VqFinPrev", - "local", - "Tag" + "2", + "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" @@ -1086,16 +1247,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9271", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10188", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", + "name":"Goto19", + "label":"Goto19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1104,7 +1265,7 @@ "IconDisplay" ], "values":[ - "r_devSignal1", + "task1", "local", "Tag" ], @@ -1124,11 +1285,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9270", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10187", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Goto18", + "label":"Goto18", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1137,7 +1298,7 @@ "IconDisplay" ], "values":[ - "b_hallA", + "task2", "local", "Tag" ], @@ -1157,11 +1318,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9269", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9277", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto16", + "label":"Goto16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1170,7 +1331,7 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "z_ctrlModReq", "local", "Tag" ], @@ -1190,19 +1351,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9392", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9275", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"Goto14", + "label":"Goto14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_ctrlModReq", + "a_elecAngle", + "local", "Tag" ], "tabs":[ @@ -1216,24 +1379,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9252", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9274", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_hallA", + "i_phaAB", + "local", "Tag" ], "tabs":[ @@ -1247,51 +1412,59 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9293", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Model_Info", - "label":"Model_Info", + "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":[ - ] + "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:9250", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9437", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"Goto11", + "label":"Goto11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "b_motStdStill", + "local", "Tag" ], "tabs":[ @@ -1305,16 +1478,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9251", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10159", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1341,11 +1514,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9241", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9252", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1353,7 +1526,7 @@ "IconDisplay" ], "values":[ - "n_mot", + "b_hallA", "Tag" ], "tabs":[ @@ -1372,11 +1545,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9263", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9251", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From46", - "label":"From46", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1384,7 +1557,7 @@ "IconDisplay" ], "values":[ - "r_devSignal1", + "z_ctrlTypSel", "Tag" ], "tabs":[ @@ -1403,11 +1576,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9267", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9250", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From34", - "label":"From34", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1415,7 +1588,7 @@ "IconDisplay" ], "values":[ - "a_elecAngle", + "z_ctrlTypSel", "Tag" ], "tabs":[ @@ -1434,11 +1607,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9265", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9262", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From32", - "label":"From32", + "name":"From45", + "label":"From45", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1446,7 +1619,7 @@ "IconDisplay" ], "values":[ - "DC_phaB", + "r_devSignal2", "Tag" ], "tabs":[ @@ -1465,19 +1638,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9264", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9269", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From31", - "label":"From31", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "DC_phaA", + "r_inpTgt", + "local", "Tag" ], "tabs":[ @@ -1491,16 +1666,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9261", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9418", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From29", - "label":"From29", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1508,7 +1683,7 @@ "IconDisplay" ], "values":[ - "b_hallC", + "b_motStdStill", "Tag" ], "tabs":[ @@ -1527,21 +1702,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9281", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10692", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"From39", + "label":"From39", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "b_hallB", - "local", + "n_motAbs", "Tag" ], "tabs":[ @@ -1555,16 +1728,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9258", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10355", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From28", - "label":"From28", + "name":"From37", + "label":"From37", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1572,7 +1745,7 @@ "IconDisplay" ], "values":[ - "z_errCode", + "task2", "Tag" ], "tabs":[ @@ -1591,11 +1764,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9259", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9268", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From27", - "label":"From27", + "name":"From35", + "label":"From35", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1603,7 +1776,7 @@ "IconDisplay" ], "values":[ - "b_hallB", + "n_mot", "Tag" ], "tabs":[ @@ -1622,47 +1795,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9295", - "className":"Simulink.Saturate", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9284", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Saturation1", - "label":"Saturation1", + "name":"Goto9", + "label":"Goto9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "UpperLimit", - "LowerLimit", - "LinearizeAsGain", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SampleTime", - "ZeroCross" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "2000", - "-2000", - "on", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Floor", - "-1", - "on" + "b_hallC", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 8 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1670,16 +1823,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Saturate", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9257", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9267", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From26", - "label":"From26", + "name":"From34", + "label":"From34", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1687,7 +1840,7 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "a_elecAngle", "Tag" ], "tabs":[ @@ -1706,11 +1859,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9280", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9282", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1719,7 +1872,7 @@ "IconDisplay" ], "values":[ - "z_posRaw", + "z_errCode", "local", "Tag" ], @@ -1739,11 +1892,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9253", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9265", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", + "name":"From32", + "label":"From32", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1751,7 +1904,7 @@ "IconDisplay" ], "values":[ - "a_elecAngle", + "DC_phaB", "Tag" ], "tabs":[ @@ -1770,11 +1923,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9388", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9264", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From31", + "label":"From31", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1782,7 +1935,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "DC_phaA", "Tag" ], "tabs":[ @@ -1801,11 +1954,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9249", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9261", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From17", - "label":"From17", + "name":"From29", + "label":"From29", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1813,7 +1966,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "b_hallC", "Tag" ], "tabs":[ @@ -1832,11 +1985,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9437", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9287", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", + "name":"Goto26", + "label":"Goto26", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1845,7 +1998,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "DC_phaA", "local", "Tag" ], @@ -1865,11 +2018,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9245", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9258", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", + "name":"From28", + "label":"From28", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1877,7 +2030,7 @@ "IconDisplay" ], "values":[ - "i_phaBC", + "z_errCode", "Tag" ], "tabs":[ @@ -1896,104 +2049,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9292", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Implemented_control_methods", - "label":"Implemented_control_methods", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10257", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From26", + "label":"From26", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "ShowPortLabels", - "BlockChoice", - "TemplateBlock", - "MemberBlocks", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "MinAlgLoopOccurrences", - "PropExecContextOutsideSubsystem", - "SystemSampleTime", - "RTWSystemCode", - "RTWFcnNameOpts", - "RTWFcnName", - "RTWFileNameOpts", - "RTWFileName", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "RTWMemSecFuncInitTerm", - "RTWMemSecFuncExecute", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "IsSubsystemVirtual", - "Variant", - "VariantControl", - "OverrideUsingVariant", - "GeneratePreprocessorConditionals", - "AllowZeroVariantControls", - "PropagateVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "TreatAsGroupedWhenPropagatingVariantConditions" + "GotoTag", + "IconDisplay" ], "values":[ - "FromPortIcon", - "", - "", - "", - "ReadWrite", - "", - "All", - "off", - "off", - "off", - "-1", - "Auto", - "Auto", - "", - "Auto", - "", - "void_void", - "off", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "on", - "off", - "", - "", - "off", - "off", - "off", - "", - "", - "on" + "task1", + "Tag" ], "tabs":[ + "Parameter Attributes" ], - "tabs_idx":[ - ] + "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:9244", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10027", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", + "name":"From23", + "label":"From23", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2001,7 +2092,7 @@ "IconDisplay" ], "values":[ - "i_phaAB", + "VqFinPrev", "Tag" ], "tabs":[ @@ -2020,11 +2111,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9242", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9253", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From22", + "label":"From22", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2032,7 +2123,7 @@ "IconDisplay" ], "values":[ - "b_motEna", + "a_elecAngle", "Tag" ], "tabs":[ @@ -2051,74 +2142,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9299", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10026", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"DC_phaA", - "label":"DC_phaA", + "name":"From21", + "label":"From21", "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", + "IconDisplay" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "r_inpTgt", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2126,139 +2168,61 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F05_Control_Type_Management", - "label":"F05_Control_Type_Management", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9935", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From19", + "label":"From19", "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" + "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", - "" + "z_dir", + "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:9290", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9248", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", + "name":"From16", + "label":"From16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" + "GotoTag", + "IconDisplay" ], "values":[ - "1", - "u1 == CTRL_FOC", - "", - "off", - "-1", - "on" + "z_ctrlModReq", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2266,26 +2230,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9441", - "className":"Simulink.Terminator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9241", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Terminator", - "label":"Terminator", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ + "GotoTag", + "IconDisplay" ], "values":[ + "n_mot", + "Tag" ], "tabs":[ + "Parameter Attributes" ], - "tabs_idx":[ - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2293,26 +2261,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Terminator", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9277", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10356", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto16", - "label":"Goto16", + "name":"From38", + "label":"From38", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_ctrlModReq", - "local", + "task3", "Tag" ], "tabs":[ @@ -2326,113 +2292,47 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "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" + "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":[ - "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_fieldWeak", + "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:9260", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9931", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From30", - "label":"From30", + "name":"From14", + "label":"From14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2440,7 +2340,7 @@ "IconDisplay" ], "values":[ - "z_pos", + "r_fieldWeak", "Tag" ], "tabs":[ @@ -2459,11 +2359,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9448", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9244", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", + "name":"From12", + "label":"From12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2471,7 +2371,7 @@ "IconDisplay" ], "values":[ - "VqFinPrev", + "i_phaAB", "Tag" ], "tabs":[ @@ -2490,21 +2390,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9288", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9263", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", + "name":"From46", + "label":"From46", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_mot", - "local", + "r_devSignal1", "Tag" ], "tabs":[ @@ -2518,16 +2416,109 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10259", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From36", + "label":"From36", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "task2", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9720", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9242", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F02_Diagnostics", - "label":"F02_Diagnostics", + "name":"F06_Control_Type_Management", + "label":"F06_Control_Type_Management", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2579,7 +2570,7 @@ "void_void", "off", "off", - "off", + "on", "", "off", "", @@ -2620,11 +2611,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9418", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9259", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From27", + "label":"From27", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2632,7 +2623,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "b_hallB", "Tag" ], "tabs":[ @@ -2651,21 +2642,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9285", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10025", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto24", - "label":"Goto24", + "name":"From20", + "label":"From20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "DC_phaB", - "local", + "z_ctrlTypSel", "Tag" ], "tabs":[ @@ -2679,24 +2668,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9720", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9276", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_motEna", + "i_phaBC", + "local", "Tag" ], "tabs":[ @@ -2710,79 +2701,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9300", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9266", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"DC_phaB", - "label":"DC_phaB", + "name":"From33", + "label":"From33", "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", + "IconDisplay" ], "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "DC_phaC", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2790,73 +2732,121 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8218", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion8", - "label":"Data Type Conversion8", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F04_Field_Weakening", + "label":"F04_Field_Weakening", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "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":[ - "[]", - "[]", - "int16", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "Real World Value (RWV)", - "Floor", + "on", + "", + "", "off", - "-1" + "", + "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":[ - "Parameter Attributes", + "Main", "-Other" ], "tabs_idx":[ 0, - 7 + 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9282", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9930", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_errCode", - "local", + "a_elecAngle", "Tag" ], "tabs":[ @@ -2870,16 +2860,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9436", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10191", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2887,7 +2877,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "task1", "Tag" ], "tabs":[ @@ -2906,41 +2896,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8215", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9288", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Data Type Conversion5", - "label":"Data Type Conversion5", + "name":"Goto27", + "label":"Goto27", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "[]", - "[]", - "int16", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" + "n_mot", + "local", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2948,46 +2924,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8214", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9245", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Data Type Conversion4", - "label":"Data Type Conversion4", + "name":"From13", + "label":"From13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "[]", - "[]", - "int16", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" + "i_phaBC", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2995,79 +2955,145 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8217", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion7", - "label":"Data Type Conversion7", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F02_Diagnostics", + "label":"F02_Diagnostics", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "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":[ - "[]", - "[]", - "int16", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "Real World Value (RWV)", - "Floor", + "on", + "", + "", "off", - "-1" + "", + "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":[ - "Parameter Attributes", + "Main", "-Other" ], "tabs_idx":[ 0, - 7 + 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9286", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9298", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto25", - "label":"Goto25", + "name":"z_ctrlTypSel1", + "label":"z_ctrlTypSel1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "DC_phaC", - "local", - "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" @@ -3075,79 +3101,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9301", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9285", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"DC_phaC", - "label":"DC_phaC", + "name":"Goto24", + "label":"Goto24", "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" + "DC_phaB", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -3155,46 +3134,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8213", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10161", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Data Type Conversion3", - "label":"Data Type Conversion3", + "name":"From25", + "label":"From25", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "[]", - "[]", - "int16", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" + "n_motAbs", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -3202,130 +3165,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8209", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"i_DCLink", - "label":"i_DCLink", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "9", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8210", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "int16", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F01_Estimations", - "label":"F01_Estimations", + "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":[ @@ -3418,19 +3267,68 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9385", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8217", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"Data Type Conversion7", + "label":"Data Type Conversion7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "int16", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9280", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_inpTgt", + "z_posRaw", + "local", "Tag" ], "tabs":[ @@ -3444,16 +3342,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9268", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10160", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From35", - "label":"From35", + "name":"From24", + "label":"From24", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3461,7 +3359,7 @@ "IconDisplay" ], "values":[ - "n_mot", + "r_inpTgt", "Tag" ], "tabs":[ @@ -3480,60 +3378,40 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8207", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8215", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"i_phaAB", - "label":"i_phaAB", + "name":"Data Type Conversion5", + "label":"Data Type Conversion5", "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":[ - "7", - "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":{ @@ -3542,65 +3420,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8205", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8214", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"b_hallB", - "label":"b_hallB", + "name":"Data Type Conversion4", + "label":"Data Type Conversion4", "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":[ - "5", - "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":{ @@ -3609,65 +3467,41 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8204", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9291", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"b_hallA ", - "label":"b_hallA ", + "name":"If2", + "label":"If2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "ZeroCross" ], "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", + "1", + "u1 ~= 0", "", - "on", - "off", "off", - "off" + "-1", + "on" ], "tabs":[ - "Main", - "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 4 ] }, "viewer":{ @@ -3676,16 +3510,47 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9279", + "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:9270", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3694,7 +3559,7 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "b_hallA", "local", "Tag" ], @@ -3714,11 +3579,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9262", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9240", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From45", - "label":"From45", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3726,7 +3591,7 @@ "IconDisplay" ], "values":[ - "r_devSignal2", + "z_posRaw", "Tag" ], "tabs":[ @@ -3745,11 +3610,44 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8203", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9271", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"r_inpTgt", - "label":"r_inpTgt", + "name":"Goto10", + "label":"Goto10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_devSignal1", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9301", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"DC_phaC", + "label":"DC_phaC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3765,11 +3663,17 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ "3", @@ -3784,10 +3688,17 @@ "-1", "auto", "off", - "", - "on", "off", + "[]", + "off", + "held", "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -3807,65 +3718,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8208", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8210", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"i_phaBC", - "label":"i_phaBC", + "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":[ - "8", - "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":{ @@ -3874,127 +3765,85 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F03_Control_Mode_Manager", - "label":"F03_Control_Mode_Manager", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10158", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", "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" + "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", - "" + "r_fieldWeak", + "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:9266", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10749", + "className":"Simulink.Saturate", "icon":"WebViewIcon3", - "name":"From33", - "label":"From33", + "name":"Saturation", + "label":"Saturation", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "UpperLimit", + "LowerLimit", + "LinearizeAsGain", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SampleTime", + "ZeroCross" ], "values":[ - "DC_phaC", - "Tag" + "1700", + "-1700", + "on", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Floor", + "-1", + "on" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 8 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -4002,46 +3851,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Saturate", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8212", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10155", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Data Type Conversion2", - "label":"Data Type Conversion2", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "[]", - "[]", - "int16", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" + "z_ctrlTypSel", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -4049,16 +3882,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8202", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9305", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"z_ctrlModReq", - "label":"z_ctrlModReq", + "name":"r_devSignal1", + "label":"r_devSignal1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -4074,14 +3907,20 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "2", + "7", "Port number", "[]", "[]", @@ -4093,10 +3932,17 @@ "-1", "auto", "off", - "", - "on", "off", + "0", + "off", + "reset", "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -4116,66 +3962,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8206", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9456", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"b_hallC", - "label":"b_hallC", + "name":"Goto12", + "label":"Goto12", "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" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "VqFinPrev", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -4183,27 +3995,257 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8201", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10154", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"b_motEna", - "label":"b_motEna", + "name":"CTRL_COMM2", + "label":"CTRL_COMM2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", + "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:10065", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion2", + "label":"Data Type Conversion2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "on", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8206", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_hallC", + "label":"b_hallC", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8209", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"i_DCLink", + "label":"i_DCLink", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "9", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8205", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_hallB", + "label":"b_hallB", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", "VarSizeSig", "SampleTime", "SignalType", @@ -4215,33 +4257,1569 @@ "OutputFunctionCall" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", + "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:8658", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F05_Field_Oriented_Control", + "label":"F05_Field_Oriented_Control", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8204", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_hallA ", + "label":"b_hallA ", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10139", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If3", + "label":"If3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 ~= 0", + "", + "off", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10156", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator1", + "label":"Relational Operator1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "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:8535", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F03_Control_Mode_Manager", + "label":"F03_Control_Mode_Manager", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8203", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgt", + "label":"r_inpTgt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8208", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"i_phaBC", + "label":"i_phaBC", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "8", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8202", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlModReq", + "label":"z_ctrlModReq", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:9299", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"DC_phaA", + "label":"DC_phaA", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:8207", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"i_phaAB", + "label":"i_phaAB", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "7", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "MinAlgLoopOccurrences", + "PropExecContextOutsideSubsystem", + "SystemSampleTime", + "RTWSystemCode", + "RTWFcnNameOpts", + "RTWFcnName", + "RTWFileNameOpts", + "RTWFileName", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "RTWMemSecFuncInitTerm", + "RTWMemSecFuncExecute", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "IsSubsystemVirtual", + "Variant", + "VariantControl", + "OverrideUsingVariant", + "GeneratePreprocessorConditionals", + "AllowZeroVariantControls", + "PropagateVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "TreatAsGroupedWhenPropagatingVariantConditions" + ], + "values":[ + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", + "off", + "off", + "off", + "-1", + "Auto", + "Auto", + "", + "Auto", + "", + "void_void", + "off", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "on", + "off", + "", + "", + "off", + "off", + "off", + "", + "", + "on" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9260", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From30", + "label":"From30", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_pos", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8201", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_motEna", + "label":"b_motEna", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:9272", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_devSignal2", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9281", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hallB", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10157", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"Logical Operator1", + "label":"Logical Operator1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "AND", + "3", + "rectangular", + "off", + "boolean", + "-1" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 5 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Logic", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10255", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"Logical Operator2", + "label":"Logical Operator2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "AND", + "2", + "rectangular", + "off", + "boolean", + "-1" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 5 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Logic", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9268#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8469#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:8215#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8214#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9290#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9251#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9260#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:5", + "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:9242#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", "off", - "", - "on", "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":{ @@ -4249,45 +5827,49 @@ }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8216", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion6", - "label":"Data Type Conversion6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9258#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "[]", - "[]", - "int16", + "", "off", - "Real World Value (RWV)", - "Floor", "off", - "-1" + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ "Parameter Attributes", - "-Other" + "Logging and Accessibility", + "Code Generation", + "Documentation" ], "tabs_idx":[ 0, + 3, + 5, 7 ] }, @@ -4296,173 +5878,253 @@ }, "obj_viewer":[ ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9389", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9291#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "r_inpTgtSca", - "local", - "Tag" + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9274", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9249#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "i_phaAB", - "local", - "Tag" + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9240", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9265#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "z_posRaw", - "Tag" + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":{ - "blocktype":"From", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9387", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From24", - "label":"From24", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9250#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "r_inpTgtSca", - "Tag" + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":{ - "blocktype":"From", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8211", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion10", - "label":"Data Type Conversion10", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9248#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "[]", - "[]", - "int16", + "", "off", - "Real World Value (RWV)", - "Floor", "off", - "-1" + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ "Parameter Attributes", - "-Other" + "Logging and Accessibility", + "Code Generation", + "Documentation" ], "tabs_idx":[ 0, + 3, + 5, 7 ] }, @@ -4471,44 +6133,62 @@ }, "obj_viewer":[ ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9248", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9240#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "z_ctrlModReq", - "Tag" + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":{ - "blocktype":"From", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9268#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8210#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4559,7 +6239,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8469#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9244#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4610,7 +6290,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8215#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9245#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4661,7 +6341,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8214#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9241#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4712,7 +6392,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9290#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9267#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4763,7 +6443,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8208#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9266#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4814,7 +6494,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9251#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4865,7 +6545,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9260#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8202#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4916,7 +6596,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9294#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4967,7 +6647,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:5", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:4", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5018,7 +6698,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9242#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658#out:4", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5069,7 +6749,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9297#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:6", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5120,7 +6800,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8211#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9259#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5171,7 +6851,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9258#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5222,7 +6902,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9291#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8217#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5273,7 +6953,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9249#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5324,7 +7004,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9257#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8205#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5375,7 +7055,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9265#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:8", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5426,7 +7106,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9250#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8469#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5477,7 +7157,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9248#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8201#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5528,7 +7208,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9240#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8206#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5579,7 +7259,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8210#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9253#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5630,7 +7310,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8218#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9264#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5681,7 +7361,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5732,7 +7412,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9244#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8535#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5783,7 +7463,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8207#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9252#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5834,7 +7514,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8216#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8204#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5885,7 +7565,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5936,7 +7616,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9245#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9298#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5987,7 +7667,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9241#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9261#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6038,7 +7718,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9267#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9418#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6089,7 +7769,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9266#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9436#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6140,7 +7820,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:7", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6191,7 +7871,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8202#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8209#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6242,7 +7922,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198#out:4", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6293,7 +7973,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:4", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9448#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6344,7 +8024,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658#out:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9263#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6395,7 +8075,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658#out:6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9262#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6446,7 +8126,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9720#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6497,7 +8177,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9259#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6548,7 +8228,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658#out:5", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6599,7 +8279,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8217#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9930#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6650,7 +8330,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198#out:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9931#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6701,7 +8381,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9295#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6752,7 +8432,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8205#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9935#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6803,7 +8483,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8212#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10025#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6854,7 +8534,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:8", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10026#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6905,7 +8585,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8469#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10027#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6956,7 +8636,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8213#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8535#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7007,7 +8687,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8201#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8203#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7058,7 +8738,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8206#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10065#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7109,7 +8789,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9253#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10155#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7160,7 +8840,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9264#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10154#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7211,7 +8891,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10064#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7262,7 +8942,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8535#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10157#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7313,7 +8993,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9252#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10164#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7364,7 +9044,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8204#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10164#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7415,7 +9095,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10164#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7466,7 +9146,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9298#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9297#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7517,7 +9197,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9261#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10191#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7568,7 +9248,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9385#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10255#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7619,7 +9299,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9387#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10258#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7670,7 +9350,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9388#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10257#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7721,7 +9401,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10356#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7772,7 +9452,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9392#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10355#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7823,7 +9503,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9418#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10066#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7874,7 +9554,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9436#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10159#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7925,7 +9605,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220#out:7", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10160#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7976,7 +9656,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8209#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10161#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8027,7 +9707,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658#out:4", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10139#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8078,7 +9758,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198#out:4", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10156#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8129,7 +9809,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9448#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10259#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8180,7 +9860,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8203#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10692#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8231,7 +9911,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9669#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8207#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8282,7 +9962,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9263#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10749#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8333,7 +10013,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9262#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10751#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8384,7 +10064,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9720#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8208#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 67e08c9..9f12b1d 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 d16ce9c..3d1548e 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.svg @@ -1,10 +1,10 @@ - + - + @@ -54,7 +54,7 @@ - + @@ -62,7 +62,7 @@ - + @@ -70,7 +70,7 @@ - + @@ -78,7 +78,7 @@ - + @@ -86,7 +86,7 @@ - + @@ -94,7 +94,7 @@ - + @@ -102,7 +102,7 @@ - + @@ -110,7 +110,7 @@ - + @@ -118,7 +118,7 @@ - + @@ -126,7 +126,7 @@ - + @@ -134,7 +134,7 @@ - + @@ -142,7 +142,7 @@ - + @@ -150,7 +150,7 @@ - + @@ -158,7 +158,7 @@ - + @@ -166,7 +166,7 @@ - + @@ -174,7 +174,7 @@ - + @@ -182,7 +182,7 @@ - + @@ -190,7 +190,7 @@ - + @@ -198,7 +198,7 @@ - + @@ -206,7 +206,7 @@ - + @@ -214,7 +214,7 @@ - + @@ -222,7 +222,7 @@ - + @@ -230,7 +230,7 @@ - + @@ -238,7 +238,7 @@ - + @@ -246,7 +246,7 @@ - + @@ -254,7 +254,7 @@ - + @@ -262,7 +262,7 @@ - + @@ -270,7 +270,7 @@ - + @@ -278,7 +278,7 @@ - + @@ -293,7 +293,7 @@ - + @@ -301,7 +301,7 @@ - + @@ -309,7 +309,7 @@ - + @@ -317,7 +317,7 @@ - + @@ -325,7 +325,7 @@ - + @@ -340,7 +340,7 @@ - + @@ -348,7 +348,7 @@ - + @@ -356,7 +356,7 @@ - + @@ -364,7 +364,7 @@ - + @@ -372,7 +372,7 @@ - + @@ -387,7 +387,7 @@ - + @@ -395,7 +395,7 @@ - + @@ -403,7 +403,7 @@ - + @@ -411,7 +411,7 @@ - + @@ -419,7 +419,7 @@ - + @@ -437,6 +437,65 @@ + + + + + + + + + + + + + Task1 + + + + + + + + : Diagnostics + Control_Manager + + + + + + + + Task2 + + + + + + + + : Field Weakening + Limitations + + + + + + + + Task3 + + + + + + + + : PI Controllers in FOC + + + + + + @@ -444,11 +503,11 @@ - - + + - + The rotor position is implemented based on the following table: @@ -459,42 +518,42 @@ - + - + - + - + 8 - + - + - - + + - + r_devSignal2 @@ -506,44 +565,44 @@ - - + + - + - + - - 7 + + 6 - + - - + + - - + + - - r_devSignal1 + + a_elecAngle @@ -554,44 +613,44 @@ - - + + - + - + - - 6 + + 5 - + - - + + - - + + - - a_elecAngle + + n_mot @@ -602,44 +661,107 @@ - - - + + + - - + + - - + + - - z_ctrlTypSel + + 4 - - + + + + + + + + + + + + + + + + + z_errCode + + + + + + + + + + + + + + + + + + + + + + + + + + b_fieldWeakEna + + + + + + + + + + + + + + + + + + + + + + b_fieldWeakEna - - + + - - + + - - uint8 + + boolean @@ -651,42 +773,42 @@ - + - + - + - + b_diagEna - + - + - - + + - + boolean @@ -698,76 +820,190 @@ - - - - - - + + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + task1 - - + + - - + + task2 - - + + - - + + task3 - + + + + + + + + + + - + + + + + + + + + + + + + + + + + Task_Scheduler + - - - + + + + + + + + + + + + + + + + + boolean - - + + + + + + + + - - + + - - sfix16_En4 + + boolean + + + + + + + + + + + + + + + + + + + + + boolean @@ -778,45 +1014,51 @@ - - + + + + + + + + - + - + - + - + - + - + - + - + - + @@ -831,22 +1073,22 @@ - + - + - - + + - + sfix16_En4 @@ -858,51 +1100,153 @@ - - - - - - + + + - - + + - - u1 + + MODEL INFO - + + + + + + Version: 1.1249 + + + + + + + + Author: Emanuel Feru + + + + + + + + Last modified by: eferu + + + + + + + + Last update: 12-dec-2019 20:22:14 + + + + + + + + Copyright © 2019-2020 Emanuel FERU + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + - + if(u1 ~= 0) - + - + - - + + - + action @@ -914,44 +1258,52 @@ - - - + + + - - + + - - + + - - 4 + + u1 + + + + + + + + if(u1 == CTRL_FOC) - - + + - - - + + + - - + + - - z_errCode + + action @@ -962,28 +1314,28 @@ - - + + - + - + - - [b_hallC] + + [z_dir] - + @@ -995,28 +1347,28 @@ - - + + - + - + - - [b_motEna] + + [z_ctrlTypSel] - + @@ -1028,28 +1380,28 @@ - - + + - + - + - - [DC_phaA] + + [b_motEna] - + @@ -1061,44 +1413,62 @@ - - - + + + - - + + - - + + - - 5 + + [DC_phaC] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - n_mot + + [z_pos] + + + + + + + @@ -1109,28 +1479,28 @@ - - + + - + - + - - [z_pos] + + [task3] - + @@ -1142,29 +1512,44 @@ - - - + + + - - + + - - + + - - [r_devSignal2] + + 2 - - + + + + + + + + + + + + + + + + + DC_phaB @@ -1175,28 +1560,28 @@ - - + + - + - + - - [n_motAbs] + + [task1] - + @@ -1208,28 +1593,28 @@ - - + + - + - + - - [i_phaBC] + + [task2] - + @@ -1241,28 +1626,28 @@ - - + + - + - + - - [a_elecAngle] + + [z_ctrlModReq] - + @@ -1274,28 +1659,28 @@ - - + + - + - + - - [VqFinPrev] + + [a_elecAngle] - + @@ -1307,28 +1692,28 @@ - - + + - + - + - - [r_devSignal1] + + [i_phaAB] - + @@ -1340,28 +1725,28 @@ - - + + - + - + - - [b_hallA] + + [n_motAbs] - + @@ -1373,28 +1758,28 @@ - - + + - + - + - - [r_inpTgt] + + [b_motStdStill] - + @@ -1406,43 +1791,43 @@ - - + + - + - + - - [z_ctrlModReq] + + [z_ctrlTypSel] - + - + - - + + - + uint8 @@ -1455,42 +1840,42 @@ - + - + - + - + [b_hallA] - + - + - - + + - + uint8 @@ -1502,98 +1887,44 @@ - - - + + + + + + - - - - - - MODEL INFO - - - - - - - - Version: 1.1199 - - - - - - - - Author: Emanuel Feru - - - - - - - - Last modified by: eferu - - - - - - - - Last update: 03-nov-2019 12:27:59 - - - - + + - - Copyright © 2019 Emanuel FERU + + [z_ctrlTypSel] - - + + - + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - + + uint8 @@ -1605,42 +1936,42 @@ - + - + - + - + [z_ctrlTypSel] - + - + - - + + - + uint8 @@ -1652,44 +1983,44 @@ - - + + - + - + - - [z_ctrlTypSel] + + [r_devSignal2] - + - - + + - - + + - - uint8 + + sfix16_En4 @@ -1700,44 +2031,77 @@ - - + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + - + - + - - [n_mot] + + [b_motStdStill] - + - - + + - - + + - - sfix16_En4 + + boolean @@ -1748,43 +2112,43 @@ - - + + - + - + - - [r_devSignal1] + + [n_motAbs] - + - + - - + + - + sfix16_En4 @@ -1796,44 +2160,44 @@ - - + + - + - + - - [a_elecAngle] + + [task2] - + - - + + - - + + - - ufix16_En6 + + boolean @@ -1844,44 +2208,44 @@ - - + + - + - + - - [DC_phaB] + + [n_mot] - + - - + + - - + + - - int16 + + sfix16_En4 @@ -1892,44 +2256,29 @@ - - - + + + - - + + - - + + - - [DC_phaA] + + [b_hallC] - - - - - - - - - - - - - - - - - int16 + + @@ -1940,44 +2289,44 @@ - - + + - + - + - - [b_hallC] + + [a_elecAngle] - + - - + + - - + + - - uint8 + + sfix16_En6 @@ -1988,28 +2337,28 @@ - - + + - + - + - - [b_hallB] + + [z_errCode] - + @@ -2021,44 +2370,44 @@ - - + + - + - + - - [z_errCode] + + [DC_phaB] - + - + - - + + - - uint8 + + int16 @@ -2069,44 +2418,44 @@ - - + + - + - + - - [b_hallB] + + [DC_phaA] - + - + - - + + - - uint8 + + int16 @@ -2117,76 +2466,77 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + [b_hallC] - - - - - - - - - - + + - - + + - - + + - - sfix16_En4 + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [DC_phaA] + + + + + + + @@ -2197,43 +2547,43 @@ - - + + - + - + - - [z_ctrlTypSel] + + [z_errCode] - + - + - - + + - + uint8 @@ -2245,29 +2595,44 @@ - - - + + + - - + + - - + + - - [z_posRaw] + + [task1] - - + + + + + + + + + + + + + + + + + boolean @@ -2278,44 +2643,44 @@ - - + + - + - + - - [a_elecAngle] + + [VqFinPrev] - + - - + + - - + + - - ufix16_En6 + + sfix16_En4 @@ -2326,44 +2691,44 @@ - - + + - + - + - - [r_inpTgtSca] + + [a_elecAngle] - + - + - - + + - - sfix16_En4 + + sfix16_En6 @@ -2374,43 +2739,43 @@ - - + + - + - + - - [n_motAbs] + + [r_inpTgt] - + - + - - + + - + sfix16_En4 @@ -2422,29 +2787,44 @@ - - - + + + - - + + - - + + - - [b_motStdStill] + + [z_dir] - - + + + + + + + + + + + + + + + + + int8 @@ -2455,44 +2835,44 @@ - - + + - + - + - - [i_phaBC] + + [z_ctrlModReq] - + - - + + - - + + - - sfix16_En4 + + uint8 @@ -2503,43 +2883,92 @@ - - - + + + - - + + + + + + + + + [n_mot] + - - - + + + + + + + + + + - - + + - - Implemented_control_methods + + sfix16_En4 + + + + + + + + + + + + + + - - + + + + + + + [task3] - - + + + + + + + + + + + + + + + + + boolean @@ -2550,43 +2979,43 @@ - - + + - + - + - - [i_phaAB] + + [r_fieldWeak] - + - + - - + + - + sfix16_En4 @@ -2598,44 +3027,44 @@ - - + + - + - + - - [b_motEna] + + [r_fieldWeak] - + - - + + - - + + - - boolean + + sfix16_En4 @@ -2646,44 +3075,44 @@ - - - + + + - - + + - - + + - - 1 + + [i_phaAB] - - + + - - - + + + - - + + - - DC_phaA + + sfix16_En4 @@ -2694,115 +3123,315 @@ - - - + + + - - - - - - - - + + - - + + - - b_enaFOC + + [r_devSignal1] - - - - - - - z_pos + + + + + + - - - - - - - z_ctrlTypSel + + + + + + - - + + - - r_phaA + + sfix16_En4 + + + + + + + + + + + + + + + + + + - - + + - - r_phaB + + [task2] + + + + + + + + + + + + + + - - + + - - r_phaC + + boolean + + + + + + + + + + + + + + + + + + - - + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_enaAdvCtrl + + + + + + + + z_ctrlTypSel + + + + - + + z_pos + + + + + + + + V_phaABC_FOC + + + + + + + Vq - - + + - + r_inpTgtSca - - + + + + + + a_elecAngle + + + + - + + z_dir + + + + + + + + r_fieldWeak + + + + + + + DC_phaA - - + + - + DC_phaB - - + + - + DC_phaC - - + + - + VqFinPrev @@ -2810,75 +3439,75 @@ - + - - + + - + - + - - + + - - F05_Control_Type_Management + + F06_Control_Type_Management - + - - + + - - + + - - int16 + + sfix16_En4 - + - + - - + + - + int16 @@ -2886,20 +3515,20 @@ - + - + - - + + - + int16 @@ -2907,20 +3536,20 @@ - + - + - - + + - + int16 @@ -2932,58 +3561,50 @@ - + - + - - + + - - + + - - - - - - u1 - - - - + + - - if(u1 == CTRL_FOC) + + [b_hallB] - - + + - - + + - - + + - - action + + uint8 @@ -2994,45 +3615,44 @@ - - - + + + + + + - - - - - - - - - + - - + + - - + + [z_ctrlTypSel] - - - + + + - - - - - - - + + + + + + + + + + + uint8 @@ -3043,28 +3663,28 @@ - - + + - + - + - - [z_ctrlModReq] + + [i_phaBC] - + @@ -3076,329 +3696,184 @@ - - - + + + - - - - - - - - + + - - - - - - b_enaFOC - - - - - - - - z_ctrlMod - - - - - - - - b_motEna - - - - - - - - r_inpTgtSca - - - - - - - - n_mot - - - - - - - - n_motAbs - - - - - - - - a_elecAngle - - - - - - - - i_phaAB - - - - - - - - i_phaBC - - - - - - - - r_phaA - - - - - - - - r_phaB - - - - - - - - r_phaC - - - - - - - - Vq - - - - - - - - r_devSignal1 - - - - - - - - r_devSignal2 - - - - + + - - if { } + + [DC_phaC] - - - - - - - - + + - - - - - - - - - + + + - - + + - - F04_Field_Oriented_Control + + int16 - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + z_ctrlTypSel - - - - - - - - + + + - - + + r_inpTgt - - + + - - int16 + + n_motAbs - - - - - - - - + + + - - + + r_fieldWeak - - + + - - int16 + + if { } - + - + - - - - - - - - - - sfix16_En4 + + - + - + - - + + - - + + - - int16 + + F04_Field_Weakening - + - - + + - - + + - - sfix16_En4 + + action - + - - + + - - + + - - action + + sfix16_En4 @@ -3409,50 +3884,50 @@ - + - + - + - + - + - - [z_pos] + + [a_elecAngle] - + - - + + - - + + - - int8 + + sfix16_En6 @@ -3463,44 +3938,44 @@ - - + + - + - + - - [VqFinPrev] + + [task1] - + - - + + - - + + - - int16 + + boolean @@ -3512,27 +3987,27 @@ - + - + - + - + [n_mot] - + @@ -3544,67 +4019,115 @@ - - - - + + + + + + + + + + + + + + + + [i_phaBC] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + - + - + - + - + z_posRaw - + - + b_motStdStill - + - + VqFinPrev - + - + z_errCode - + - + b_errFlag - + - + if { } @@ -3612,12 +4135,12 @@ - + - + @@ -3625,20 +4148,20 @@ - + - + - - + + - + F02_Diagnostics @@ -3646,20 +4169,20 @@ - + - + - - + + - + action @@ -3667,42 +4190,42 @@ - + - - + + - - + + - - uint8 + + boolean - + - - + + - - + + - - boolean + + uint8 @@ -3713,50 +4236,50 @@ - + - + - - + + - - + + - - + + - - [b_motStdStill] + + z_ctrlTypSel - - + + - - + + - - + + - - boolean + + uint8 @@ -3768,27 +4291,27 @@ - + - + - + - + [DC_phaB] - + @@ -3800,44 +4323,44 @@ - - + + - + - + - - [b_motEna] + + [n_motAbs] - + - - + + - - + + - - boolean + + sfix16_En4 @@ -3848,317 +4371,310 @@ - - - + + + - - + + + + + + + + - - + + - - 2 + + b_hallA - - - - - - + + + + + + + b_hallB - - - - - - + + + + + + + b_hallC - - + + - - DC_phaB + + z_posRaw - - - - - - - - - - - - - - - - - - - - + + - - + + z_pos - - + + - - + + z_dir + + + + + + + + n_mot + + + + + + + + n_motAbs + + + + + + + + a_elecAngle + + + + + + + + b_motStdStill + + + + + + + + b_enaAdvCtrl - - - - - + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + F01_Estimations - + + + + + + + - - + + - - int16 + + uint8 - - - - - - - - - - - - - - - + - - + + + + + + + + + + + - - [z_errCode] + + int8 - - - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - + + - - [b_motStdStill] - - - - - - - + + sfix16_En6 - - + + + + + + + + - - + + - - boolean + + sfix16_En4 - - - - - - - - - - - - - - - + - - - + + + + - - + + - - + + - - - - - - - - - - - - - - - - - + + boolean - - + + + + + + + + - - + + - - int16 + + sfix16_En4 - - - - - - - - - - - - - - - + - - - + + + + - - + + - - + + - - - - - - - - - - - - - - - - - + + int8 - - + + + + + + + + - - + + - - int16 + + boolean @@ -4170,28 +4686,34 @@ - + + + + + + + - + - + - + - + - + @@ -4206,22 +4728,22 @@ - + - + - - + + - + int16 @@ -4233,28 +4755,28 @@ - - + + - + - + - - [DC_phaC] + + [z_posRaw] - + @@ -4266,44 +4788,44 @@ - - - + + + - - + + - - + + - - 3 + + [r_inpTgt] - - + + - - - + + + - - + + - - DC_phaC + + sfix16_En4 @@ -4314,29 +4836,29 @@ - - + + - + - + - + - + - + @@ -4351,22 +4873,22 @@ - + - + - - + + - + int16 @@ -4378,58 +4900,59 @@ - - - + + + - - + + - + - - + + - - 9 + + + + + + + + + + - - - - + - - - - - - - - - - - i_DCLink + + + + + + + - + - - + + - + int16 @@ -4441,60 +4964,52 @@ - - - + + + - - + + - + - - + + - - + + u1 - - + + - - + + if(u1 ~= 0) - - - - - - - - - - + + - - + + - - + + - - int16 + + action @@ -4505,270 +5020,1027 @@ - - - + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hallA] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_posRaw] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_devSignal1] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + DC_phaC + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + r_devSignal1 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + CTRL_COM + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + b_hallC + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 9 + + + + + + + + + + + + + + + + + + + + + + i_DCLink + + + + + + + + + + + + + + + int16 + + - - - - - - - - + + + + + + + + + + + + + - - + + - - z_ctrlTypSel + + 5 - - - - - - - z_ctrlModReq + + + + + + + + + + + + + - - + + - - r_inpTgt + + b_hallB + + + + + + + - - + + - - b_hallA + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - b_hallB + + b_enaAdvCtrl - - + + - - b_hallC + + z_ctrlMod - - + + - - r_inpTgtSca + + r_inpTgtSca - - + + - - z_posRaw + + task2 - - + + - - z_pos + + task3 - - + + - - n_mot + + b_motEna - - + + - - n_motAbs + + n_mot - - + + - - a_elecAngle + + n_motAbs - - + + - - b_motStdStill + + r_fieldWeak - - + + - - b_enaFOC + + a_elecAngle - - - - - - - - + + + - - + + i_phaAB - - - - - - - - + + + - - + + i_phaBC - - + + - - F01_Estimations + + V_phaABC_FOC - - - - - - - - + + + - - + + Vq - - + + - - boolean + + r_devSignal1 - - - - - - - - + + + - - + + r_devSignal2 - - + + - - boolean + + if { } - + - + - - - - - - - - - - sfix16_En4 + + - + - + - - + + - - + + - - uint8 + + F05_Field_Oriented_Control - + - + - - + + - + sfix16_En4 @@ -4776,164 +6048,83 @@ - + - - + + - - + + - - int8 + + sfix16_En4 - + - - + + - - + + - - ufix16_En6 + + action - + - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - + + + + - - + + - - [n_mot] - - - - - - - + + sfix16_En4 - + + + + + + + - - + + - + sfix16_En4 @@ -4945,59 +6136,65 @@ - - + + + + + + + + - + - + - - 7 + + 4 - + - - + + - - + + - - i_phaAB + + b_hallA - + - - + + - - int16 + + uint8 @@ -5008,59 +6205,52 @@ - - - + + + - - + + - - + + - - 5 + + u1 - - - - - - + + + + + + + if(u1 ~= 0) - - - - - - - - - - - b_hallB + + + - - + + - - + + - - uint8 + + action @@ -5071,59 +6261,60 @@ - - - + + + - - + + - + - - + + - - 4 + + + + + + + + + + - - - - + - - - - - - - - - - - b_hallA + + + + + + + - - + + - - + + - - uint8 + + boolean @@ -5134,77 +6325,197 @@ - - - + + + - - + + + + + + + + - - + + - - [z_ctrlTypSel] + + b_errFlag + + + + + + + + b_motStdStill + + + + + + + + b_motEna + + + + + + + + z_ctrlTypSel + + + + + + + + z_ctrlModReq + + + + + + + + r_inpTgt + + + + + + + + VqFinPrev + + + + + + + + z_ctrlMod + + + + + + + + r_inpTgtSca + + + + + + + + if { } - - + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + + + + + + F03_Control_Mode_Manager + + - + - - + + + + + + + + + + + - - [r_devSignal2] + + sfix16_En4 - - - + + + + + + + + + + + + + + + + + action - - + + + + + + + + - - + + - - sfix16_En4 + + uint8 @@ -5216,6 +6527,12 @@ + + + + + + @@ -5225,11 +6542,11 @@ - + - + 3 @@ -5247,11 +6564,11 @@ - - + + - + r_inpTgt @@ -5262,11 +6579,11 @@ - - + + - + int16 @@ -5288,11 +6605,11 @@ - + - + 8 @@ -5310,11 +6627,11 @@ - - + + - + i_phaBC @@ -5325,11 +6642,11 @@ - - + + - + int16 @@ -5341,114 +6658,58 @@ - - - + + + - - - - - - - - + + - - - - - - b_errFlag - - - - - - - - b_motStdStill - - - - - - - - b_motEna - - - - - - - - z_ctrlModReq - - - - + + - - z_ctrlMod + + 2 - - - - - - - - + + - - - - - - - - + + - - + + - - F03_Control_Mode_Manager + + z_ctrlModReq - - - - - - - + - - + + - + uint8 @@ -5460,50 +6721,44 @@ - - - - - - - - - + + + - - + + - - + + - - [DC_phaC] + + 1 - - + + - - - + + + - - + + - - int16 + + DC_phaA @@ -5514,60 +6769,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + [b_motStdStill] - - - - - - - - - - + + - - + + - - + + - - int16 + + boolean @@ -5578,59 +6817,59 @@ - - + + - + - + - - 2 + + 7 - + - - + + - - + + - - z_ctrlModReq + + i_phaAB - + - - + + - - uint8 + + int16 @@ -5641,59 +6880,43 @@ - - - + + + - - + + - - - - - - - 6 - - - - - - - - - - + + - - + + - - b_hallC + + Implemented_control_methods - - - + + + - - - - - - - uint8 + + + + + + @@ -5704,59 +6927,44 @@ - - - + + + - - + + - - + + - - 1 + + [z_pos] - - - - - - - - - - - - - - - - - b_motEna + + - - + + - - + + - - boolean + + int8 @@ -5767,60 +6975,59 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 1 - - - - - + + + + - - - + + + + + + + + + + + b_motEna - - + + - - + + - - int16 + + boolean @@ -5831,28 +7038,28 @@ - - + + - + - + - - [r_inpTgtSca] + + [r_devSignal2] - + @@ -5864,28 +7071,28 @@ - - + + - + - + - - [i_phaAB] + + [b_hallB] - + @@ -5897,93 +7104,61 @@ - - - + + + - - + + - + - - + + - - [z_posRaw] - - - - - - - - - - - - - - + + - - + + - - uint8 + + - - - - - - - - - - - - + + - + + + + - - + + - - [r_inpTgtSca] + + boolean - - + + - - - - - - - - - - - sfix16_En4 - + @@ -5993,30 +7168,30 @@ - - - + + + - - + + - - + + - - + + - + - - + + @@ -6025,28 +7200,28 @@ - + + + + - - - - + - - + + - - + + - - int16 + + boolean @@ -6055,1146 +7230,1342 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + - - - - - - - - - [z_ctrlModReq] - - + + - - - - - + + + + + + + + + - - - - - - - - - - - - uint8 - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - - - + + + + + + - + - + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + - + - + + + + + + + + - + - - - - + - + - + - + + + + + + + + + + + + + + + + + + - + - + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -7203,5 +8574,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 8487909..71ba30c 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 ed52b6c..d81e028 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":[ - "4", + "1", "Port number", "[]", "[]", @@ -94,7 +94,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "2", "Port number", "[]", "[]", @@ -161,7 +161,7 @@ "OutputFunctionCall" ], "values":[ - "6", + "3", "Port number", "[]", "[]", @@ -284,8 +284,8 @@ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8225", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F01_02_Edge_Detector", - "label":"F01_02_Edge_Detector", + "name":"F01_01_Edge_Detector", + "label":"F01_01_Edge_Detector", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -664,8 +664,8 @@ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8247", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F01_04_Direction_Detection", - "label":"F01_04_Direction_Detection", + "name":"F01_03_Direction_Detection", + "label":"F01_03_Direction_Detection", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -924,8 +924,8 @@ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F01_05_Speed_Estimation", - "label":"F01_05_Speed_Estimation", + "name":"F01_04_Speed_Estimation", + "label":"F01_04_Speed_Estimation", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1021,8 +1021,8 @@ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8235", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F01_03_Position_Calculation", - "label":"F01_03_Position_Calculation", + "name":"F01_02_Position_Calculation", + "label":"F01_02_Position_Calculation", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1243,7 +1243,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -1432,11 +1432,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8466", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8468", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"n_motAbs", - "label":"n_motAbs", + "name":"b_enaAdvCtrl", + "label":"b_enaAdvCtrl", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1465,7 +1465,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "5", + "8", "Port number", "[]", "[]", @@ -1478,9 +1478,9 @@ "auto", "off", "off", - "0", + "[]", "off", - "reset", + "held", "off", "0", "", @@ -1512,11 +1512,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8463", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9933", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"z_posRaw", - "label":"z_posRaw", + "name":"z_dir", + "label":"z_dir", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1545,7 +1545,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -1592,11 +1592,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9383", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9433", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", + "name":"b_motStdStill", + "label":"b_motStdStill", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1625,7 +1625,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1", + "7", "Port number", "[]", "[]", @@ -1672,54 +1672,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8462", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "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:8468", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8463", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"b_enaFOC", - "label":"b_enaFOC", + "name":"z_posRaw", + "label":"z_posRaw", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1748,7 +1705,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "8", + "1", "Port number", "[]", "[]", @@ -1761,9 +1718,9 @@ "auto", "off", "off", - "[]", + "0", "off", - "held", + "reset", "off", "0", "", @@ -1861,11 +1818,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8457", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9432", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Goto17", + "label":"Goto17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1874,7 +1831,7 @@ "IconDisplay" ], "values":[ - "z_counter", + "b_motStdStill", "local", "Tag" ], @@ -1894,11 +1851,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9377", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8449", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"Goto10", + "label":"Goto10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1907,7 +1864,7 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "a_elecAngle", "local", "Tag" ], @@ -1927,11 +1884,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9379", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8461", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", + "name":"Goto9", + "label":"Goto9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -1940,7 +1897,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModReq", + "z_dirPrev", "local", "Tag" ], @@ -1960,21 +1917,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8451", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9431", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", + "name":"From25", + "label":"From25", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_motAbs", - "local", + "b_motStdStill", "Tag" ], "tabs":[ @@ -1988,96 +1943,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9433", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"b_motStdStill", - "label":"b_motStdStill", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "7", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9431", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8437", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From25", - "label":"From25", + "name":"From23", + "label":"From23", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2085,7 +1960,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "b_enaAdvCtrl", "Tag" ], "tabs":[ @@ -2104,11 +1979,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8436", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8435", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", + "name":"From21", + "label":"From21", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2116,7 +1991,7 @@ "IconDisplay" ], "values":[ - "z_counterRaw", + "z_counter", "Tag" ], "tabs":[ @@ -2135,11 +2010,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8434", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8432", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", + "name":"From18", + "label":"From18", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2147,7 +2022,7 @@ "IconDisplay" ], "values":[ - "z_dir", + "b_enaAdvCtrl", "Tag" ], "tabs":[ @@ -2166,21 +2041,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9432", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8430", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", + "name":"From15", + "label":"From15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "b_motStdStill", - "local", + "z_dirPrev", "Tag" ], "tabs":[ @@ -2194,16 +2067,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8446", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8427", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"From12", + "label":"From12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2211,7 +2084,7 @@ "IconDisplay" ], "values":[ - "z_posRaw", + "a_elecAngle", "Tag" ], "tabs":[ @@ -2230,11 +2103,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9381", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8434", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", + "name":"From20", + "label":"From20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2242,7 +2115,7 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "z_dir", "Tag" ], "tabs":[ @@ -2261,11 +2134,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9380", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8436", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", + "name":"From22", + "label":"From22", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2273,7 +2146,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModReq", + "z_counterRaw", "Tag" ], "tabs":[ @@ -2292,137 +2165,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8427", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "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:8432", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "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: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:8437", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "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: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_05_Electrical_Angle_Estimation", + "label":"F01_05_Electrical_Angle_Estimation", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2515,11 +2262,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9374", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8431", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"From17", + "label":"From17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2527,7 +2274,7 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "z_pos", "Tag" ], "tabs":[ @@ -2546,21 +2293,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8455", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8429", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From14", + "label":"From14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_ctrlTypSel", - "local", + "n_motAbs", "Tag" ], "tabs":[ @@ -2574,16 +2319,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8431", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8446", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From17", - "label":"From17", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2591,7 +2336,7 @@ "IconDisplay" ], "values":[ - "z_pos", + "z_posRaw", "Tag" ], "tabs":[ @@ -2610,19 +2355,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8435", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8451", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", + "name":"Goto12", + "label":"Goto12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_counter", + "n_motAbs", + "local", "Tag" ], "tabs":[ @@ -2636,30 +2383,79 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8424", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8466", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"n_motAbs", + "label":"n_motAbs", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "z_ctrlTypSel", - "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" @@ -2667,847 +2463,107 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9333", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F01_01_Input_Scaling", - "label":"F01_01_Input_Scaling", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-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:8430", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dirPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9378", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_ctrlModReq", - "label":"z_ctrlModReq", - "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":[ - "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:8449", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8457", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9375", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_inpTgt", - "label":"r_inpTgt", - "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":[ - "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:8224", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_ctrlTypSel", - "label":"z_ctrlTypSel", - "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":[ - "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:8450", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_enaFOC", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "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:9384", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "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:8429", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "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:8462#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "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:8440#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "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:8439#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "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:8442#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "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:8225#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" + "z_counter", + "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:8247#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8450", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto11", + "label":"Goto11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" + "b_enaAdvCtrl", + "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:8443#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8462", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If2", + "label":"If2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" ], "values":[ + "1", + "u1 ~= 0", "", "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" + "-1", + "on" ], "tabs":[ "Parameter Attributes", - "Logging and Accessibility", - "Code Generation", - "Documentation" + "-Other" ], "tabs_idx":[ 0, - 3, - 5, - 7 + 4 ] }, "viewer":{ @@ -3515,62 +2571,44 @@ }, "obj_viewer":[ ], - "finder":[ - ] + "finder":{ + "blocktype":"If", + "masktype":"" + } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8444#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9932", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From26", + "label":"From26", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "GotoTag", + "IconDisplay" ], "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" + "z_dir", + "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:8221#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8462#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3621,7 +2659,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8222#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8440#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3672,7 +2710,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8223#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8439#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3723,7 +2761,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8441#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8442#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3774,7 +2812,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8438#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8225#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3825,7 +2863,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8433#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8247#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3876,7 +2914,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8235#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8443#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3927,7 +2965,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8425#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8444#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3978,7 +3016,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8221#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4029,7 +3067,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8445#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8222#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4080,7 +3118,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8426#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8223#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4131,7 +3169,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8428#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8441#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4182,7 +3220,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263#out:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8438#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4233,7 +3271,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263#out:4", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8433#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4284,7 +3322,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8247#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8235#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4335,7 +3373,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8430#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8425#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4386,7 +3424,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8431#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4437,7 +3475,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8434#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8445#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4488,7 +3526,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8435#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8426#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4539,7 +3577,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8436#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8428#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4590,7 +3628,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8437#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4641,7 +3679,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263#out:6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263#out:4", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4692,7 +3730,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8424#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8247#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4743,7 +3781,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8432#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8430#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4794,7 +3832,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8427#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8431#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4845,7 +3883,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8384#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8434#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4896,7 +3934,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8435#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4947,7 +3985,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8429#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8436#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -4998,7 +4036,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8224#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8437#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5049,7 +4087,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8235#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263#out:6", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5100,7 +4138,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8446#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8432#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5151,7 +4189,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9374#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8427#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5202,7 +4240,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9375#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8384#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5253,7 +4291,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9378#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5304,7 +4342,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9380#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8429#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5355,7 +4393,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9381#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8235#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5406,7 +4444,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9382#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8446#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5457,7 +4495,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9333#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9431#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5508,7 +4546,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9431#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263#out:5", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5559,7 +4597,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263#out:5", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9932#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_8220_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.png index 2996dff..0813437 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 9108123..9dd86ac 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 @@ - - 4 + + 1 - + - + - + - + b_hallA - + - + - + uint8 @@ -77,10 +77,10 @@ - + - + @@ -90,44 +90,44 @@ - - 5 + + 2 - + - + - + - + b_hallB - + - + - + uint8 @@ -140,10 +140,10 @@ - + - + @@ -153,44 +153,44 @@ - - 6 + + 3 - + - + - + - + b_hallC - + - + - + uint8 @@ -203,10 +203,10 @@ - + - + @@ -216,29 +216,29 @@ - + 4 - + - + - + - + n_mot @@ -252,7 +252,7 @@ - + @@ -325,11 +325,11 @@ - + - F01_02_Edge_Detector + F01_01_Edge_Detector @@ -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 @@ - + @@ -771,7 +771,7 @@ - + @@ -844,11 +844,11 @@ - + - F01_04_Direction_Detection + F01_03_Direction_Detection @@ -860,16 +860,16 @@ - - + + - + - - int8 + + action @@ -881,16 +881,16 @@ - - + + - + - - action + + int8 @@ -902,15 +902,15 @@ - + - + - + int8 @@ -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] - + @@ -1110,7 +1110,7 @@ - + @@ -1125,83 +1125,75 @@ - - - - - z_ctrlTypSel - - - - + - + b_edge - - + + - + z_dir - - + + - + z_dirPrev - + - + n_mot - + - + n_motAbs - + - + z_counter - + - + z_counterRaw - + - + b_motStdStill - + - - b_enaFOC + + b_enaAdvCtrl @@ -1230,12 +1222,12 @@ - - + + - - F01_05_Speed_Estimation + + F01_04_Speed_Estimation @@ -1247,15 +1239,15 @@ - + - - + + - + sfix16_En4 @@ -1268,16 +1260,16 @@ - - + + - - + + - - sfix16_En4 + + boolean @@ -1289,16 +1281,16 @@ - - + + - - + + - - int16 + + sfix16_En4 @@ -1310,16 +1302,16 @@ - - + + - - + + - - boolean + + int16 @@ -1335,11 +1327,11 @@ - - + + - + int16 @@ -1352,15 +1344,15 @@ - + - - + + - + boolean @@ -1380,7 +1372,7 @@ - + @@ -1394,43 +1386,43 @@ - + - + b_hallA - + - + b_hallB - + - + b_hallC - + - + z_posRaw - + - + z_pos @@ -1460,12 +1452,12 @@ - - + + - - F01_03_Position_Calculation + + F01_02_Position_Calculation @@ -1481,11 +1473,11 @@ - - + + - + int8 @@ -1502,11 +1494,11 @@ - - + + - + uint8 @@ -1525,42 +1517,42 @@ - + - + - + - + [b_edge] - + - + - - + + - + boolean @@ -1582,11 +1574,11 @@ - + - + [n_mot] @@ -1606,42 +1598,42 @@ - + - + - + - + [n_mot] - + - + - - + + - + sfix16_En4 @@ -1654,42 +1646,42 @@ - + - + - + - - 3 + + 2 - + - + - - + + - + z_pos @@ -1702,42 +1694,42 @@ - + - + - + - + [z_pos] - + - + - - + + - + int8 @@ -1750,42 +1742,42 @@ - + - + - + - + [z_dir] - + - + - - + + - + int8 @@ -1798,42 +1790,42 @@ - + - + - + - + 6 - + - + - - + + - + a_elecAngle @@ -1845,44 +1837,44 @@ - - + + - + - + - - 5 + + 8 - + - - + + - - + + - - n_motAbs + + b_enaAdvCtrl @@ -1893,44 +1885,44 @@ - - + + - + - + - - 2 + + 3 - + - - + + - - + + - - z_posRaw + + z_dir @@ -1941,100 +1933,44 @@ - - + + - + - + - - 1 + + 7 - + - - - - - - - - - - r_inpTgtSca - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - + + - - + + - - action + + b_motStdStill @@ -2045,44 +1981,44 @@ - - + + - + - + - - 8 + + 1 - + - - + + - - + + - - b_enaFOC + + z_posRaw @@ -2103,11 +2039,11 @@ - + - + [z_posRaw] @@ -2136,11 +2072,11 @@ - + - + [z_counterRaw] @@ -2159,28 +2095,28 @@ - - + + - + - + - - [z_counter] + + [b_motStdStill] - + @@ -2192,28 +2128,28 @@ - - + + - + - + - - [r_inpTgt] + + [a_elecAngle] - + @@ -2225,28 +2161,28 @@ - - + + - + - + - - [z_ctrlModReq] + + [z_dirPrev] - + @@ -2258,29 +2194,44 @@ - - - + + + - - + + - - + + - - [n_motAbs] + + [b_motStdStill] - - + + + + + + + + + + + + + + + + + boolean @@ -2291,91 +2242,43 @@ - - - + + + - - + + - - + + - - 7 + + [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - b_motStdStill - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - + + - + - - + + - + boolean @@ -2387,43 +2290,43 @@ - - + + - + - + - - [z_counterRaw] + + [z_counter] - + - + - - + + - + int16 @@ -2435,173 +2338,44 @@ - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_posRaw] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - + + - + - + - - [r_inpTgt] + + [b_enaAdvCtrl] - + - - + + - - + + - - sfix16_En4 + + boolean @@ -2612,44 +2386,44 @@ - - + + - + - + - - [z_ctrlModReq] + + [z_dirPrev] - + - - + + - - + + - - uint8 + + int8 @@ -2661,43 +2435,43 @@ - + - + - + - + [a_elecAngle] - + - - + + - - + + - - ufix16_En6 + + sfix16_En6 @@ -2708,77 +2482,44 @@ - - + + - + - + - - [b_enaFOC] + + [z_dir] - + - - - - - - - - - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - [z_dirPrev] - - - - - - - + + int8 @@ -2789,44 +2530,44 @@ - - + + - + - + - - [b_enaFOC] + + [z_counterRaw] - + - - + + - - + + - - boolean + + int16 @@ -2839,7 +2580,7 @@ - + @@ -2853,51 +2594,51 @@ - + - + z_pos - + - + z_dir - + - + z_counter - + - + z_counterRaw - + - - b_enaFOC + + b_enaAdvCtrl - + - + a_elecAngle @@ -2927,12 +2668,12 @@ - - + + - - F01_06_Electrical_Angle_Estimation + + F01_05_Electrical_Angle_Estimation @@ -2945,15 +2686,15 @@ - + - - + + - - ufix16_En6 + + sfix16_En6 @@ -2964,94 +2705,13 @@ - + - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - @@ -3061,11 +2721,11 @@ - + - + [z_pos] @@ -3083,11 +2743,11 @@ - - + + - + int8 @@ -3099,257 +2759,44 @@ - - - - - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - z_ctrlTypSel - - - - - - - - z_ctrlModReq - - - - - - - - r_inpTgt - - - - - - - - r_inpTgtSca - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F01_01_Input_Scaling - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - + + - + - + - - [z_dirPrev] + + [n_motAbs] - + - - + + - - + + - - int8 + + sfix16_En4 @@ -3360,58 +2807,43 @@ - - - + + + - - + + - - + + - - 2 + + [z_posRaw] - - - - - - - - - - - - - - - - - z_ctrlModReq + + - + - - + + - + uint8 @@ -3423,28 +2855,28 @@ - - + + - + - + - - [a_elecAngle] + + [n_motAbs] - + @@ -3456,59 +2888,44 @@ - - + + - + - + - - 3 + + 5 - + - - - - - - - - - - r_inpTgt - - - - - - - + + - - + + - - sfix16_En4 + + n_motAbs @@ -3519,59 +2936,29 @@ - - - + + + - - + + - - + + - - 1 + + [z_counter] - - - - - - - - - - - - - - - - - z_ctrlTypSel - - - - - - - - - - - - - - - uint8 + + @@ -3592,12 +2979,12 @@ - + - - [b_enaFOC] + + [b_enaAdvCtrl] @@ -3615,77 +3002,52 @@ - - - + + + - - + + - - + + + + + + u1 + + + + - - [r_inpTgtSca] + + if(u1 ~= 0) - - + + - - - - - - - - - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - [r_inpTgtSca] - - - - - - - + + action @@ -3696,44 +3058,44 @@ - - + + - + - + - - [n_motAbs] + + [z_dir] - + - - + + - - + + - - sfix16_En4 + + int8 @@ -3857,11 +3219,11 @@ - + - + @@ -3871,11 +3233,11 @@ - + - + @@ -3885,11 +3247,11 @@ - + - + @@ -3955,11 +3317,11 @@ - + - + @@ -3983,11 +3345,11 @@ - + - + @@ -3997,11 +3359,11 @@ - + - + @@ -4011,11 +3373,11 @@ - + - + @@ -4067,11 +3429,11 @@ - + - + @@ -4162,28 +3524,14 @@ - - - - - - - - - - - - - - - + - + @@ -4193,11 +3541,11 @@ - + - + @@ -4235,25 +3583,11 @@ - - - - - - - - - - - - - - - + - + @@ -4277,137 +3611,53 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + - + - + - + - + - + - + - + @@ -4416,5 +3666,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 e23d374..af607fa 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,38 +303,38 @@ - + - - - + + + - + - - Ini=0 + + uint8 - - - + + + - + - - 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 @@ - + - - - + + + - + - - Ini=0 + + uint8 - - - + + + - + - - uint8 + + Ini=0 @@ -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.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8235_d.svg index f1b535e..3a394a6 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 5c010bb..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,6 +593,86 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8262", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"z_dirPrev", + "label":"z_dirPrev", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8247", + "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:8259", "className":"Simulink.UnitDelay", @@ -724,86 +804,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8262", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"z_dirPrev", - "label":"z_dirPrev", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8247", - "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:8259#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8247_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8247_d.svg index 0c00def..b9bcf3c 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 @@ -778,11 +778,59 @@
+ + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_dirPrev + + + + + + + + - + @@ -790,35 +838,35 @@ - + - + - + - + - + - + - + - + @@ -844,11 +892,11 @@ - + - + int8 @@ -862,7 +910,7 @@ - + @@ -870,35 +918,35 @@ - + - + - + - + - + - + - + - + @@ -919,32 +967,32 @@ - - - + + + - - + + - - int8 + + Ini=0 - - - + + + - - + + - - Ini=0 + + int8 @@ -957,7 +1005,7 @@ - + @@ -965,11 +1013,11 @@ - + - + if { } @@ -987,11 +1035,11 @@ - + - + Action Port @@ -1001,54 +1049,6 @@ - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - z_dirPrev - - - - - - - - @@ -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 db2548f..f3ddefb 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 @@ -1,59 +1,10 @@ [ - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8380", - "className":"Simulink.Annotation", - "icon":"WebViewIcon2", - "name":"

Authorize FOC only it is selected.

", - "label":"

Authorize FOC only it is selected.

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

Authorize FOC only it is selected.

", - "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:8381", "className":"Simulink.Annotation", "icon":"WebViewIcon2", - "name":"

Authorize FOC only if not in high transient detected.

", - "label":"

Authorize FOC only if not in high transient detected.

", + "name":"

Authorize advanced control only if not in high transient detected.

", + "label":"

Authorize advanced control only if not in high transient detected.

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

Authorize FOC only if not in high transient detected.

", + "\n\n

Authorize advanced control only if not in high transient detected.

", "off", "rich", "auto", @@ -101,8 +52,8 @@ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8382", "className":"Simulink.Annotation", "icon":"WebViewIcon2", - "name":"

Authorize FOC only if speed is above a threshold.

", - "label":"

Authorize FOC only if speed is above a threshold.

", + "name":"

Authorize advance control only if speed is above a threshold.

", + "label":"

Authorize advance control only if speed is above a threshold.

", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -120,7 +71,7 @@ "ClickFcn" ], "values":[ - "\n\n

Authorize FOC only if speed is above a threshold.

", + "\n\n

Authorize advance control only if speed is above a threshold.

", "off", "rich", "auto", @@ -150,8 +101,8 @@ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8383", "className":"Simulink.Annotation", "icon":"WebViewIcon2", - "name":"

FOC Enable Flag Determination

", - "label":"

FOC Enable Flag Determination

", + "name":"

Advanced Control Enable Flag Determination

", + "label":"

Advanced Control Enable Flag Determination

", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -169,7 +120,7 @@ "ClickFcn" ], "values":[ - "\n\n

FOC Enable Flag Determination

", + "\n\n

Advanced Control Enable Flag Determination

", "off", "rich", "auto", @@ -419,7 +370,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -661,7 +612,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -737,8 +688,8 @@ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8379", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"b_enaFOC", - "label":"b_enaFOC", + "name":"b_enaAdvCtrl", + "label":"b_enaAdvCtrl", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -973,86 +924,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8377", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"z_counter", - "label":"z_counter", - "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":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8373", "className":"Simulink.Constant", @@ -1152,63 +1023,38 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8376", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8372", + "className":"Simulink.Relay", "icon":"WebViewIcon3", - "name":"n_motAbs", - "label":"n_motAbs", + "name":"n_commDeacv", + "label":"n_commDeacv", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "Port", - "IconDisplay", + "OnSwitchValue", + "OffSwitchValue", + "OnOutputValue", + "OffOutputValue", + "InputProcessing", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "ZeroCross" ], "values":[ - "2", - "Port number", + "n_commDeacvHi", + "n_commAcvLo", + "1", + "0", + "Elements as channels (sample based)", "[]", "[]", - "Inherit: auto", + "boolean", "off", - "inherit", - "-1", - "Inherit", "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "on" ], "tabs":[ "Main", @@ -1217,8 +1063,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 5, + 9 ] }, "viewer":{ @@ -1227,7 +1073,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Relay", "masktype":"" } }, @@ -1332,38 +1178,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9428", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8377", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Relational Operator9", - "label":"Relational Operator9", + "name":"z_counter", + "label":"z_counter", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "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":[ - "<", + "3", + "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":{ @@ -1372,16 +1253,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8366", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9428", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", + "name":"Relational Operator9", + "label":"Relational Operator9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1393,7 +1274,7 @@ "ZeroCross" ], "values":[ - ">", + "<", "off", "boolean", "Simplest", @@ -1422,11 +1303,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8367", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8366", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator3", - "label":"Relational Operator3", + "name":"Relational Operator2", + "label":"Relational Operator2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1438,7 +1319,7 @@ "ZeroCross" ], "values":[ - "==", + ">", "off", "boolean", "Simplest", @@ -1467,27 +1348,51 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8304", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8369", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Switch2", + "label":"Switch2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" ], "values":[ - "z_ctrlTypSel", - "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" @@ -1495,16 +1400,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8311", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8312", "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"Mux1", - "label":"Mux1", + "name":"Mux2", + "label":"Mux2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1531,22 +1436,20 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8301", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8311", + "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Mux1", + "label":"Mux1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Inputs", + "DisplayOption" ], "values":[ - "z_dirPrev", - "local", - "Tag" + "2", + "bar" ], "tabs":[ "Parameter Attributes" @@ -1559,16 +1462,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Mux", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8299", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8306", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1577,7 +1480,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "n_mot", "local", "Tag" ], @@ -1597,11 +1500,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8297", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8305", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1610,7 +1513,7 @@ "IconDisplay" ], "values":[ - "z_counter", + "dz_trnsDet", "local", "Tag" ], @@ -1630,25 +1533,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9425", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8374", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"z_maxCntRst2", + "label":"z_maxCntRst2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "n_motAbs", - "Tag" + "z_maxCntRst", + "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" @@ -1656,24 +1577,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8294", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8301", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "dz_trnsDet", + "z_dirPrev", + "local", "Tag" ], "tabs":[ @@ -1687,24 +1610,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8293", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8299", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"Goto12", + "label":"Goto12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "n_motRaw", + "n_motAbs", + "local", "Tag" ], "tabs":[ @@ -1718,24 +1643,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8291", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8298", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"Goto11", + "label":"Goto11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_counterRaw", + "n_motRaw", + "local", "Tag" ], "tabs":[ @@ -1749,16 +1676,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8289", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9425", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From31", - "label":"From31", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1766,7 +1693,7 @@ "IconDisplay" ], "values":[ - "b_edge", + "n_motAbs", "Tag" ], "tabs":[ @@ -1785,11 +1712,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8288", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8294", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From30", - "label":"From30", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1797,7 +1724,7 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "dz_trnsDet", "Tag" ], "tabs":[ @@ -1816,25 +1743,37 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8285", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8308", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"From28", - "label":"From28", + "name":"If2", + "label":"If2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" ], "values":[ - "z_dirPrev", - "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" @@ -1842,26 +1781,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8303", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8291", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_motAbsPrev", - "local", + "z_counterRaw", "Tag" ], "tabs":[ @@ -1875,16 +1812,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8283", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8289", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From31", + "label":"From31", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1892,7 +1829,7 @@ "IconDisplay" ], "values":[ - "n_motAbsPrev", + "b_edge", "Tag" ], "tabs":[ @@ -1911,11 +1848,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8282", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8293", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1923,7 +1860,7 @@ "IconDisplay" ], "values":[ - "z_dir", + "n_motRaw", "Tag" ], "tabs":[ @@ -1942,43 +1879,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8374", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9427", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"z_maxCntRst2", - "label":"z_maxCntRst2", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "z_maxCntRst", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "b_motStdStill", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1986,42 +1907,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8308", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8285", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", + "name":"From28", + "label":"From28", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" + "GotoTag", + "IconDisplay" ], "values":[ - "1", - "u1 ~= 0", - "", - "off", - "-1", - "on" + "z_dirPrev", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2029,16 +1938,49 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8281", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8300", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto17", + "label":"Goto17", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8284", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", + "name":"From24", + "label":"From24", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2046,7 +1988,7 @@ "IconDisplay" ], "values":[ - "b_enaFOC", + "b_enaAdvCtrl", "Tag" ], "tabs":[ @@ -2065,11 +2007,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8278", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8283", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2077,7 +2019,7 @@ "IconDisplay" ], "values":[ - "b_edge", + "n_motAbsPrev", "Tag" ], "tabs":[ @@ -2096,40 +2038,63 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8369", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8376", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", + "name":"n_motAbs", + "label":"n_motAbs", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "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", + "2", + "Port number", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: auto", "off", - "Zero", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", "off", - "-1", + "[]", + "off", + "held", + "off", "0", - "on" + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -2138,8 +2103,8 @@ ], "tabs_idx":[ 0, - 1, - 9 + 2, + 11 ] }, "viewer":{ @@ -2148,26 +2113,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8298", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8282", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", + "name":"From19", + "label":"From19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_motRaw", - "local", + "z_dir", "Tag" ], "tabs":[ @@ -2181,24 +2144,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8277", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8303", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_counterRaw", + "n_motAbsPrev", + "local", "Tag" ], "tabs":[ @@ -2212,16 +2177,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9426", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8280", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"From17", + "label":"From17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2229,7 +2194,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "z_counterRawPrev", "Tag" ], "tabs":[ @@ -2248,21 +2213,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8305", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8286", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"From29", + "label":"From29", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "dz_trnsDet", - "local", + "n_motAbs", "Tag" ], "tabs":[ @@ -2276,25 +2239,56 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8312", - "className":"Simulink.Mux", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8292", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Mux2", - "label":"Mux2", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "Inputs", - "DisplayOption" + "GotoTag", + "IconDisplay" ], "values":[ - "2", - "bar" + "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:8313", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux3", + "label":"Mux3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "2", + "bar" ], "tabs":[ "Parameter Attributes" @@ -2312,11 +2306,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8286", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8278", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From29", - "label":"From29", + "name":"From15", + "label":"From15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2324,7 +2318,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "b_edge", "Tag" ], "tabs":[ @@ -2343,40 +2337,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Counter", - "label":"Counter", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8277", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From14", + "label":"From14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "z_cntInit" + "GotoTag", + "IconDisplay" ], "values":[ - "z_maxCntRst" + "z_counterRaw", + "Tag" ], "tabs":[ + "Parameter Attributes" ], - "tabs_idx":[ - ] + "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:8284", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8276", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From24", - "label":"From24", + "name":"From12", + "label":"From12", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counter", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9426", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2384,7 +2411,7 @@ "IconDisplay" ], "values":[ - "b_enaFOC", + "b_motStdStill", "Tag" ], "tabs":[ @@ -2434,11 +2461,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8280", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8281", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From17", - "label":"From17", + "name":"From18", + "label":"From18", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2446,7 +2473,7 @@ "IconDisplay" ], "values":[ - "z_counterRawPrev", + "b_enaAdvCtrl", "Tag" ], "tabs":[ @@ -2464,6 +2491,84 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8270", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant4", + "label":"Constant4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:8314", "className":"Simulink.SubSystem", @@ -2562,38 +2667,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8372", - "className":"Simulink.Relay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8267", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"n_commDeacv", - "label":"n_commDeacv", + "name":"z_dirPrev", + "label":"z_dirPrev", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "OnSwitchValue", - "OffSwitchValue", - "OnOutputValue", - "OffOutputValue", - "InputProcessing", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "n_commDeacvHi", - "n_commAcvLo", - "1", - "0", - "Elements as channels (sample based)", + "3", + "Port number", "[]", "[]", - "boolean", + "Inherit: auto", "off", + "inherit", "-1", - "on" + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", @@ -2602,8 +2719,8 @@ ], "tabs_idx":[ 0, - 5, - 9 + 2, + 11 ] }, "viewer":{ @@ -2612,98 +2729,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Relay", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8270", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9477", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Constant4", - "label":"Constant4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8300", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_enaFOC", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9477", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", + "name":"From21", + "label":"From21", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2762,317 +2797,8 @@ "-Other" ], "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Abs", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8306", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_mot", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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: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":"" - } - }, - { - "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":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8313", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux3", - "label":"Mux3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "2", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8276", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counter", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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_FOC", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 + 0, + 6 ] }, "viewer":{ @@ -3081,16 +2807,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Abs", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9427", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8297", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Goto10", + "label":"Goto10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -3099,7 +2825,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "z_counter", "local", "Tag" ], @@ -3119,11 +2845,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8309", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8310", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator1", - "label":"Logical Operator1", + "name":"Logical Operator2", + "label":"Logical Operator2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -3135,7 +2861,7 @@ "SampleTime" ], "values":[ - "NOT", + "AND", "2", "rectangular", "off", @@ -3164,11 +2890,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8310", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8309", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator2", - "label":"Logical Operator2", + "name":"Logical Operator1", + "label":"Logical Operator1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -3180,8 +2906,8 @@ "SampleTime" ], "values":[ - "AND", - "3", + "NOT", + "2", "rectangular", "off", "boolean", @@ -4228,57 +3954,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8264#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "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:8277#out:1", "className":"Simulink.Line", @@ -4942,108 +4617,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8269#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "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:8288#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "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:8286#out:1", "className":"Simulink.Line", @@ -5147,58 +4720,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8367#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", - "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:8372#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8310#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5249,7 +4771,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8309#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8294#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5300,7 +4822,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8310#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8374#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5351,7 +4873,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8294#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8278#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5402,7 +4924,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8374#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8271#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5453,7 +4975,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8278#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5504,7 +5026,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8271#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9426#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5555,7 +5077,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9425#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5606,7 +5128,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9426#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9429#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5657,7 +5179,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9425#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9428#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5708,7 +5230,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9429#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9477#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5759,7 +5281,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9428#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8372#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5810,7 +5332,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9477#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8309#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_8263_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.png index 4a3699f..a2c92c3 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 4afe1f5..5ef2244 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 @@ -1,56 +1,37 @@ - + - + - - - - - - - - - - - - - - Authorize FOC only it is selected. - - - - - - - + + - - + + - - Authorize FOC only if not in + + Authorize advanced control only - - + + - - high transient detected. + + if not in high transient detected. @@ -60,24 +41,24 @@ - + - + - - Authorize FOC only if speed is + + Authorize advance control only if - + - - above a threshold. + + speed is above a threshold. @@ -88,15 +69,15 @@ - + - - + + - - FOC Enable Flag Determination + + Advanced Control Enable Flag Determination @@ -107,7 +88,7 @@ - + @@ -115,19 +96,19 @@ - + - + - + - + @@ -164,11 +145,11 @@ - + - + 1 @@ -186,11 +167,11 @@ - - + + - + int16 @@ -212,11 +193,11 @@ - + - + [z_counterRaw] @@ -245,11 +226,11 @@ - + - + [b_edge] @@ -267,11 +248,11 @@ - - + + - + boolean @@ -293,11 +274,11 @@ - + - + [z_counterRaw] @@ -315,11 +296,11 @@ - - + + - + int16 @@ -341,11 +322,11 @@ - + - + [z_counterRawPrev] @@ -365,57 +346,57 @@ - + - + - + - - 2 + + 1 - + - + - - + + - + b_edge - + - - + + - + boolean @@ -428,27 +409,27 @@ - + - + - + - + [b_edge] - + @@ -470,11 +451,11 @@ - + - + 1 @@ -492,11 +473,11 @@ - - + + - + n_mot @@ -518,11 +499,11 @@ - + - + [n_mot] @@ -540,11 +521,11 @@ - - + + - + sfix16_En4 @@ -566,11 +547,11 @@ - + - + [n_mot] @@ -588,11 +569,11 @@ - - + + - + sfix16_En4 @@ -605,57 +586,57 @@ - + - + - + - - 3 + + 2 - + - + - - + + - + z_dir - + - - + + - + int8 @@ -668,27 +649,27 @@ - + - + - + - + [z_dir] - + @@ -710,11 +691,11 @@ - + - + 6 @@ -729,15 +710,15 @@ - + - - + + - - b_enaFOC + + b_enaAdvCtrl @@ -758,11 +739,11 @@ - + - + 5 @@ -780,11 +761,11 @@ - - + + - + b_motStdStill @@ -806,11 +787,11 @@ - + - + 4 @@ -828,11 +809,11 @@ - - + + - + z_counterRaw @@ -842,54 +823,6 @@ - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - z_counter - - - - - - - - @@ -902,11 +835,11 @@ - + - + z_maxCntRst @@ -924,11 +857,11 @@ - - + + - + int16 @@ -941,57 +874,57 @@ - + - + - + - + n_stdStillDet - + - + - - + + - + n_stdStillDet - + - - + + - + sfix16_En4 @@ -1003,44 +936,107 @@ - - - + + + - - + + - + - - + + - - 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - n_motAbs + + n_commDeacv + + + + + + + + + + + + + + + boolean @@ -1053,7 +1049,7 @@ - + @@ -1061,35 +1057,35 @@ - + - + - + - + - + - + - + - + @@ -1110,32 +1106,32 @@ - - - + + + - - + + - - Ini=0 + + sfix16_En4 - - - + + + - - + + - - sfix16_En4 + + Ini=0 @@ -1148,7 +1144,7 @@ - + @@ -1156,35 +1152,35 @@ - + - + - + - + - + - + - + - + @@ -1205,32 +1201,32 @@ - - - + + + - - + + - - int16 + + Ini=z_maxCntRst - - - + + + - - + + - - Ini=z_maxCntRst + + int16 @@ -1241,60 +1237,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 3 - - - - - - - - - - + + - - - + + + - - + + - - boolean + + z_counter @@ -1305,30 +1285,30 @@ - - - + + + - + - + - + - + - - + + @@ -1342,22 +1322,22 @@ - + - + - - + + - + boolean @@ -1369,38 +1349,30 @@ - - - + + + - + - + - + - - - - - - - - - - + + - - + + @@ -1414,22 +1386,22 @@ - + - + - - + + - + boolean @@ -1441,29 +1413,188 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + - - [z_ctrlTypSel] + + F - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1474,44 +1605,44 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - int16 + + sfix16_En4 @@ -1522,29 +1653,44 @@ - - - + + + - - + + - - + + - - [z_dirPrev] + + - - + + + + + + + + + + + + + + + + + int16 @@ -1555,28 +1701,28 @@ - - + + - + - + - - [n_motAbs] + + [n_mot] - + @@ -1588,28 +1734,28 @@ - - + + - + - + - - [z_counter] + + [dz_trnsDet] - + @@ -1621,43 +1767,190 @@ - - - + + + - - + + - - + + - - [n_motAbs] + + z_maxCntRst - - + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dirPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motRaw] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + - + - - + + - + sfix16_En4 @@ -1670,42 +1963,42 @@ - + - + - + - + [dz_trnsDet] - + - + - - + + - + boolean @@ -1717,44 +2010,52 @@ - - - + + + - - + + - - + + - - [n_motRaw] + + u1 + + + + + + + + if(u1 ~= 0) - - + + - - + + - - + + - - sfix16_En4 + + action @@ -1775,11 +2076,11 @@ - + - + [z_counterRaw] @@ -1797,11 +2098,11 @@ - - + + - + int16 @@ -1823,11 +2124,11 @@ - + - + [b_edge] @@ -1845,11 +2146,11 @@ - - + + - + boolean @@ -1861,44 +2162,77 @@ - - + + - + - + - - [z_ctrlTypSel] + + [n_motRaw] - + - - + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + - - + + - - uint8 + + [b_motStdStill] + + + + + + + @@ -1919,11 +2253,11 @@ - + - + [z_dirPrev] @@ -1941,11 +2275,11 @@ - - + + - + int8 @@ -1957,28 +2291,28 @@ - - + + - + - + - - [n_motAbsPrev] + + [b_enaAdvCtrl] - + @@ -1990,44 +2324,44 @@ - - + + - + - - + + - - [n_motAbsPrev] + + [b_enaAdvCtrl] - + - - + + - - + + - - sfix16_En4 + + boolean @@ -2038,44 +2372,44 @@ - - + + - + - + - - [z_dir] + + [n_motAbsPrev] - + - - + + - - + + - - int8 + + sfix16_En4 @@ -2086,44 +2420,44 @@ - - - + + + - - + + - - + + - - z_maxCntRst + + 2 - - + + - - - + + + - - + + - - int16 + + n_motAbs @@ -2134,52 +2468,44 @@ - - - + + + - - + + - - - - - - u1 - - - - + + - - if(u1 ~= 0) + + [z_dir] - - + + - - + + - - + + - - action + + int8 @@ -2190,44 +2516,77 @@ - - + + + + + + + + + + + + + + + + [n_motAbsPrev] + + + + + + + + + + + + + + + + + + + - + - - + + - - [b_enaFOC] + + [z_counterRawPrev] - + - - + + - - + + - - boolean + + int16 @@ -2238,44 +2597,44 @@ - - + + - + - - + + - - [b_edge] + + [n_motAbs] - + - - + + - - + + - - boolean + + sfix16_En4 @@ -2286,188 +2645,140 @@ - - - + + + - - + + - - + + - - + + [n_motAbs] - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + sfix16_En4 + + + + + + + + + + + + + + + + + + - - + + - - + + - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + boolean + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F + + [b_edge] - - + + - - + + - - + + - - sfix16_En4 + + boolean @@ -2478,29 +2789,44 @@ - - - + + + - - + + - - + + - - [n_motRaw] + + [z_counterRaw] - - + + + + + + + + + + + + + + + + + int16 @@ -2511,43 +2837,43 @@ - - + + - + - - + + - - [z_counterRaw] + + [z_counter] - + - + - - + + - + int16 @@ -2569,11 +2895,11 @@ - + - + [b_motStdStill] @@ -2591,11 +2917,11 @@ - - + + - + boolean @@ -2607,29 +2933,44 @@ - - - + + + - - + + - - + + - - [dz_trnsDet] + + [z_counter] - - + + + + + + + + + + + + + + + + + int16 @@ -2640,44 +2981,44 @@ - - - + + + - - + + - - + + - - + + [b_enaAdvCtrl] - - + + - - + + - - + + - - sfix16_En4 + + boolean @@ -2688,43 +3029,43 @@ - - - + + + - - + + - - + + - - [n_motAbs] + + 0 - - + + - + - - + + - + sfix16_En4 @@ -2738,7 +3079,7 @@ - + @@ -2746,155 +3087,155 @@ - + - + inc - + - + max - + - + rst - + - + cnt - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -2912,56 +3253,71 @@ - - + + - + Counter - - - + + + - - + + - - Ini=z_maxCntRst + + int16 - - - + + + + + + + + + + + Ini=z_maxCntRst + + + + + + + - + - + - + - + - + @@ -2969,165 +3325,6 @@ - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaFOC] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counterRawPrev] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - @@ -3136,7 +3333,7 @@ - + @@ -3150,67 +3347,67 @@ - + - + z_dir - + - + z_dirPrev - + - + z_counterRawPrev - + - + n_motAbsPrev - + - + z_counter - + - + dz_trnsDet - + - + n_motRaw - + - + if { } @@ -3240,11 +3437,11 @@ - - + + - + Raw_Motor_Speed_Estimation @@ -3261,11 +3458,11 @@ - - + + - + int16 @@ -3278,527 +3475,57 @@ - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - n_commDeacv - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaFOC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motRaw] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - z_dirPrev - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - + + - - [n_motAbs] + + action - - - + + + + + + + + + + + + + + + + + boolean - + + + + + + + - - + + - + sfix16_En4 @@ -3810,59 +3537,65 @@ - - + + + + + + + + - + - + - - 1 + + 3 - + - - + + - - + + - - z_ctrlTypSel + + z_dirPrev - - + + - - + + - - uint8 + + int8 @@ -3873,44 +3606,44 @@ - - - + + + - - + + - - + + - - + + [n_motRaw] - - + + - - + + - - + + - - boolean + + sfix16_En4 @@ -3921,92 +3654,76 @@ - - - + + + - - + + - + - - + + - - [z_counter] + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - int16 + + - - - - - - - - - - - - + + - - - - - - - CTRL_FOC - - - + + - - + + - - + + - - uint8 + + sfix16_En4 @@ -4017,28 +3734,28 @@ - - + + - + - + - - [b_motStdStill] + + [z_counter] - + @@ -4050,30 +3767,30 @@ - - - + + + - - + + - - + + - - + + - + - - + + @@ -4083,8 +3800,8 @@ - - + + @@ -4094,15 +3811,15 @@ - + - - + + - + boolean @@ -4114,30 +3831,30 @@ - - - + + + - - + + - - + + - - + + - + - - + + @@ -4147,23 +3864,23 @@ - + - - + + - + boolean - - + + @@ -4263,11 +3980,11 @@ - + - + @@ -4291,11 +4008,11 @@ - + - + @@ -4347,11 +4064,11 @@ - + - + @@ -4476,20 +4193,6 @@ - - - - - - - - - - - - - - @@ -4692,42 +4395,14 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -4748,56 +4423,14 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -4807,11 +4440,11 @@ - + - + @@ -4911,11 +4544,11 @@ - + - + @@ -4925,11 +4558,11 @@ - + - + @@ -4939,11 +4572,11 @@ - + - + @@ -4964,7 +4597,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + 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 f2bc189..a8e112e 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_2515_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_2515_d.svg @@ -15,7 +15,7 @@ - + @@ -486,32 +486,32 @@ - - - + + + - + - - Ini=initVal + + int16 - - - + + + - + - - int16 + + Ini=initVal @@ -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 b2c7dae..cefe63f 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 @@ -79,35 +79,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2515", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"rst_Delay", - "label":"rst_Delay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8272", - "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:8272:2416", "className":"Simulink.Sum", @@ -221,11 +192,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2414", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2413", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"rst", - "label":"rst", + "name":"max", + "label":"max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8272", "inspector":{ "params":[ @@ -248,7 +219,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -288,11 +259,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2412", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2414", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"inc", - "label":"inc", + "name":"rst", + "label":"rst", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8272", "inspector":{ "params":[ @@ -315,7 +286,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "3", "Port number", "[]", "[]", @@ -355,11 +326,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2413", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2412", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"max", - "label":"max", + "name":"inc", + "label":"inc", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8272", "inspector":{ "params":[ @@ -382,7 +353,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -421,6 +392,35 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2515", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"rst_Delay", + "label":"rst_Delay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8272", + "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:8272:2515#out:1", "className":"Simulink.Line", 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 d2fcc3d..fbd08f4 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 @@ -59,141 +59,6 @@
- - - - - - - - - - - - - - - - - - u - - - - - - - - rst - - - - - - - - y - - - - - - - - 1 - - - - - - - - z - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - Ini=z_cntInit - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -206,35 +71,35 @@ - + - + - + - + - + - + - + - + @@ -252,11 +117,11 @@ - + - + int16 @@ -270,7 +135,7 @@ - + @@ -278,19 +143,19 @@ - + - + - + - + @@ -316,11 +181,74 @@ - + - + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + max + + + + + + + + + + + + + + int16 @@ -342,11 +270,11 @@ - + - + 3 @@ -364,11 +292,11 @@ - + - + rst @@ -379,11 +307,11 @@ - + - + boolean @@ -405,11 +333,11 @@ - + - + 1 @@ -427,11 +355,11 @@ - + - + inc @@ -442,11 +370,11 @@ - + - + int16 @@ -458,63 +386,135 @@ - - - + + + - - + + - - + + - - 2 + + u + + + + + + + + rst + + + + + + + + y + + + + + + + + 1 + + + + + + + + z + + + + + + + + - - + + - - - + + + - - + + - - max + + Ini=z_cntInit - - + + - - + + - + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -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 e74daf9..f808cad 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,72 +245,51 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8358", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8357", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"z_counter", - "label":"z_counter", + "name":"g_Ha", + "label":"g_Ha", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Gain", + "Multiplication", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" ], "values":[ - "1", - "Port number", + "4", + "Element-wise(K.*u)", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "z_maxCntRst", + "Inherit: Inherit via back propagation", "off", - "held", + "Zero", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "[]", + "[]", + "Inherit: Same as input", + "-1" ], "tabs":[ "Main", "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, 2, + 8, 11 ] }, @@ -320,68 +299,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Gain", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8360", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8348", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"n_motRaw", - "label":"n_motRaw", + "name":"Switch2", + "label":"Switch2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "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":[ - "3", - "Port number", + "u2 ~= 0", + "on", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", + "Inherit: Inherit via internal rule", "off", - "[]", + "Floor", "off", - "held", "off", + "-1", "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "on" ], "tabs":[ "Main", @@ -390,8 +346,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 1, + 9 ] }, "viewer":{ @@ -400,42 +356,44 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8356", - "className":"Simulink.Relay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8347", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"dz_cntTrnsDet", - "label":"dz_cntTrnsDet", + "name":"Switch1", + "label":"Switch1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "OnSwitchValue", - "OffSwitchValue", - "OnOutputValue", - "OffOutputValue", - "InputProcessing", + "Criteria", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", "SampleTime", + "Threshold", "ZeroCross" ], "values":[ - "dz_cntTrnsDetHi", - "dz_cntTrnsDetLo", - "1", - "0", - "Elements as channels (sample based)", + "u2 ~= 0", + "on", "[]", "[]", - "boolean", + "Inherit: Inherit via internal rule", + "off", + "Floor", + "off", "off", "-1", + "0", "on" ], "tabs":[ @@ -445,7 +403,7 @@ ], "tabs_idx":[ 0, - 5, + 1, 9 ] }, @@ -455,7 +413,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Relay", + "blocktype":"Switch", "masktype":"" } }, @@ -510,50 +468,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8348", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8352", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", + "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":{ @@ -562,45 +513,68 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"UnitDelay", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8347", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8359", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", + "name":"dz_trnsDet", + "label":"dz_trnsDet", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "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", - "on", + "2", + "Port number", "[]", "[]", - "Inherit: Inherit via internal rule", + "Inherit: auto", "off", - "Floor", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", "off", - "-1", + "[]", + "off", + "held", + "off", "0", - "on" + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -609,8 +583,8 @@ ], "tabs_idx":[ 0, - 1, - 9 + 2, + 11 ] }, "viewer":{ @@ -619,16 +593,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8341", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8342", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -637,7 +611,7 @@ "IconDisplay" ], "values":[ - "dz_trnsDet", + "cf_speedCoef", "local", "Tag" ], @@ -657,27 +631,51 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8339", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8349", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Switch3", + "label":"Switch3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" ], "values":[ - "n_motAbsPrev", - "local", - "Tag" + "u2 ~= 0", + "on", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Floor", + "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" @@ -685,16 +683,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8336", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8341", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -703,7 +701,7 @@ "IconDisplay" ], "values":[ - "z_dir", + "dz_trnsDet", "local", "Tag" ], @@ -723,19 +721,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8332", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8340", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_dir", + "z_counterRawPrev", + "local", "Tag" ], "tabs":[ @@ -749,58 +749,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8346", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8339", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Sum7", - "label":"Sum7", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "rectangular", - "+-", - "on", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "n_motAbsPrev", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 10 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -808,24 +782,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8330", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8338", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_dir", + "z_dirPrev", + "local", "Tag" ], "tabs":[ @@ -839,49 +815,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8350", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8336", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"UnitDelay1", - "label":"UnitDelay1", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" + "z_dir", + "local", + "Tag" ], "tabs":[ - "Main", - "State Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -889,16 +848,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8328", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8332", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -906,7 +865,7 @@ "IconDisplay" ], "values":[ - "z_counter", + "z_dir", "Tag" ], "tabs":[ @@ -925,11 +884,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8327", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8331", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -937,7 +896,7 @@ "IconDisplay" ], "values":[ - "z_counter", + "cf_speedCoef", "Tag" ], "tabs":[ @@ -956,11 +915,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8354", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8350", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"UnitDelay5", - "label":"UnitDelay5", + "name":"UnitDelay1", + "label":"UnitDelay1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -1006,11 +965,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8326", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8330", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -1018,7 +977,7 @@ "IconDisplay" ], "values":[ - "z_counterRawPrev", + "z_dir", "Tag" ], "tabs":[ @@ -1037,53 +996,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8357", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8329", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"g_Ha", - "label":"g_Ha", + "name":"From21", + "label":"From21", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "4", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" + "z_dirPrev", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1091,56 +1022,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8324", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8328", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Divide14", - "label":"Divide14", + "name":"From13", + "label":"From13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "*/", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "z_counter", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1148,16 +1053,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8335", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8325", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -1165,7 +1070,7 @@ "IconDisplay" ], "values":[ - "z_counter", + "cf_speedCoef", "Tag" ], "tabs":[ @@ -1184,38 +1089,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8344", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8358", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Relational Operator4", - "label":"Relational Operator4", + "name":"z_counter", + "label":"z_counter", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "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", + "z_maxCntRst", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", - "Data Type", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 4 + 2, + 11 ] }, "viewer":{ @@ -1224,30 +1164,44 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8325", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8344", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"Relational Operator4", + "label":"Relational Operator4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" ], "values":[ - "cf_speedCoef", - "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" @@ -1255,16 +1209,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8322", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8323", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide11", - "label":"Divide11", + "name":"Divide13", + "label":"Divide13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -1282,12 +1236,12 @@ "SampleTime" ], "values":[ - "**", + "*/", "Element-wise(.*)", "off", "[]", "[]", - "Inherit: Same as first input", + "fixdt(1,16,4)", "off", "Simplest", "off", @@ -1317,11 +1271,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8340", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8337", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -1330,7 +1284,7 @@ "IconDisplay" ], "values":[ - "z_counterRawPrev", + "z_counter", "local", "Tag" ], @@ -1350,33 +1304,175 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8355", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8360", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"cf_speedCoef", - "label":"cf_speedCoef", + "name":"n_motRaw", + "label":"n_motRaw", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "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_speedCoef", - "on", - "inf", + "3", + "Port number", "[]", "[]", - "fixdt(0,16,0)", + "Inherit: auto", "off", - "inf" - ], + "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:8333", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_motAbsPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8321", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant4", + "label":"Constant4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], "tabs":[ "Main", "Signal Attributes", @@ -1399,11 +1495,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8323", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8322", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide13", - "label":"Divide13", + "name":"Divide11", + "label":"Divide11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -1421,12 +1517,12 @@ "SampleTime" ], "values":[ - "*/", + "**", "Element-wise(.*)", "off", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: Same as first input", "off", "Simplest", "off", @@ -1456,73 +1552,40 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8359", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8320", + "className":"Simulink.Abs", "icon":"WebViewIcon3", - "name":"dz_trnsDet", - "label":"dz_trnsDet", + "name":"Abs2", + "label":"Abs2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Port", - "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "RndMeth", + "SaturateOnIntegerOverflow", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "ZeroCross" ], "values":[ - "2", - "Port number", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", + "Inherit: Inherit via back propagation", "off", - "held", + "Zero", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "-1", + "on" ], "tabs":[ - "Main", "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 6 ] }, "viewer":{ @@ -1531,49 +1594,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Abs", "masktype":"" } }, { - "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" @@ -1581,7 +1625,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"From", "masktype":"" } }, @@ -1617,43 +1661,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8352", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8355", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"UnitDelay3", - "label":"UnitDelay3", + "name":"cf_speedCoef", + "label":"cf_speedCoef", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", + "Value", + "VectorParams1D", "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", + "cf_speedCoef", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,0)", "off", - [ - ], - "Auto" + "inf" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, 3, - 4 + 7 ] }, "viewer":{ @@ -1662,44 +1705,73 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8349", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8335", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Switch3", - "label":"Switch3", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Criteria", - "InputSameDT", + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counter", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8356", + "className":"Simulink.Relay", + "icon":"WebViewIcon3", + "name":"dz_cntTrnsDet", + "label":"dz_cntTrnsDet", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "OnSwitchValue", + "OffSwitchValue", + "OnOutputValue", + "OffOutputValue", + "InputProcessing", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", "SampleTime", - "Threshold", "ZeroCross" ], "values":[ - "u2 ~= 0", - "on", + "dz_cntTrnsDetHi", + "dz_cntTrnsDetLo", + "1", + "0", + "Elements as channels (sample based)", "[]", "[]", - "Inherit: Inherit via internal rule", - "off", - "Floor", - "off", + "boolean", "off", "-1", - "0", "on" ], "tabs":[ @@ -1709,7 +1781,7 @@ ], "tabs_idx":[ 0, - 1, + 5, 9 ] }, @@ -1719,7 +1791,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"Relay", "masktype":"" } }, @@ -1774,75 +1846,11 @@ "Signal Attributes", "-Other" ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "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", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8337", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_counter", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 11 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1850,16 +1858,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8345", + "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":[ @@ -1879,7 +1887,7 @@ ], "values":[ "rectangular", - "++++", + "+-", "on", "Inherit: Inherit via internal rule", "[]", @@ -1914,42 +1922,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8321", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8354", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"Constant4", - "label":"Constant4", + "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":[ "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", + "Inherited", + "-1", + "", + "", "off", - "inf" + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, 3, - 7 + 4 ] }, "viewer":{ @@ -1958,30 +1967,49 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"UnitDelay", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8333", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8353", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"UnitDelay4", + "label":"UnitDelay4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "n_motAbsPrev", - "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" @@ -1989,7 +2017,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"UnitDelay", "masktype":"" } }, @@ -2061,11 +2089,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8329", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8327", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", + "name":"From12", + "label":"From12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -2073,7 +2101,7 @@ "IconDisplay" ], "values":[ - "z_dirPrev", + "z_counter", "Tag" ], "tabs":[ @@ -2159,25 +2187,51 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8331", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8324", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"Divide14", + "label":"Divide14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "cf_speedCoef", - "Tag" + "*/", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(1,16,4)", + "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" @@ -2185,7 +2239,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Product", "masktype":"" } }, @@ -2257,106 +2311,52 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8338", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_dirPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8342", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "cf_speedCoef", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8320", - "className":"Simulink.Abs", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8345", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Abs2", - "label":"Abs2", + "name":"Sum13", + "label":"Sum13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "SampleTime", - "ZeroCross" + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ + "rectangular", + "++++", + "on", + "Inherit: Inherit via internal rule", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: Same as first input", "off", - "Zero", + "Simplest", "off", - "-1", - "on" + "1", + "All dimensions", + "-1" ], "tabs":[ + "Main", "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 6 + 2, + 10 ] }, "viewer":{ @@ -2365,7 +2365,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Abs", + "blocktype":"Sum", "masktype":"" } }, 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 2d23817..d9c67cd 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 f3a5ec0..e235a05 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,44 +220,44 @@ - - - + + + - - + + - + - - 1 + + 4 - - + + - - - + + + - + - - z_counter + + uint16 @@ -268,44 +268,204 @@ - - - + + + - - + + - + - - 3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - + + - - - + + + - - + + - - n_motRaw + + sfix16_En4 + + + + + + + + + + + + + + + threshold=0 + Criteria : u2 ~= 0 @@ -316,107 +476,204 @@ - - - + + + - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - - - - - - - - - + + - - - + + + - - + + - - dz_cntTrnsDet + + threshold=0 + Criteria : u2 ~= 0 - - + + - - + + - - boolean + + sfix16_En4 @@ -429,7 +686,7 @@ - + @@ -437,35 +694,35 @@ - + - + - + - + - + - + - + - + @@ -491,11 +748,11 @@ - + - + int16 @@ -506,11 +763,11 @@ - + - + Ini=0 @@ -522,204 +779,172 @@ - - - - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - - - + + + + + + + + + + + + + + - - - - - - - + + + + + + - - + + - - + + Ini=0 - - - - - - - + + + + + + - - + + - - T + + int16 + + + + + + + + + + + + + + + + + + - - + + - - F + + 2 - - + + - - - + + + - - + + - - threshold=0 - Criteria : u2 ~= 0 + + dz_trnsDet - - - - + + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + [cf_speedCoef] + + + + + + + @@ -730,202 +955,202 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + T - - + + - + F - - + + - + - - + + - + sfix16_En4 - + - - + + - + threshold=0 Criteria : u2 ~= 0 @@ -948,11 +1173,11 @@ - + - + [dz_trnsDet] @@ -971,28 +1196,28 @@ - - + + - + - - + + - - [n_motAbsPrev] + + [z_counterRawPrev] - + @@ -1004,28 +1229,28 @@ - - + + - + - + - - [z_dir] + + [n_motAbsPrev] - + @@ -1037,108 +1262,29 @@ - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - + + + - - + + - - - - - - - - - - - - - - - - - - + + - - + + [z_dirPrev] - - - - - - - - - - - - - - - - - int16 + + @@ -1149,139 +1295,29 @@ - - - + + + - - + + - - + + - + [z_dir] - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - boolean + + @@ -1292,44 +1328,44 @@ - - + + - + - + - - [z_counter] + + [z_dir] - + - - - + + + - - + + - - int16 + + int8 @@ -1340,44 +1376,44 @@ - - + + - + - + - - [z_counter] + + [cf_speedCoef] - + - - + + - - + + - - int16 + + uint16 @@ -1388,45 +1424,45 @@ - - + + - + - + - + - + - + - + - + - + - + @@ -1441,38 +1477,38 @@ - + - - - + + + - - + + - - Ini=0 + + boolean - - - + + + - - + + - - int16 + + Ini=0 @@ -1483,44 +1519,44 @@ - - + + - + - - + + - - [z_counterRawPrev] + + [z_dir] - + - - + + - - + + - - int16 + + int8 @@ -1531,44 +1567,44 @@ - - - + + + - - + + - - + + - - 4 + + [z_dirPrev] - - + + - - + + - - + + - - uint16 + + int8 @@ -1579,69 +1615,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - + + [z_counter] - - + + - - + + - - + + - - sfix16_En4 + + int16 @@ -1652,44 +1663,44 @@ - - + + - + - + - - [z_counter] + + [cf_speedCoef] - + - - + + - - + + - - int16 + + uint16 @@ -1700,60 +1711,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 1 - - - - - - - - - - + + - - - + + + - - + + - - boolean + + z_counter @@ -1764,44 +1759,60 @@ - - - + + + - - + + - + - - + + - - [cf_speedCoef] + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - uint16 + + boolean @@ -1812,51 +1823,68 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -1868,28 +1896,28 @@ - - + + - + - - + + - - [z_counterRawPrev] + + [z_counter] - + @@ -1901,59 +1929,92 @@ - - - + + + - - + + - - + + - - cf_speedCoef + + 3 - - + + - - + + - - + + - - cf_speedCoef + + n_motRaw + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbsPrev] + + + + + + + - - + + - - + + - - uint16 + + sfix16_En4 @@ -1964,68 +2025,91 @@ - - - + + + - - + + - - + + - - + + [dz_trnsDet] - - - - - - - + + + + + + + + + + + + + - - + + - - + + boolean + + + + + + + + + + + + + + + + + + - - + + - - - + + 0 - - + + - + - - + + - + sfix16_En4 @@ -2037,44 +2121,52 @@ - - - + + + - - + + - - + + - - 2 + + + + + + + + + + - - + + - - - + + + - - + + - - dz_trnsDet + + sfix16_En4 @@ -2085,46 +2177,46 @@ - - - - - - + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + @@ -2138,37 +2230,70 @@ - - + + - - - + + + - - + + - - Ini=0 + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counterRawPrev] + + + + + + + - + - - + + - + int16 @@ -2182,7 +2307,7 @@ - + @@ -2190,11 +2315,11 @@ - + - + if { } @@ -2212,11 +2337,11 @@ - + - + Action Port @@ -2228,91 +2353,59 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + cf_speedCoef - - - - - - - - - - + + - - - + + + - - + + - - Ini=0 + + cf_speedCoef - - + + - - + + - - int16 + + uint16 @@ -2323,204 +2416,155 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + [z_counter] - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + int16 + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - T + + - - + + - - F + + + + + + + + + + - - + + - - - + + + - - + + - - threshold=0 - Criteria : u2 ~= 0 + + dz_cntTrnsDet - - + + - - + + - - sfix16_En4 + + boolean @@ -2541,11 +2585,11 @@ - + - + 4 @@ -2563,11 +2607,11 @@ - + - + n_motAbsPrev @@ -2578,11 +2622,11 @@ - + - + sfix16_En4 @@ -2594,77 +2638,60 @@ - - - + + + - - + + - - + + - - [dz_trnsDet] - - - - - - - + + - - - - - - + + + + + + + - - + + - - boolean + + - - - - - - - - - - - - + + + + + - + + + + - - + + - - [z_counter] - - - - - - - + + int16 @@ -2675,99 +2702,90 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - - - + + + + + + + + + + + + + + - - - - - - - + + + + + + - - + + - - - - - - - - - + + Ini=0 - + - - + + - + int16 @@ -2779,92 +2797,91 @@ - - - + + + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - 0 + + - - - - + - - - - - - - - - - - sfix16_En4 - + - - - - - - - - - - - - + + + + + + + + - - + + - - [n_motAbsPrev] - - - - - - - + + Ini=0 - - + + - - + + - - sfix16_En4 + + int16 @@ -2885,11 +2902,11 @@ - + - + 3 @@ -2907,11 +2924,11 @@ - + - + z_counterRawPrev @@ -2922,11 +2939,11 @@ - + - + int16 @@ -2938,44 +2955,44 @@ - - + + - + - + - - [z_dirPrev] + + [z_counter] - + - - + + - - + + - - int8 + + int16 @@ -2996,11 +3013,11 @@ - + - + 2 @@ -3018,11 +3035,11 @@ - + - + z_dirPrev @@ -3033,11 +3050,11 @@ - + - + int8 @@ -3049,44 +3066,69 @@ - - - + + + - - + + - - + + - - [cf_speedCoef] + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - uint16 + + sfix16_En4 @@ -3107,11 +3149,11 @@ - + - + 1 @@ -3129,11 +3171,11 @@ - + - + z_dir @@ -3144,11 +3186,11 @@ - + - + int8 @@ -3160,141 +3202,99 @@ - - - + + + - - + + - - + + - - [z_dirPrev] + + - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - + + - - [cf_speedCoef] + + - - - - - - + + + + + + + - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - - - - - - - - - + + - + - + - + int16 @@ -3308,7 +3308,7 @@ - + @@ -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 1bf7a05..f51d3b8 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,86 +950,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8421", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"a_elecAngle", - "label":"a_elecAngle", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8420", "className":"Simulink.Constant", @@ -1054,7 +974,7 @@ "inf", "[]", "[]", - "fixdt(0,16,6)", + "fixdt(1,16,6)", "off", "inf" ], @@ -1262,7 +1182,7 @@ "IconDisplay" ], "values":[ - "b_enaFOC", + "b_enaAdvCtrl", "local", "Tag" ], @@ -1282,21 +1202,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8411", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8404", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_posHighRes", - "local", + "z_counterRaw", "Tag" ], "tabs":[ @@ -1310,7 +1228,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8400", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", "masktype":"" } }, @@ -1346,11 +1295,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8400", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8398", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From12", + "label":"From12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1358,7 +1307,38 @@ "IconDisplay" ], "values":[ - "a_elecAngle", + "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_enaAdvCtrl", "Tag" ], "tabs":[ @@ -1430,42 +1410,11 @@ } }, { - "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:8396", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8395", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1473,7 +1422,7 @@ "IconDisplay" ], "values":[ - "b_enaFOC", + "z_posHighRes", "Tag" ], "tabs":[ @@ -1492,11 +1441,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8393", + "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,51 +1498,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8392", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8403", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", + "name":"From6", + "label":"From6", "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", - "[]", - "[]", - "fixdt(1,16,14)", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "z_counter", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1601,80 +1524,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8410", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_posLowRes", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:8389", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8421", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"b_enaFOC", - "label":"b_enaFOC", + "name":"a_elecAngle", + "label":"a_elecAngle", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1690,14 +1549,20 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "5", + "1", "Port number", "[]", "[]", @@ -1709,10 +1574,17 @@ "-1", "auto", "off", - "", - "on", "off", + "0", + "off", + "reset", "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -1732,30 +1604,56 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8397", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8393", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"Divide2", + "label":"Divide2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "b_enaFOC", - "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" @@ -1763,16 +1661,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8394", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8392", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide3", - "label":"Divide3", + "name":"Divide1", + "label":"Divide1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1790,12 +1688,12 @@ "SampleTime" ], "values":[ - "**", + "*/", "Element-wise(.*)", "off", "[]", "[]", - "Inherit: Same as first input", + "fixdt(1,16,14)", "off", "Simplest", "off", @@ -1825,25 +1723,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8403", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9665", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"Constant1", + "label":"Constant1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "z_counter", - "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" @@ -1851,37 +1767,55 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9665", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8389", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Constant1", - "label":"Constant1", + "name":"b_enaAdvCtrl", + "label":"b_enaAdvCtrl", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "0", - "on", - "inf", + "5", + "Port number", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", @@ -1890,8 +1824,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -1900,16 +1834,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8404", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8396", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From10", + "label":"From10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1917,7 +1851,7 @@ "IconDisplay" ], "values":[ - "z_counterRaw", + "b_enaAdvCtrl", "Tag" ], "tabs":[ @@ -1935,6 +1869,72 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8410", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_posLowRes", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:8385#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.png index 04951f6..c801a16 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 f9755a1..4bf2a94 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 @@ - + @@ -372,7 +372,7 @@ - + @@ -380,7 +380,7 @@ - ufix16_En6 + sfix16_En6 @@ -585,7 +585,7 @@ - + @@ -705,7 +705,7 @@ - + @@ -1142,54 +1142,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - a_elecAngle - - - - - - - - @@ -1202,11 +1154,11 @@ - + - + a_elecAngle @@ -1221,15 +1173,15 @@ - + - + - - ufix16_En6 + + sfix16_En6 @@ -1242,7 +1194,7 @@ - + @@ -1250,155 +1202,155 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T - + - + F @@ -1416,11 +1368,11 @@ - + - + sfix16_En12 @@ -1442,35 +1394,35 @@ - + - + - + - + - + - + - + - + @@ -1488,11 +1440,11 @@ - + - + sfix16_En12 @@ -1514,19 +1466,19 @@ - + - + - + - + @@ -1552,11 +1504,11 @@ - + - + int16 @@ -1578,12 +1530,12 @@ - + - - [b_enaFOC] + + [b_enaAdvCtrl] @@ -1601,77 +1553,44 @@ - - - - - - - - - - - - - - - - [z_posHighRes] - - - - - - - - - - - - - - - - - - - + + - + - + - - [z_dir] + + [z_counterRaw] - + - - + + - - + + - - int8 + + int16 @@ -1692,11 +1611,11 @@ - + - + [a_elecAngle] @@ -1711,15 +1630,15 @@ - + - + - - ufix16_En6 + + sfix16_En6 @@ -1730,60 +1649,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + [z_dir] - - - - - - - - - - + + - - + + - - + + - - sfix16_En12 + + int8 @@ -1804,11 +1707,11 @@ - + - + [z_posLowRes] @@ -1826,11 +1729,11 @@ - + - + int8 @@ -1842,43 +1745,43 @@ - - + + - + - + - - [b_enaFOC] + + [b_enaAdvCtrl] - + - + - - + + - + boolean @@ -1890,52 +1793,60 @@ - - - + + + - - + + - + - - + + - - + + - - + + - - + + + + + + + + + + - - + + - - + + - - + + - - ufix16_En6 + + sfix16_En12 @@ -1946,69 +1857,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - + + [z_posHighRes] - - + + - + - - + + - - sfix16_En14 + + sfix16_En12 @@ -2019,29 +1905,52 @@ - - - + + + - - + + - - + + - - [z_posLowRes] + + + + + + + + + + - - + + + + + + + + + + + + + + + + + sfix16_En14 @@ -2052,44 +1961,44 @@ - - + + - + - + - - [z_posHighRes] + + [z_counter] - + - - + + - - + + - - sfix16_En12 + + int16 @@ -2100,59 +2009,44 @@ - - + + - + - + - - 5 + + 1 - + - - - - - - - - - - b_enaFOC - - - - - - - + + - - + + - - boolean + + a_elecAngle @@ -2163,44 +2057,52 @@ - - - + + + - - + + - - + + - - [b_enaFOC] + + + + + + + + + + - - + + - - + + - - + + - - boolean + + sfix16_En6 @@ -2211,51 +2113,68 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + sfix16_En14 @@ -2267,44 +2186,44 @@ - - - + + + - - + + - - + + - - [z_counter] + + 0 - - + + - - + + - - + + - - int16 + + sfix16_En12 @@ -2315,44 +2234,59 @@ - - - + + + - - + + - - + + - - 0 + + 5 - - + + + + + + + + + + + + + + + + + b_enaAdvCtrl - - + + - - + + - - sfix16_En12 + + boolean @@ -2363,44 +2297,110 @@ - - + + - + - + - - [z_counterRaw] + + [b_enaAdvCtrl] - + - - + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_posLowRes] + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - int16 + + [z_posHighRes] + + + + + + + @@ -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 eb2c4a2..58bb7db 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 @@ -505,9 +505,9 @@ "auto", "off", "off", - "0", + "[]", "off", - "reset", + "held", "off", "0", "", @@ -649,9 +649,9 @@ "auto", "off", "off", - "0", + "[]", "off", - "reset", + "held", "off", "0", "", @@ -683,151 +683,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8520", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8515", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"g_Hb", - "label":"g_Hb", + "name":"Switch1", + "label":"Switch1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Gain", - "Multiplication", + "Criteria", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "2", - "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:8524", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"t_errDequal", - "label":"t_errDequal", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", + "AllowDiffInputSizes", "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "Threshold", + "ZeroCross" ], "values":[ - "t_errDequal", - "on", - "inf", + "u2 ~= 0", + "off", "[]", "[]", "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:8517", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", + "Zero", "off", - [ - ], - "Auto" + "off", + "-1", + "0", + "on" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 1, + 9 ] }, "viewer":{ @@ -836,7 +735,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Switch", "masktype":"" } }, @@ -1002,42 +901,97 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8525", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8509", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"t_errQual", - "label":"t_errQual", + "name":"Relational Operator2", + "label":"Relational Operator2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Value", - "VectorParams1D", + "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: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", - "FramePeriod" + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" ], "values":[ - "t_errQual", - "on", - "inf", + "4", + "Element-wise(K.*u)", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: Same as input", "off", - "inf" + "Simplest", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "-1" ], "tabs":[ "Main", "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 7 + 2, + 8, + 11 ] }, "viewer":{ @@ -1046,16 +1000,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Gain", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8508", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9404", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator1", - "label":"Relational Operator1", + "name":"Relational Operator7", + "label":"Relational Operator7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1067,7 +1021,7 @@ "ZeroCross" ], "values":[ - "==", + ">", "off", "boolean", "Simplest", @@ -1096,11 +1050,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9406", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9395", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"Goto27", + "label":"Goto27", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1109,7 +1063,7 @@ "IconDisplay" ], "values":[ - "z_errCodePrev", + "VqFinPrev", "local", "Tag" ], @@ -1129,27 +1083,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9395", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8524", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", + "name":"t_errDequal", + "label":"t_errDequal", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "VqFinPrev", - "local", - "Tag" + "t_errDequal", + "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" @@ -1157,32 +1127,44 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9397", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8508", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Goto22", - "label":"Goto22", + "name":"Relational Operator1", + "label":"Relational Operator1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "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" @@ -1190,16 +1172,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8500", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9397", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Goto22", + "label":"Goto22", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1208,7 +1190,7 @@ "IconDisplay" ], "values":[ - "z_errCodeRaw", + "b_motStdStill", "local", "Tag" ], @@ -1228,38 +1210,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8509", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8525", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", + "name":"t_errQual", + "label":"t_errQual", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", + "Value", + "VectorParams1D", "SampleTime", - "ZeroCross" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "~=", + "t_errQual", + "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":{ @@ -1268,32 +1254,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8503", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9405", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"r_errInpTgtThres", + "label":"r_errInpTgtThres", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "z_errCode", - "local", - "Tag" + "r_errInpTgtThres", + "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" @@ -1301,7 +1303,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", "masktype":"" } }, @@ -1337,21 +1339,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8504", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8494", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "b_errFlag", - "local", + "z_errCodeRaw", "Tag" ], "tabs":[ @@ -1365,16 +1365,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8492", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9407", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From15", + "label":"From15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1382,7 +1382,7 @@ "IconDisplay" ], "values":[ - "b_errFlag", + "z_errCodePrev", "Tag" ], "tabs":[ @@ -1401,11 +1401,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8487", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9408", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From16", + "label":"From16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1413,7 +1413,7 @@ "IconDisplay" ], "values":[ - "z_posRaw", + "z_errCodePrev", "Tag" ], "tabs":[ @@ -1432,11 +1432,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9407", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8487", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1444,7 +1444,7 @@ "IconDisplay" ], "values":[ - "z_errCodePrev", + "z_posRaw", "Tag" ], "tabs":[ @@ -1560,11 +1560,58 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9402", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8484", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion3", + "label":"Data Type Conversion3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "uint8", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9400", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1572,7 +1619,7 @@ "IconDisplay" ], "values":[ - "VqFinPrev", + "b_motStdStill", "Tag" ], "tabs":[ @@ -1591,41 +1638,39 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8480", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM2", - "label":"CTRL_COMM2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8483", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "0", - "on", - "inf", "[]", "[]", - "Inherit: Inherit via back propagation", + "uint8", "off", - "inf" + "Real World Value (RWV)", + "Floor", + "off", + "-1" ], "tabs":[ - "Main", - "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 3, 7 ] }, @@ -1635,48 +1680,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8479", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8503", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"CTRL_COMM1", - "label":"CTRL_COMM1", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "7", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "z_errCode", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1684,46 +1713,110 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8478", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8504", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"CTRL_COMM", - "label":"CTRL_COMM", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_errFlag", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8500", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_errCodeRaw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8482", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion", + "label":"Data Type Conversion", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "0", - "on", - "inf", "[]", "[]", - "Inherit: Inherit via back propagation", + "uint8", "off", - "inf" + "Real World Value (RWV)", + "Floor", + "off", + "-1" ], "tabs":[ - "Main", - "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 3, 7 ] }, @@ -1733,57 +1826,109 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8521", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8492", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"g_Hb1", - "label":"g_Hb1", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Gain", - "Multiplication", + "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: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:8479", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM1", + "label":"CTRL_COMM1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" + "FramePeriod" ], "values":[ - "4", - "Element-wise(K.*u)", + "7", + "on", + "inf", "[]", "[]", - "Inherit: Same as input", - "off", - "Simplest", + "Inherit: Inherit via back propagation", "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "-1" + "inf" ], "tabs":[ "Main", "Signal Attributes", - "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 8, - 11 + 3, + 7 ] }, "viewer":{ @@ -1792,7 +1937,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", + "blocktype":"Constant", "masktype":"" } }, @@ -1894,11 +2039,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9412", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8478", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"CTRL_COMM4", - "label":"CTRL_COMM4", + "name":"CTRL_COMM", + "label":"CTRL_COMM", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -1912,7 +2057,7 @@ "FramePeriod" ], "values":[ - "1", + "0", "on", "inf", "[]", @@ -1943,148 +2088,21 @@ } }, { - "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:9404", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator7", - "label":"Relational Operator7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - ">", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8484", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion3", - "label":"Data Type Conversion3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "uint8", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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":[ @@ -2098,87 +2116,58 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8515", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8520", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", + "name":"g_Hb", + "label":"g_Hb", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Criteria", - "InputSameDT", + "Gain", + "Multiplication", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" ], "values":[ - "u2 ~= 0", - "off", + "2", + "Element-wise(K.*u)", "[]", "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", + "Inherit: Same as input", "off", + "Simplest", "off", - "-1", - "0", - "on" + "[]", + "[]", + "Inherit: Inherit via internal rule", + "-1" ], "tabs":[ "Main", "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9400", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_motStdStill", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 + 2, + 8, + 11 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2186,7 +2175,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Gain", "masktype":"" } }, @@ -2238,25 +2227,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8474", - "className":"Simulink.ActionPort", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9412", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"CTRL_COMM4", + "label":"CTRL_COMM4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "reset", - "Only when execution is resumed" + "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" @@ -2264,16 +2271,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9394", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9396", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"VqFinPrev", - "label":"VqFinPrev", + "name":"b_motStdStill", + "label":"b_motStdStill", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -2296,7 +2303,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -2336,25 +2343,61 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8494", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9394", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"VqFinPrev", + "label":"VqFinPrev", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "z_errCodeRaw", - "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" @@ -2362,7 +2405,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Inport", "masktype":"" } }, @@ -2398,60 +2441,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9396", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8517", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"b_motStdStill", - "label":"b_motStdStill", + "name":"UnitDelay", + "label":"UnitDelay", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "InitialCondition", + "InputProcessing", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", + "0", + "Inherited", "-1", - "auto", - "off", "", - "on", - "off", + "", "off", - "off" + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 3, + 4 ] }, "viewer":{ @@ -2460,16 +2486,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"UnitDelay", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9405", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8480", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"r_errInpTgtThres", - "label":"r_errInpTgtThres", + "name":"CTRL_COMM2", + "label":"CTRL_COMM2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -2483,7 +2509,7 @@ "FramePeriod" ], "values":[ - "r_errInpTgtThres", + "0", "on", "inf", "[]", @@ -2514,40 +2540,30 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8483", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9410", + "className":"Simulink.SFunction", "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", + "name":"Bitwise Operator1", + "label":"Bitwise Operator1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "logicop", + "UseBitMask", + "NumInputPorts", + "BitMask", + "BitMaskRealWorld" ], "values":[ - "[]", - "[]", - "uint8", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" + "AND", + "on", + "1", + "bin2dec('100')", + "Stored Integer" ], "tabs":[ - "Parameter Attributes", - "-Other" ], "tabs_idx":[ - 0, - 7 ] }, "viewer":{ @@ -2556,46 +2572,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" + "blocktype":"S-Function", + "masktype":"Bitwise Operator" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8482", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8474", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"Data Type Conversion", - "label":"Data Type Conversion", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "[]", - "[]", - "uint8", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" + "held", + "Only when execution is resumed" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2603,7 +2603,7 @@ "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_8469_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.png index e0edd0d..baeb30c 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 47a5e39..204753c 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8469_d.svg @@ -1,10 +1,10 @@ - + - + @@ -14,7 +14,7 @@ - + @@ -22,7 +22,7 @@ - + Error 004: Motor NOT able to spin. @@ -31,7 +31,7 @@ - + Possible causes: @@ -39,7 +39,7 @@ - + - motor phase disconnected @@ -47,7 +47,7 @@ - + - MOSFET defective @@ -55,7 +55,7 @@ - + - Operational Amplifier defective @@ -63,7 +63,7 @@ - + - motor blocked @@ -74,15 +74,15 @@ - + - + - + Error Reporting @@ -93,15 +93,15 @@ - + - + - + Error Detection @@ -112,15 +112,15 @@ - + - + - + Error Qualification @@ -131,7 +131,7 @@ - + @@ -139,7 +139,7 @@ - + Error 002: Hall sensor short circuit @@ -151,7 +151,7 @@ - + @@ -159,7 +159,7 @@ - + Error 001: Hall sensor not connected @@ -171,7 +171,7 @@ - + @@ -179,7 +179,7 @@ - + This switch makes sure that once this error is SET, @@ -187,7 +187,7 @@ - + it can only be erased by a board restart cycle. @@ -198,7 +198,7 @@ - + @@ -206,7 +206,7 @@ - + If the Voltage applied to the motor is @@ -214,7 +214,7 @@ - + above a threshold but the motor does @@ -222,7 +222,7 @@ - + NOT spin, then there is an error. @@ -233,10 +233,10 @@ - + - + @@ -246,44 +246,44 @@ - + 1 - + - + - + - + z_posRaw - + - + - + uint8 @@ -296,10 +296,10 @@ - + - + @@ -309,29 +309,29 @@ - + 1 - + - + - + - + z_errCode @@ -344,27 +344,27 @@ - + - + - + - + [z_posRaw] - + @@ -377,10 +377,10 @@ - + - + @@ -390,29 +390,29 @@ - + [z_errCode] - + - + - + - + uint8 @@ -425,10 +425,10 @@ - + - + @@ -438,29 +438,29 @@ - + 2 - + - + - + - + b_errFlag @@ -472,186 +472,187 @@ - - - + + + - - + + - + - - 2 - - - - - - - - - - - - - - + + - + - - uint8 + + - - - - - - - - - - - - - - - - - - - - + + - - t_errDequal + + - - - - - - - - - - - - - + + + + + + + - + - - uint16 + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + - - + + - + - - + + - - - - - - - - - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - Ini=0 + + T + + + + + + + + F + + + + + + + - + - - + + - + uint8 @@ -664,178 +665,178 @@ - - + + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - + ~= 0 - + - + - - + + - + boolean @@ -848,82 +849,82 @@ - + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - + - - + + - + uint8 @@ -936,36 +937,36 @@ - + - + - + - + - + - + - + - + @@ -980,22 +981,22 @@ - + - + - - + + - + boolean @@ -1007,44 +1008,60 @@ - - - + + + - - + + - + - - + + - - t_errQual + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - uint16 + + boolean @@ -1055,38 +1072,78 @@ - - - + + + - - + + - + - - + + - - + + 4 - - - + + + + + + + + + + + + + + + + + - - + + uint8 + + + + + + + + + + + + + + + + + + - - + + - - + + + + + + + + + + @@ -1100,22 +1157,22 @@ - + - + - - + + - + boolean @@ -1127,28 +1184,28 @@ - - + + - + - + - - [z_errCodePrev] + + [VqFinPrev] - + @@ -1160,29 +1217,44 @@ - - - + + + - - + + - - + + - - [VqFinPrev] + + t_errDequal - - + + + + + + + + + + + + + + + + + uint16 @@ -1193,29 +1265,68 @@ - - - + + + - - + + - + - - + + - - [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + boolean @@ -1226,28 +1337,28 @@ - - + + - + - + - - [z_errCodeRaw] + + [b_motStdStill] - + @@ -1259,60 +1370,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + t_errQual - - - - - - - - - - + + - - + + - - + + - - boolean + + uint16 @@ -1323,29 +1418,59 @@ - - - + + + - - + + - - + + - - [z_errCode] + + r_errInpTgtThres - - + + + + + + + + + + + + + + + + + r_errInpTgtThres + + + + + + + + + + + + + + + sfix16_En4 @@ -1357,42 +1482,42 @@ - + - + - + - + [z_errCodeRaw] - + - + - - + + - + uint8 @@ -1404,29 +1529,44 @@ - - - + + + - - + + - - + + - - [b_errFlag] + + [z_errCodeRaw] - - + + + + + + + + + + + + + + + + + uint8 @@ -1437,44 +1577,44 @@ - - + + - + - + - - [b_errFlag] + + [z_errCodePrev] - + - - + + - - + + - - boolean + + uint8 @@ -1485,43 +1625,43 @@ - - + + - + - - + + - - [z_posRaw] + + [z_errCodePrev] - + - + - - + + - + uint8 @@ -1533,43 +1673,43 @@ - - + + - + - + - - [z_errCodePrev] + + [z_posRaw] - + - + - - + + - + uint8 @@ -1582,304 +1722,319 @@ - + - + - + - + u - + - + tAcv - + - + tDeacv - + - + y - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - + - + - - + + - + Debounce_Filter + + + + + + + + + + + boolean + + + + - + - + - + - + - + - + @@ -1887,17 +2042,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - boolean + + uint8 @@ -1908,44 +2112,44 @@ - - + + - + - - + + - - [VqFinPrev] + + [b_motStdStill] - + - - + + - - + + - - int16 + + boolean @@ -1956,43 +2160,59 @@ - - - + + + - - + + - + - - + + - - 0 + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + uint8 @@ -2004,44 +2224,29 @@ - - - + + + - - + + - - + + - - 7 + + [z_errCode] - - - - - - - - - - - - - - - - - uint8 + + @@ -2052,44 +2257,62 @@ - - - + + + - - + + - - + + - - 0 + + [b_errFlag] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - uint8 + + [z_errCodeRaw] + + + + + + + @@ -2100,43 +2323,59 @@ - - - + + + - - + + - + - - + + - - 4 + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + uint8 @@ -2148,147 +2387,43 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + [b_errFlag] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - + + - + boolean @@ -2300,44 +2435,44 @@ - - - + + + - - + + - - + + - - 1 + + [VqFinPrev] - - + + - - + + - - + + - - boolean + + sfix16_En4 @@ -2348,59 +2483,43 @@ - - - + + + - - + + - - - - - - Bitwise - - - - - - - - AND - - - - + + - - 0x4 + + 7 - - + + - + - - + + - + uint8 @@ -2412,172 +2531,148 @@ - - - + + + - - + + - + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - uint8 + + - - - - - - - - - - - - + + + + + - + - - + + - - [z_errCodePrev] + + - - - - - + + + + + + + + + + + + + + + + + + - - + + - - + + - - uint8 + + boolean @@ -2588,187 +2683,43 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - + + - - F + + 0 - - + + - + - - + + - + uint8 @@ -2780,44 +2731,77 @@ - - - + + + - - + + - - + + - - [b_motStdStill] + + [z_errCodePrev] - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + - - + + - - + + - - boolean + + uint8 @@ -2829,44 +2813,44 @@ - - + + - + - + - + - + - + - + - + - + - + @@ -2881,23 +2865,23 @@ - + - - + + - - + + - - int16 + + sfix16_En4 @@ -2908,44 +2892,44 @@ - - - + + + - - + + - - + + - - if { } + + 1 - - + + - - - + + + - - + + - - Action Port + + boolean @@ -2956,59 +2940,59 @@ - - + + - + - + - - 3 + + 2 - + - - + + - - + + - - VqFinPrev + + b_motStdStill - - + + - - + + - - int16 + + boolean @@ -3019,44 +3003,59 @@ - - - + + + - - + + - - + + - - [z_errCodeRaw] + + 3 - - + + + + + + + + + + + + + + + + + VqFinPrev - - + + - - + + - - uint8 + + sfix16_En4 @@ -3068,42 +3067,42 @@ - + - + - + - + [b_errFlag] - + - + - - + + - + boolean @@ -3115,59 +3114,91 @@ - - - + + + - - + + - + - - + + - - 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - + + + - - + + - - b_motStdStill + + Ini=0 - - + + - - + + - - boolean + + uint8 @@ -3178,59 +3209,44 @@ - - - + + + - - + + - - + + - - r_errInpTgtThres + + 0 - - - - - - - - - - - - - - - - - r_errInpTgtThres + + - + - - + + - - int16 + + uint8 @@ -3241,59 +3257,59 @@ - - - + + + - - + + - + - - + + - - + + Bitwise - - + + - - + + AND + + + + + + + + 0x4 - - - - - - - - - - + + - + - - + + - + uint8 @@ -3305,60 +3321,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + if { } - - - - - - - - - - + + - - - + + + - + - - uint8 + + Action Port @@ -3370,10 +3370,10 @@ - + - + @@ -3383,7 +3383,7 @@ - + @@ -3391,7 +3391,7 @@ - + @@ -3402,7 +3402,7 @@ - + @@ -3413,15 +3413,15 @@ - + - + - + boolean @@ -3434,11 +3434,11 @@ - + - + @@ -3448,11 +3448,11 @@ - + - + @@ -3462,11 +3462,11 @@ - + - + @@ -3476,11 +3476,11 @@ - + - + @@ -3490,11 +3490,11 @@ - + - + @@ -3504,11 +3504,11 @@ - + - + @@ -3519,31 +3519,31 @@ - + - + - + - + - + - + @@ -3552,11 +3552,11 @@ - + - + @@ -3566,11 +3566,11 @@ - + - + @@ -3580,11 +3580,11 @@ - + - + @@ -3594,11 +3594,11 @@ - + - + @@ -3608,11 +3608,11 @@ - + - + @@ -3622,11 +3622,11 @@ - + - + @@ -3636,11 +3636,11 @@ - + - + @@ -3651,31 +3651,31 @@ - + - + - + - + - + - + @@ -3684,11 +3684,11 @@ - + - + @@ -3698,11 +3698,11 @@ - + - + @@ -3712,11 +3712,11 @@ - + - + @@ -3726,11 +3726,11 @@ - + - + @@ -3740,11 +3740,11 @@ - + - + @@ -3754,11 +3754,11 @@ - + - + @@ -3768,11 +3768,11 @@ - + - + @@ -3782,11 +3782,11 @@ - + - + @@ -3796,11 +3796,11 @@ - + - + @@ -3810,11 +3810,11 @@ - + - + @@ -3824,11 +3824,11 @@ - + - + @@ -3838,11 +3838,11 @@ - + - + @@ -3852,11 +3852,11 @@ - + - + @@ -3866,11 +3866,11 @@ - + - + @@ -3880,11 +3880,11 @@ - + - + @@ -3894,11 +3894,11 @@ - + - + @@ -3908,11 +3908,11 @@ - + - + @@ -3922,11 +3922,11 @@ - + - + @@ -3936,11 +3936,11 @@ - + - + @@ -3950,11 +3950,11 @@ - + - + @@ -3964,11 +3964,11 @@ - + - + @@ -3978,11 +3978,11 @@ - + - + @@ -3992,11 +3992,11 @@ - + - + @@ -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 04d4c7d..3267db5 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 @@ -82,7 +82,7 @@ - + @@ -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 5c565a9..5f1d79c 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 @@ -79,6 +79,51 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2445", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator2", + "label":"Relational Operator2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + ">", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2443", "className":"Simulink.Goto", @@ -113,27 +158,51 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2442", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2446", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Switch2", + "label":"Switch2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" ], "values":[ - "yDeacv", - "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" @@ -141,16 +210,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2444", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2441", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ @@ -159,7 +228,7 @@ "IconDisplay" ], "values":[ - "b_cntRst", + "tDeacv", "local", "Tag" ], @@ -179,11 +248,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2440", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2439", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ @@ -191,7 +260,7 @@ "IconDisplay" ], "values":[ - "b_cntRst", + "tDeacv", "Tag" ], "tabs":[ @@ -210,11 +279,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2439", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2436", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ @@ -222,7 +291,7 @@ "IconDisplay" ], "values":[ - "tDeacv", + "yPrev", "Tag" ], "tabs":[ @@ -241,11 +310,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2437", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2440", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ @@ -253,7 +322,7 @@ "IconDisplay" ], "values":[ - "tDeacv", + "b_cntRst", "Tag" ], "tabs":[ @@ -272,19 +341,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2438", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"Counter", + "label":"Counter", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "z_cntInit" + ], + "values":[ + "0" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2444", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "yDeacv", + "b_cntRst", + "local", "Tag" ], "tabs":[ @@ -298,48 +398,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2433", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2442", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Constant1", - "label":"Constant1", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "yDeacv", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -347,7 +431,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, @@ -450,40 +534,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Counter", - "label":"Counter", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "z_cntInit" - ], - "values":[ - "0" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2436", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2437", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From10", + "label":"From10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ @@ -491,7 +546,7 @@ "IconDisplay" ], "values":[ - "yPrev", + "tDeacv", "Tag" ], "tabs":[ @@ -510,11 +565,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2434", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2433", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Constant6", - "label":"Constant6", + "name":"Constant1", + "label":"Constant1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ @@ -528,12 +583,12 @@ "FramePeriod" ], "values":[ - "1", + "0", "on", "inf", "[]", "[]", - "uint16", + "Inherit: Inherit via back propagation", "off", "inf" ], @@ -559,11 +614,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2430", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2438", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "yDeacv", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2429", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_cntRst", - "label":"b_cntRst", + "name":"tDeacv", + "label":"tDeacv", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ @@ -586,7 +672,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -626,44 +712,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2441", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", - "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:2429", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2430", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"tDeacv", - "label":"tDeacv", + "name":"b_cntRst", + "label":"b_cntRst", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ @@ -686,7 +739,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -726,40 +779,32 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2446", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2434", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", + "name":"Constant6", + "label":"Constant6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ - "Criteria", - "InputSameDT", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" + "FramePeriod" ], "values":[ - "u2 ~= 0", - "off", + "1", + "on", + "inf", "[]", "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", + "uint16", "off", - "-1", - "0", - "on" + "inf" ], "tabs":[ "Main", @@ -768,53 +813,8 @@ ], "tabs_idx":[ 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2445", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - ">", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 + 3, + 7 ] }, "viewer":{ @@ -823,7 +823,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Constant", "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 8171947..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 874edcf..481cc3a 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 @@ -61,62 +61,60 @@ - - - + + + - - + + - + - + - - [yPrev] + + + + + + + + + + - - - - + - - - - - - - - - - - - + + - - - - - - - - [yDeacv] + + + - - - + + + + + + + + + + + boolean @@ -127,28 +125,28 @@ - - + + - + - + - - [b_cntRst] + + [yPrev] - + @@ -160,140 +158,188 @@ - - - + + + - - + + - - + + - - [b_cntRst] + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - [tDeacv] + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - uint16 + + - - - - - - - - - - - - - - - - - - - - + + - - [tDeacv] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - + + - - + + - - + + - - uint16 + + boolean @@ -304,44 +350,29 @@ - - - + + + - - + + - - + + - - [yDeacv] + + [tDeacv] - - - - - - - - - - - - - - - - - boolean + + @@ -352,44 +383,44 @@ - - - + + + - - + + - - + + - - 0 + + [tDeacv] - - + + - - + + - - + + - - boolean + + uint16 @@ -400,44 +431,44 @@ - - - + + + - - + + - - + + - - elseif { } + + [yPrev] - - + + - - - + + + - - + + - - Action Port + + boolean @@ -448,58 +479,43 @@ - - - + + + - - + + - - + + - - 3 - - - - - - - + + [b_cntRst] - - - - - - - - - - - yPrev + + + - + - - + + - + boolean @@ -521,155 +537,155 @@ - + - + inc - + - + max - + - + rst - + - + cnt - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -687,11 +703,11 @@ - + - + Counter @@ -702,11 +718,11 @@ - + - + uint16 @@ -714,29 +730,29 @@ - + - + - + - + - + - + @@ -750,44 +766,62 @@ - - - + + + - - + + - - + + - - [yPrev] + + [b_cntRst] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - boolean + + [yDeacv] + + + + + + + @@ -798,44 +832,44 @@ - - - + + + - - + + - - + + - - 1 + + elseif { } - - + + - - - + + + - - + + - - uint16 + + Action Port @@ -846,58 +880,154 @@ - - + + - + - + - - 2 + + 3 - + - - - - - - - - - - - b_cntRst + + + + + + + + + + + yPrev + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [tDeacv] + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + - + - - + + - + boolean @@ -909,29 +1039,44 @@ - - - + + + - - + + - - + + - - [tDeacv] + + [yDeacv] - - + + + + + + + + + + + + + + + + + boolean @@ -952,11 +1097,11 @@ - + - + 1 @@ -974,11 +1119,11 @@ - + - + tDeacv @@ -989,11 +1134,11 @@ - + - + uint16 @@ -1005,187 +1150,58 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + 2 - - - - - - - + + + + + + - - - - - - - T + + + + + + - - + + - - F - - - - - - - + + b_cntRst - + - - + + - + boolean @@ -1197,60 +1213,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 1 - - - - - - - - - - + + - - + + - + - - boolean + + 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 6bcd55e..3fa6b2b 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 @@ -486,32 +486,32 @@ - - - + + + - + - - Ini=initVal + + uint16 - - - + + + - + - - uint16 + + Ini=initVal @@ -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 bc49ee9..165cec5 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 @@ -162,11 +162,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2413", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2414", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"max", - "label":"max", + "name":"rst", + "label":"rst", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", "inspector":{ "params":[ @@ -189,7 +189,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -229,11 +229,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2414", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2413", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"rst", - "label":"rst", + "name":"max", + "label":"max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", "inspector":{ "params":[ @@ -256,7 +256,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -296,50 +296,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2412", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2416", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"inc", - "label":"inc", + "name":"Sum1", + "label":"Sum1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", "inspector":{ "params":[ - "Port", - "IconDisplay", + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "1", - "Port number", + "round", + "|++", + "on", + "Inherit: Same as first input", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", + "Inherit: Same as first input", "off", + "Simplest", "off", - "off" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -349,7 +341,7 @@ "tabs_idx":[ 0, 2, - 11 + 10 ] }, "viewer":{ @@ -358,47 +350,55 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2416", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2412", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", + "name":"inc", + "label":"inc", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", "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":[ - "round", - "|++", - "on", - "Inherit: Same as first input", + "1", + "Port number", "[]", "[]", - "Inherit: Same as first input", + "Inherit: auto", "off", - "Simplest", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", - "1", - "All dimensions", - "-1" + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", @@ -408,7 +408,7 @@ "tabs_idx":[ 0, 2, - 10 + 11 ] }, "viewer":{ @@ -417,7 +417,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Inport", "masktype":"" } }, 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 e104655..3cd3878 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 @@ -63,7 +63,7 @@ - + @@ -128,32 +128,32 @@ - - - + + + - + - - Ini=z_cntInit + + uint16 - - - + + + - + - - uint16 + + Ini=z_cntInit @@ -198,7 +198,7 @@ - + @@ -258,69 +258,6 @@ - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - max - - - - - - - - - - - - - - - uint16 - - - - - - - - @@ -333,11 +270,11 @@ - + - + 3 @@ -355,11 +292,11 @@ - + - + rst @@ -370,11 +307,11 @@ - + - + boolean @@ -386,58 +323,58 @@ - - + + - + - + - - 1 + + 2 - + - - + + - - + + - - inc + + max - + - - + + - + uint16 @@ -459,35 +396,35 @@ - + - + - + - + - + - + - + - + @@ -505,11 +442,74 @@ - + - + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + inc + + + + + + + + + + + + + + uint16 @@ -625,5 +625,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2473_d.json index bbbf0f8..14c0834 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,95 +1,26 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2491", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2490", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2489", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - ">", - "off", - "boolean", - "Simplest", - "-1", - "on" + "b_cntRst", + "local", + "Tag" ], "tabs":[ - "Main", - "Data Type", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 1, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -97,16 +28,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2489", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2486", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -115,7 +46,7 @@ "IconDisplay" ], "values":[ - "b_cntRst", + "tAcv", "local", "Tag" ], @@ -135,21 +66,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2487", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2485", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "yAcv", - "local", + "b_cntRst", "Tag" ], "tabs":[ @@ -163,7 +92,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -248,11 +177,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2485", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2482", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"From10", + "label":"From10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -260,7 +189,7 @@ "IconDisplay" ], "values":[ - "b_cntRst", + "tAcv", "Tag" ], "tabs":[ @@ -279,19 +208,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2484", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2487", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "tAcv", + "yAcv", + "local", "Tag" ], "tabs":[ @@ -305,7 +236,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -339,58 +270,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2486", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "tAcv", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2482", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2479", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"Constant6", + "label":"Constant6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "tAcv", - "Tag" + "1", + "on", + "inf", + "[]", + "[]", + "uint16", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -398,16 +314,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2479", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2478", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Constant6", - "label":"Constant6", + "name":"Constant1", + "label":"Constant1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -426,7 +342,7 @@ "inf", "[]", "[]", - "uint16", + "Inherit: Inherit via back propagation", "off", "inf" ], @@ -452,20 +368,20 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2483", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2477", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "yAcv", - "Tag" + "held", + "Only when execution is resumed" ], "tabs":[ "Parameter Attributes" @@ -478,47 +394,43 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"ActionPort", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2478", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2490", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Constant1", - "label":"Constant1", + "name":"Relational Operator2", + "label":"Relational Operator2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", + "Operator", + "InputSameDT", "OutDataTypeStr", - "LockScale", - "FramePeriod" + "RndMeth", + "SampleTime", + "ZeroCross" ], "values":[ - "1", - "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":{ @@ -527,25 +439,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"RelationalOperator", "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" @@ -558,7 +470,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2483", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "yAcv", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", "masktype":"" } }, @@ -729,37 +672,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2481", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "yPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2474", "className":"Simulink.Inport", @@ -827,6 +739,94 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2491", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2484", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "tAcv", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480#out:1", "className":"Simulink.Line", 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 57009d5..3066c59 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 3cf3ab4..1c44b47 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 @@ -13,188 +13,29 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - + - - F + + [b_cntRst] - - - - - - - - - - - - - - - - - boolean + + @@ -205,60 +46,29 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + [tAcv] - - - - - - - - - - - - - - - - - - - - - - - - - boolean + + @@ -269,62 +79,44 @@ - - - + + + - - + + - - + + - + [b_cntRst] - - + + - - - - - - - - - - - - - - - + + + + - - + + - - [yAcv] - - - - - - - + + boolean @@ -345,11 +137,11 @@ - + - + 1 @@ -367,11 +159,11 @@ - + - + yAcv @@ -383,44 +175,44 @@ - - + + - + - + - - [b_cntRst] + + [tAcv] - + - - + + - - + + - - boolean + + uint16 @@ -431,44 +223,29 @@ - - - + + + - - + + - - + + - - [tAcv] + + [yAcv] - - - - - - - - - - - - - - - - - uint16 + + @@ -489,155 +266,155 @@ - + - + inc - + - + max - + - + rst - + - + cnt - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -655,11 +432,11 @@ - + - + Counter @@ -670,11 +447,11 @@ - + - + uint16 @@ -682,29 +459,29 @@ - + - + - + - + - + - + @@ -718,29 +495,44 @@ - - - + + + - - + + - - + + - - [tAcv] + + 1 - - + + + + + + + + + + + + + + + + + uint16 @@ -751,44 +543,44 @@ - - - + + + - - + + - - + + - - [tAcv] + + 1 - - + + - - + + - - + + - - uint16 + + boolean @@ -799,44 +591,44 @@ - - - + + + - - + + - - + + - - 1 + + if { } - - + + - - - + + + - - + + - - uint16 + + Action Port @@ -847,43 +639,59 @@ - - - + + + - - + + - + - - + + - - [yAcv] + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + boolean @@ -895,43 +703,43 @@ - - - + + + - - + + - - + + - - 1 + + [yPrev] - - + + - + - - + + - + boolean @@ -943,44 +751,44 @@ - - - + + + - - + + - - + + - - if { } + + [yAcv] - - + + - - - + + + - - + + - - Action Port + + boolean @@ -1001,11 +809,11 @@ - + - + 3 @@ -1023,11 +831,11 @@ - + - + b_errPrev @@ -1038,11 +846,11 @@ - + - + boolean @@ -1064,11 +872,11 @@ - + - + [yPrev] @@ -1097,11 +905,11 @@ - + - + 2 @@ -1119,11 +927,11 @@ - + - + b_cntRst @@ -1134,11 +942,11 @@ - + - + boolean @@ -1150,44 +958,59 @@ - - - + + + - - + + - - + + - - [yPrev] + + 1 - - + + + + + + + + + + + + + + + + + tAcv - - + + - - + + - - boolean + + uint16 @@ -1198,58 +1021,235 @@ - - - + + + - - + + - - + + - - 1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - + + - - - + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + - + - - tAcv + + [tAcv] + + + + + + + - + - + - + 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 6579510..4c89dbd 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 @@ -15,7 +15,7 @@ - + @@ -486,32 +486,32 @@ - - - + + + - + - - uint16 + + Ini=initVal - - - + + + - + - - Ini=initVal + + uint16 @@ -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 94c8001..6d8a137 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 @@ -79,35 +79,6 @@ "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":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2416", "className":"Simulink.Sum", @@ -354,6 +325,35 @@ "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":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2412", "className":"Simulink.Inport", 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 a05ddf1..2f35a6e 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 @@ -59,141 +59,6 @@ - - - - - - - - - - - - - - - - - - u - - - - - - - - rst - - - - - - - - y - - - - - - - - 1 - - - - - - - - z - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=z_cntInit - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -206,35 +71,35 @@ - + - + - + - + - + - + - + - + @@ -252,11 +117,11 @@ - + - + uint16 @@ -270,7 +135,7 @@ - + @@ -278,19 +143,19 @@ - + - + - + - + @@ -316,11 +181,11 @@ - + - + uint16 @@ -342,11 +207,11 @@ - + - + 3 @@ -364,11 +229,11 @@ - + - + rst @@ -379,11 +244,11 @@ - + - + boolean @@ -405,11 +270,11 @@ - + - + 2 @@ -427,11 +292,11 @@ - + - + max @@ -442,16 +307,151 @@ - + - + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + rst + + + + + + + + y + + + + + + + + 1 + + + + + + + + z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=z_cntInit + + + + + + + + + + + + + + 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 ad07da2..3315e8b 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 @@ -158,7 +158,7 @@ - + @@ -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 d44b457..0fb295a 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,139 +1,72 @@ [ { - "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:2496", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"y", + "label":"y", "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" + "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", - "on", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", - "", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", - "", "off", + "[]", "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", + "held", "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:8486:2509", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ "0", - "Inherited", - "-1", - "", "", - "off", [ ], - "Auto" + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 2, + 11 ] }, "viewer":{ @@ -142,16 +75,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Qualification", - "label":"Qualification", + "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":[ @@ -194,7 +127,7 @@ "ReadWrite", "", "All", - "off", + "on", "on", "", "", @@ -240,186 +173,47 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "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: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:2465", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "tAcv", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" + "masktype":"Either edge detection" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2496", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2509", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"y", - "label":"y", + "name":"UnitDelay", + "label":"UnitDelay", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "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" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ "0", + "Inherited", + "-1", + "", "", + "off", [ ], - "Dialog", - "Auto", - "off" + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 3, + 4 ] }, "viewer":{ @@ -428,32 +222,42 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"UnitDelay", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2464", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2467", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"If2", + "label":"If2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" ], "values":[ - "yPrev", - "local", - "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" @@ -461,16 +265,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2462", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2465", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -479,7 +283,7 @@ "IconDisplay" ], "values":[ - "y", + "tAcv", "local", "Tag" ], @@ -499,11 +303,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2461", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2463", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -512,7 +316,7 @@ "IconDisplay" ], "values":[ - "b_cntRst", + "u", "local", "Tag" ], @@ -532,19 +336,21 @@ } }, { - "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":[ @@ -558,7 +364,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -594,19 +400,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2458", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2464", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "yPrev", + "local", "Tag" ], "tabs":[ @@ -620,55 +428,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2472", - "className":"Simulink.Merge", - "icon":"WebViewIcon3", - "name":"Merge", - "label":"Merge", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "Inputs", - "InitialOutput", - "AllowUnequalInputPortWidths", - "InputPortOffsets" - ], - "values":[ - "3", - "[]", - "off", - "[]" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Merge", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2456", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2452", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From12", + "label":"From12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -676,7 +445,7 @@ "IconDisplay" ], "values":[ - "u", + "tDeacv", "Tag" ], "tabs":[ @@ -695,11 +464,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2455", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2458", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -757,11 +526,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":[ @@ -769,7 +538,7 @@ "IconDisplay" ], "values":[ - "u", + "yPrev", "Tag" ], "tabs":[ @@ -788,11 +557,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2451", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2449", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -800,7 +569,7 @@ "IconDisplay" ], "values":[ - "yPrev", + "tAcv", "Tag" ], "tabs":[ @@ -819,19 +588,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2450", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2466", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_cntRst", + "tDeacv", + "local", "Tag" ], "tabs":[ @@ -845,7 +616,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -881,21 +652,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2463", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2456", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "u", - "local", "Tag" ], "tabs":[ @@ -909,47 +678,113 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2449", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Dequalification", + "label":"Dequalification", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "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":[ - "tAcv", - "Tag" + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" ], "tabs":[ - "Parameter Attributes" + "Main", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 6 + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2423", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Default", - "label":"Default", + "name":"Qualification", + "label":"Qualification", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -1042,11 +877,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2452", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2457", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -1054,7 +889,7 @@ "IconDisplay" ], "values":[ - "tDeacv", + "y", "Tag" ], "tabs":[ @@ -1073,11 +908,81 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2472", + "className":"Simulink.Merge", + "icon":"WebViewIcon3", + "name":"Merge", + "label":"Merge", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets", + "Inputs" + ], + "values":[ + "[]", + "off", + "[]", + "3" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Merge", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:2423", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Dequalification", - "label":"Dequalification", + "name":"Default", + "label":"Default", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -1170,11 +1075,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2421", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2422", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"tAcv", - "label":"tAcv", + "name":"tDeacv", + "label":"tDeacv", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -1197,7 +1102,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -1237,11 +1142,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2422", + "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:2421", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"tDeacv", - "label":"tDeacv", + "name":"tAcv", + "label":"tAcv", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -1264,7 +1200,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -1303,6 +1239,68 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2453", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "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", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "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:2420", "className":"Simulink.Inport", @@ -1371,19 +1369,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2457", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2462", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "y", + "local", "Tag" ], "tabs":[ @@ -1397,16 +1397,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2469", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2468", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator2", - "label":"Logical Operator2", + "name":"Logical Operator1", + "label":"Logical Operator1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -1418,7 +1418,7 @@ "SampleTime" ], "values":[ - "AND", + "NOT", "2", "rectangular", "off", @@ -1447,11 +1447,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2468", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2471", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator1", - "label":"Logical Operator1", + "name":"Logical Operator4", + "label":"Logical Operator4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -1537,11 +1537,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2471", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2469", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator4", - "label":"Logical Operator4", + "name":"Logical Operator2", + "label":"Logical Operator2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -1553,7 +1553,7 @@ "SampleTime" ], "values":[ - "NOT", + "AND", "2", "rectangular", "off", 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 0b6fe0b..343b098 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 84568e1..061d5da 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,12 +10,60 @@ + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + - + @@ -23,83 +71,83 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -117,11 +165,11 @@ - + - + boolean @@ -129,29 +177,29 @@ - + - + - + - + - + - + @@ -175,35 +223,35 @@ - + - + - + - + - + - + - + - + @@ -224,172 +272,32 @@ - - - - - - - - - - - Ini=0 - - - - - + - + boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - tAcv + + - - - - - b_cntRst - - - - - - - - b_errPrev - - - - - - - - yAcv - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Qualification - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - + - - boolean + + Ini=0 @@ -401,12 +309,6 @@ - - - - - - @@ -416,43 +318,43 @@ - + - + u1 - + - + u2 - + - + if(u1 ~= 0) - + - + elseif(u2 ~=0) - + - + else @@ -470,11 +372,11 @@ - + - + action @@ -485,11 +387,11 @@ - + - + action @@ -500,11 +402,11 @@ - + - + action @@ -516,28 +418,28 @@ - - + + - + - + - - [tDeacv] + + [tAcv] - + @@ -549,28 +451,28 @@ - - + + - + - + - - [tAcv] + + [u] - + @@ -582,44 +484,29 @@ - - - + + + - - + + - - + + - - 1 + + [b_cntRst] - - - - - - - - - - - - - - - - - y + + @@ -630,29 +517,44 @@ - - - + + + - - + + - - + + - - [yPrev] + + [b_cntRst] - - + + + + + + + + + + + + + + + + + boolean @@ -663,28 +565,28 @@ - - + + - + - + - - [y] + + [yPrev] - + @@ -696,29 +598,44 @@ - - - + + + - - + + - - + + - - [b_cntRst] + + [tDeacv] - - + + + + + + + + + + + + + + + + + uint16 @@ -729,43 +646,43 @@ - - + + - + - + - + [yPrev] - + - + - - + + - + boolean @@ -777,43 +694,43 @@ - - + + - + - + - - [b_cntRst] + + [u] - + - + - - + + - + boolean @@ -825,43 +742,43 @@ - - + + - + - + - + [yPrev] - + - + - - + + - + boolean @@ -873,60 +790,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + [tAcv] - - - - - - - - - - + + - - + + - - + + - - boolean + + uint16 @@ -937,44 +838,29 @@ - - - + + + - - + + - - + + - - [u] + + [tDeacv] - - - - - - - - - - - - - - - - - boolean + + @@ -985,43 +871,43 @@ - - + + - + - + - + [yPrev] - + - + - - + + - + boolean @@ -1033,43 +919,43 @@ - - + + - + - + - + [u] - + - + - - + + - + boolean @@ -1081,139 +967,281 @@ - - - + + + - - + + + + + + + + - - + + - - [u] + + tDeacv + + + + + + + + b_cntRst + + + + + + + + yPrev + + + + + + + + yDeacv + + + + + + + + elseif { } - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Dequalification - + + + + + + + - - + + - + boolean + + + + + + + + + + + + + + + + + action + + + + - - - + + + + + + + + + - - + + + + + + + + - - + + - - [yPrev] + + tAcv + + + + + + + + b_cntRst + + + + + + + + b_errPrev + + + + + + + + yAcv + + + + + + + + if { } - - + + + + + + + + - - - + + + + + + + + + - - + + - - boolean + + Qualification - - - - - - - - - - - - - - - + - - - + + + + - - [b_cntRst] + + - - - - - - + + + + + + + action - + + + + + + + - - + + - + boolean @@ -1225,43 +1253,49 @@ - - + + + + + + + + - + - + - - [yPrev] + + [y] - + - + - - + + - + boolean @@ -1273,29 +1307,60 @@ - - - + + + - - + + - + - - + + - - [u] + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + boolean @@ -1306,44 +1371,44 @@ - - + + - + - + - - [tAcv] + + [yPrev] - + - - + + - - + + - - uint16 + + boolean @@ -1359,38 +1424,38 @@ - + - + - + - + yPrev - + - + yDefault - + - + else { } @@ -1398,7 +1463,7 @@ - + @@ -1411,7 +1476,7 @@ - + @@ -1420,11 +1485,11 @@ - + - + Default @@ -1432,42 +1497,42 @@ - + - - + + - - + + - - action + + boolean - + - - + + - - + + - - boolean + + action @@ -1478,189 +1543,112 @@ - + - + - - + + - - + + - - + + - - [tDeacv] + + 3 - - - - - - - - - - - - - - - - - uint16 + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - tDeacv - - - - - - - - b_cntRst - - - - - - - - yPrev - - - - - - - - yDeacv + + + - - + + - - elseif { } + + tDeacv - + + + + - - - - + + + - - + + uint16 - - - - - - - - - - + + + + + + + + + + + + + + + - + - - Dequalification + + [yPrev] - - - - - - - - - - - - - - - - - action + + + - - - - - - - + - - + + - + boolean @@ -1673,12 +1661,6 @@ - - - - - - @@ -1688,11 +1670,11 @@ - + - + 2 @@ -1710,11 +1692,11 @@ - + - + tAcv @@ -1725,11 +1707,11 @@ - + - + uint16 @@ -1741,59 +1723,92 @@ - - - + + + - - + + - - + + - - 3 + + [u] - - + + - - - + + + - - + + - - tDeacv + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cntRst] + + + + + + + - - + + - - + + - - uint16 + + boolean @@ -1814,11 +1829,11 @@ - + - + 1 @@ -1836,11 +1851,11 @@ - + - + u @@ -1851,11 +1866,11 @@ - + - + boolean @@ -1867,44 +1882,29 @@ - - - + + + - - + + - - + + - + [y] - - - - - - - - - - - - - - - - - boolean + + @@ -1915,30 +1915,30 @@ - - - + + + - - + + - + - - + + - - + + @@ -1948,23 +1948,23 @@ - + - + - + boolean - - + + @@ -1979,11 +1979,11 @@ - - + + - + @@ -1993,7 +1993,7 @@ - + @@ -2001,7 +2001,7 @@ - + @@ -2012,22 +2012,22 @@ - + - + - + boolean - + @@ -2045,7 +2045,7 @@ - + @@ -2107,30 +2107,30 @@ - - - + + + - - + + - + - - + + - - + + @@ -2140,23 +2140,23 @@ - + - + - + 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 d9cbdac..8fbcce4 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 @@ -158,7 +158,7 @@ - + @@ -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 cb6f6e5..447728f 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 @@ -46,9 +46,9 @@ "auto", "off", "off", - "0", + "[]", "off", - "reset", + "held", "off", "0", "", @@ -110,6 +110,86 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10029", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "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:8654", "className":"Simulink.UnitDelay", @@ -160,6 +240,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8651", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto9", + "label":"Goto9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "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:9423", "className":"Simulink.Goto", @@ -193,6 +306,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10024", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "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:8647", "className":"Simulink.Goto", @@ -227,11 +373,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":[ @@ -240,7 +386,7 @@ "IconDisplay" ], "values":[ - "b_toActive", + "z_ctrlModReq", "local", "Tag" ], @@ -260,11 +406,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8642", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10019", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto16", - "label":"Goto16", + "name":"Goto12", + "label":"Goto12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -273,7 +419,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModPrev", + "VqFinPrev", "local", "Tag" ], @@ -293,19 +439,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8633", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8640", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_motEna", + "b_toOpen", + "local", "Tag" ], "tabs":[ @@ -319,7 +467,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -357,11 +505,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8632", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10017", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -369,7 +517,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModPrev", + "z_ctrlMod", "Tag" ], "tabs":[ @@ -388,11 +536,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8630", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8633", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -400,7 +548,7 @@ "IconDisplay" ], "values":[ - "b_toSpdMod", + "b_motEna", "Tag" ], "tabs":[ @@ -419,11 +567,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":[ @@ -431,7 +579,7 @@ "IconDisplay" ], "values":[ - "b_errFlag", + "z_ctrlModPrev", "Tag" ], "tabs":[ @@ -450,11 +598,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8646", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10028", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From24", + "label":"From24", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "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:8643", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -463,7 +642,7 @@ "IconDisplay" ], "values":[ - "b_toSpdMod", + "b_toActive", "local", "Tag" ], @@ -483,11 +662,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9424", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9996", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From23", + "label":"From23", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -495,7 +674,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "r_inpTgt", "Tag" ], "tabs":[ @@ -514,11 +693,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8625", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8630", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -526,7 +705,7 @@ "IconDisplay" ], "values":[ - "b_toOpen", + "b_toSpdMod", "Tag" ], "tabs":[ @@ -545,19 +724,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8624", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10023", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_toActive", + "r_inpTgt", + "local", "Tag" ], "tabs":[ @@ -571,16 +752,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8636", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9424", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From10", + "label":"From10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -588,7 +769,7 @@ "IconDisplay" ], "values":[ - "b_toTrqMod", + "b_motStdStill", "Tag" ], "tabs":[ @@ -607,11 +788,137 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon6", - "name":"F03_02_Control_Mode_Manager", - "label":"F03_02_Control_Mode_Manager", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9997", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto19", + "label":"Goto19", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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: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:9995", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From21", + "label":"From21", + "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:9953", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F03_03_Input_Target_Synthesis", + "label":"F03_03_Input_Target_Synthesis", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -652,9 +959,9 @@ "values":[ "FromPortIcon", "ReadWrite", - "Stateflow.Translate.translate", - "ExplicitOnly", - "on", + "", + "All", + "off", "on", "", "", @@ -663,7 +970,7 @@ "void_void", "off", "off", - "off", + "on", "", "off", "", @@ -704,42 +1011,108 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8635", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon6", + "name":"F03_02_Control_Mode_Manager", + "label":"F03_02_Control_Mode_Manager", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "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":[ - "z_ctrlModReq", - "Tag" + "FromPortIcon", + "ReadWrite", + "Stateflow.Translate.translate", + "ExplicitOnly", + "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":[ - "Parameter Attributes" + "Main", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 6 + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8651", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8642", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"Goto16", + "label":"Goto16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -748,7 +1121,7 @@ "IconDisplay" ], "values":[ - "b_motEna", + "z_ctrlModPrev", "local", "Tag" ], @@ -865,11 +1238,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8537", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10022", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_motEna", - "label":"b_motEna", + "name":"r_inpTgt", + "label":"r_inpTgt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -892,7 +1265,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "6", "Port number", "[]", "[]", @@ -932,11 +1305,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9422", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10018", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_motStdStill", - "label":"b_motStdStill", + "name":"VqFinPrev", + "label":"VqFinPrev", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -959,7 +1332,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "7", "Port number", "[]", "[]", @@ -999,11 +1372,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8640", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8650", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ @@ -1012,7 +1385,7 @@ "IconDisplay" ], "values":[ - "b_toOpen", + "b_errFlag", "local", "Tag" ], @@ -1032,93 +1405,957 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8650", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8539", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", + "name":"z_ctrlModReq", + "label":"z_ctrlModReq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", + "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: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:10256", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10021", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlTypSel", + "label":"z_ctrlTypSel", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8537", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_motEna", + "label":"b_motEna", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9994", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From20", + "label":"From20", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "GotoTag", "IconDisplay" ], "values":[ - "b_errFlag", - "local", - "Tag" + "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:10020", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From9", + "label":"From9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "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:9422", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_motStdStill", + "label":"b_motStdStill", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8625", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "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:8536", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_errFlag", + "label":"b_errFlag", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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: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:8634#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:8537#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:8625#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:8630#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:8539#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:8636#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:8654#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" + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8536", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_errFlag", - "label":"b_errFlag", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "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" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", + "", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", "off", - "", - "on", "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":{ @@ -1126,66 +2363,50 @@ }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8539", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_ctrlModReq", - "label":"z_ctrlModReq", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8624#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "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" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", + "", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", "off", - "", - "on", "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":{ @@ -1193,46 +2414,62 @@ }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8645", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8546#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "z_ctrlModReq", - "local", - "Tag" + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8634#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8546#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1283,7 +2520,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8537#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8546#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1334,7 +2571,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8625#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8546#out:4", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1385,7 +2622,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8630#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8632#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1436,7 +2673,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8539#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8633#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1487,7 +2724,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8636#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8635#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1538,7 +2775,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8654#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8536#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1589,7 +2826,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8628#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1640,7 +2877,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8624#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9422#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1691,7 +2928,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8546#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9424#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1742,7 +2979,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8546#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9995#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1793,7 +3030,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8546#out:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9994#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1844,7 +3081,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8546#out:4", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9996#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1895,7 +3132,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8632#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9953#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1946,7 +3183,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8633#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10017#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1997,7 +3234,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8635#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10018#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2048,7 +3285,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8536#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10020#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2099,7 +3336,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8628#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10022#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2150,7 +3387,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9422#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10021#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2201,7 +3438,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9424#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10028#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_8535_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8535_d.png index fedb5f5..8062017 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 3321102..b242311 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 @@ - + @@ -107,47 +107,95 @@ + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + - + - + - + - + - + - + - + - + - + - + @@ -162,22 +210,22 @@ - + - + - - + + - + uint8 @@ -187,6 +235,39 @@ + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + @@ -199,11 +280,11 @@ - + - + [b_motStdStill] @@ -222,28 +303,28 @@ - - + + - + - + - - [b_toTrqMod] + + [z_ctrlTypSel] - + @@ -255,28 +336,28 @@ - - + + - + - + - - [b_toActive] + + [b_toTrqMod] - + @@ -288,28 +369,28 @@ - - + + - + - + - - [z_ctrlModPrev] + + [z_ctrlModReq] - + @@ -321,44 +402,62 @@ - - - + + + - - + + - - + + - - [b_motEna] + + [VqFinPrev] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - boolean + + [b_toOpen] + + + + + + + @@ -370,27 +469,27 @@ - + - + - + - + [z_ctrlMod] - + @@ -402,43 +501,43 @@ - - + + - + - + - - [z_ctrlModPrev] + + [z_ctrlMod] - + - + - - + + - + uint8 @@ -450,43 +549,43 @@ - - + + - + - + - - [b_toSpdMod] + + [b_motEna] - + - + - - + + - + boolean @@ -498,44 +597,44 @@ - - + + - + - + - - [b_errFlag] + + [z_ctrlModPrev] - + - - + + - - + + - - boolean + + uint8 @@ -546,29 +645,44 @@ - - - + + + - - + + - - + + - - [b_toSpdMod] + + [r_inpTgtSca] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -579,44 +693,29 @@ - - - + + + - - + + - - + + - - [b_motStdStill] + + [b_toActive] - - - - - - - - - - - - - - - - - boolean + + @@ -627,44 +726,44 @@ - - + + - + - + - - [b_toOpen] + + [r_inpTgt] - + - - + + - - + + - - boolean + + sfix16_En4 @@ -675,43 +774,43 @@ - - + + - + - + - - [b_toActive] + + [b_toSpdMod] - + - + - - + + - + boolean @@ -723,43 +822,76 @@ - - - + + + - - + + - - - + + + - - [b_toTrqMod] + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motStdStill] - + - + - - + + - + boolean @@ -771,128 +903,77 @@ - - - + + + - - - - - - - - + + - - - - - - b_toOpen - - - - - - - - b_toActive - - - - - - - - b_toSpdMod - - - - - - - - b_toTrqMod - - - - + + - - z_ctrlMod + + [r_inpTgtSca] - - - - - - - - - - - - - - - - - F03_02_Control_Mode_Manager + + + - - - - - - - - - - + + + + + + + + + + + + + + + - - + + - - uint8 + + [b_toActive] - - - - - - - - - + + + - + + + + - - - - + + + - - + + boolean @@ -903,50 +984,44 @@ - - - - - - - - + + - + - + - - [z_ctrlModReq] + + [b_toTrqMod] - + - - + + - - + + - - uint8 + + boolean @@ -957,29 +1032,44 @@ - - - + + + - - + + - - + + - - [b_motEna] + + [z_ctrlModReq] - - + + + + + + + + + + + + + + + + + uint8 @@ -990,104 +1080,80 @@ - - - + + + - + - + - + - - b_motEna + + z_ctrlTypSel - + - - b_motStdStill + + z_ctrlModReq - + - - b_errFlag + + z_ctrlMod - + - - z_ctrlModReq + + r_inpTgt - + - - z_ctrlModPrev - - - - - - - - b_toOpen - - - - - - - - b_toActive - - - - - - - - b_toSpdMod + + VqFinPrev - - + + - - b_toTrqMod + + r_inpTgtSca - + - + @@ -1095,105 +1161,931 @@ - + - - + + - - + + - - F03_01_Mode_Transition_Calculation + + F03_03_Input_Target_Synthesis - + - - + + - - + + - - boolean + + sfix16_En4 - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_toOpen - - + + - - boolean + + b_toActive + + + + + + + + b_toSpdMod + + + + + + + + b_toTrqMod + + + + + + + + z_ctrlMod + + + + + + + + + + + + + + + + + + + + + F03_02_Control_Mode_Manager - + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_motEna + + + + + + + + b_motStdStill + + + + + + + + b_errFlag + + + + + + + + z_ctrlModReq + + + + + + + + z_ctrlModPrev + + + + + + + + b_toOpen + + + + + + + + b_toActive + + + + + + + + b_toSpdMod + + + + + + + + b_toTrqMod + + + + + + + - - + + + + + + - - + + + + + + + + + + + - - boolean + + F03_01_Mode_Transition_Calculation - + - + - - + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + r_inpTgt + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + VqFinPrev + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_errFlag] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + z_ctrlModReq + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_errFlag] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + z_ctrlTypSel + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + b_motEna + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + - - boolean + + uint8 @@ -1204,65 +2096,44 @@ - - - - - - - - - + + + - - + + - - + + - - 3 + + [VqFinPrev] - - - - - - - - - - - - - - - - - b_motEna + + - - + + - - + + - - boolean + + sfix16_En4 @@ -1283,11 +2154,11 @@ - + - + 2 @@ -1305,11 +2176,11 @@ - - + + - + b_motStdStill @@ -1320,11 +2191,11 @@ - - + + - + boolean @@ -1336,62 +2207,44 @@ - - - + + + - - + + - - + + - + [b_toOpen] - - + + - - - - - - - - - - - - - - - + + + + - - + + - - [b_errFlag] - - - - - - - + + boolean @@ -1412,11 +2265,11 @@ - + - + 1 @@ -1434,11 +2287,11 @@ - - + + - + b_errFlag @@ -1449,11 +2302,11 @@ - - + + - + boolean @@ -1465,58 +2318,43 @@ - - - + + + - - + + - - + + - - 4 + + [z_ctrlModReq] - - - - - - - - - - - - - - - - - z_ctrlModReq + + - + - - + + - + uint8 @@ -1528,28 +2366,28 @@ - - + + - + - + - - [z_ctrlModReq] + + [b_toSpdMod] - + @@ -1590,11 +2428,11 @@ - + - + @@ -1604,11 +2442,11 @@ - + - + @@ -1618,11 +2456,11 @@ - + - + @@ -1632,11 +2470,11 @@ - + - + @@ -1646,11 +2484,11 @@ - + - + @@ -1661,31 +2499,31 @@ - + - + - + - + - + - + @@ -1694,11 +2532,11 @@ - + - + @@ -1859,7 +2697,147 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + 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 80b580a..e5773cb 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 @@ -98,11 +98,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8599", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8600", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"b_toSpdMod", - "label":"b_toSpdMod", + "name":"b_toTrqMod", + "label":"b_toTrqMod", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -131,7 +131,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "3", + "4", "Port number", "[]", "[]", @@ -178,32 +178,63 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8594", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8598", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"constant7", - "label":"constant7", + "name":"b_toActive", + "label":"b_toActive", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "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":[ - "TRQ_MODE", - "on", - "inf", + "2", + "Port number", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -212,8 +243,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -222,16 +253,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8593", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8595", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"constant6", - "label":"constant6", + "name":"constant8", + "label":"constant8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -245,7 +276,7 @@ "FramePeriod" ], "values":[ - "SPD_MODE", + "OPEN_MODE", "on", "inf", "[]", @@ -276,11 +307,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8591", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8592", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"constant2", - "label":"constant2", + "name":"constant5", + "label":"constant5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -294,7 +325,7 @@ "FramePeriod" ], "values":[ - "OPEN_MODE", + "VLT_MODE", "on", "inf", "[]", @@ -374,42 +405,38 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8589", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8586", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"constant", - "label":"constant", + "name":"Relational Operator5", + "label":"Relational Operator5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", + "Operator", + "InputSameDT", "OutDataTypeStr", - "LockScale", - "FramePeriod" + "RndMeth", + "SampleTime", + "ZeroCross" ], "values":[ - "TRQ_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":{ @@ -418,78 +445,43 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8597", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8585", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"b_toOpen", - "label":"b_toOpen", + "name":"Relational Operator4", + "label":"Relational Operator4", "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":[ - "1", - "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":{ @@ -498,16 +490,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8587", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8584", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator6", - "label":"Relational Operator6", + "name":"Relational Operator3", + "label":"Relational Operator3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -548,38 +540,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8583", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8589", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", + "name":"constant", + "label":"constant", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", + "Value", + "VectorParams1D", "SampleTime", - "ZeroCross" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "~=", + "TRQ_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":{ @@ -588,16 +584,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8582", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8580", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator11", - "label":"Relational Operator11", + "name":"Relational Operator1", + "label":"Relational Operator1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -609,7 +605,7 @@ "ZeroCross" ], "values":[ - "~=", + "==", "off", "boolean", "Simplest", @@ -638,38 +634,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8580", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8593", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Relational Operator1", - "label":"Relational Operator1", + "name":"constant6", + "label":"constant6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", + "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":{ @@ -678,68 +678,37 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8600", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8591", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"b_toTrqMod", - "label":"b_toTrqMod", + "name":"constant2", + "label":"constant2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "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", + "OPEN_MODE", + "on", + "inf", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", + "Inherit: Inherit via back propagation", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "inf" ], "tabs":[ "Main", @@ -748,8 +717,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -758,7 +727,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Constant", "masktype":"" } }, @@ -796,11 +765,56 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9421", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8581", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator10", + "label":"Relational Operator10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8568", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -809,7 +823,7 @@ "IconDisplay" ], "values":[ - "b_motStdStill", + "z_ctrlModReq", "local", "Tag" ], @@ -829,39 +843,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8581", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8573", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Relational Operator10", - "label":"Relational Operator10", + "name":"Goto9", + "label":"Goto9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" + "b_motEna", + "local", + "Tag" ], "tabs":[ - "Main", - "Data Type", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 1, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -869,16 +871,80 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8585", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8564", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From9", + "label":"From9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlModReq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8566", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_toTrqMod", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8583", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator4", - "label":"Relational Operator4", + "name":"Relational Operator2", + "label":"Relational Operator2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -890,7 +956,7 @@ "ZeroCross" ], "values":[ - "==", + "~=", "off", "boolean", "Simplest", @@ -952,11 +1018,122 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8584", + "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:8599", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"b_toSpdMod", + "label":"b_toSpdMod", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8582", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator3", - "label":"Relational Operator3", + "name":"Relational Operator11", + "label":"Relational Operator11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -968,7 +1145,7 @@ "ZeroCross" ], "values":[ - "==", + "~=", "off", "boolean", "Simplest", @@ -1028,19 +1205,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9419", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8572", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_motStdStill", + "b_errFlag", + "local", "Tag" ], "tabs":[ @@ -1054,7 +1233,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -1090,11 +1269,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8562", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8559", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1102,7 +1281,7 @@ "IconDisplay" ], "values":[ - "b_toSpdMod", + "z_ctrlModReq", "Tag" ], "tabs":[ @@ -1121,11 +1300,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8559", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8558", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1133,7 +1312,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModReq", + "b_toTrqMod", "Tag" ], "tabs":[ @@ -1152,11 +1331,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8586", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8587", "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Relational Operator5", - "label":"Relational Operator5", + "name":"Relational Operator6", + "label":"Relational Operator6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1197,19 +1376,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8561", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8570", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_toOpen", + "b_toSpdMod", + "local", "Tag" ], "tabs":[ @@ -1223,26 +1404,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8572", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8556", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", + "name":"From13", + "label":"From13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "b_errFlag", - "local", + "z_ctrlModReq", "Tag" ], "tabs":[ @@ -1256,56 +1435,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8592", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant5", - "label":"constant5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "VLT_MODE", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", + "blocktype":"From", "masktype":"" } }, @@ -1341,11 +1471,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8564", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8562", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1353,7 +1483,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModReq", + "b_toSpdMod", "Tag" ], "tabs":[ @@ -1372,21 +1502,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8568", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8553", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_ctrlModReq", - "local", + "b_toActive", "Tag" ], "tabs":[ @@ -1400,24 +1528,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8553", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8565", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_toActive", + "z_ctrlModPrev", + "local", "Tag" ], "tabs":[ @@ -1431,16 +1561,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8598", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8551", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_toActive", - "label":"b_toActive", + "name":"z_ctrlModPrev", + "label":"z_ctrlModPrev", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1456,20 +1586,14 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "2", + "5", "Port number", "[]", "[]", @@ -1481,17 +1605,10 @@ "-1", "auto", "off", + "", + "on", "off", - "0", - "off", - "reset", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", "off" ], "tabs":[ @@ -1511,16 +1628,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8555", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9419", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1528,7 +1645,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModPrev", + "b_motStdStill", "Tag" ], "tabs":[ @@ -1547,11 +1664,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8565", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9421", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1560,7 +1677,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModPrev", + "b_motStdStill", "local", "Tag" ], @@ -1580,42 +1697,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8552", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "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:8551", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8549", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlModPrev", - "label":"z_ctrlModPrev", + "name":"z_ctrlModReq", + "label":"z_ctrlModReq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1638,7 +1724,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "4", "Port number", "[]", "[]", @@ -1646,59 +1732,26 @@ "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:8573", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_motEna", - "local", - "Tag" + "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" @@ -1706,7 +1759,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Inport", "masktype":"" } }, @@ -1778,21 +1831,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8566", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8555", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"From12", + "label":"From12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "b_toTrqMod", - "local", + "z_ctrlModPrev", "Tag" ], "tabs":[ @@ -1806,56 +1857,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8595", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant8", - "label":"constant8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "OPEN_MODE", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", + "blocktype":"From", "masktype":"" } }, @@ -1927,11 +1929,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8549", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8547", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlModReq", - "label":"z_ctrlModReq", + "name":"b_motEna", + "label":"b_motEna", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -1954,7 +1956,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "1", "Port number", "[]", "[]", @@ -1994,11 +1996,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8547", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8597", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"b_motEna", - "label":"b_motEna", + "name":"b_toOpen", + "label":"b_toOpen", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2014,11 +2016,17 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ "1", @@ -2033,10 +2041,17 @@ "-1", "auto", "off", - "", - "on", "off", + "0", + "off", + "reset", "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -2056,63 +2071,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8570", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_toSpdMod", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8558", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8594", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"constant7", + "label":"constant7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "b_toTrqMod", - "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" @@ -2120,16 +2120,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8556", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8552", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2137,7 +2137,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModReq", + "b_errFlag", "Tag" ], "tabs":[ @@ -2156,11 +2156,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8574", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8576", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator1", - "label":"Logical Operator1", + "name":"Logical Operator4", + "label":"Logical Operator4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2172,8 +2172,8 @@ "SampleTime" ], "values":[ - "AND", - "2", + "OR", + "4", "rectangular", "off", "boolean", @@ -2201,11 +2201,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8575", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8577", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator3", - "label":"Logical Operator3", + "name":"Logical Operator6", + "label":"Logical Operator6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2217,7 +2217,7 @@ "SampleTime" ], "values":[ - "AND", + "OR", "3", "rectangular", "off", @@ -2246,11 +2246,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8577", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8578", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator6", - "label":"Logical Operator6", + "name":"Logical Operator7", + "label":"Logical Operator7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2262,8 +2262,8 @@ "SampleTime" ], "values":[ - "OR", - "3", + "NOT", + "2", "rectangular", "off", "boolean", @@ -2291,11 +2291,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8578", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8574", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator7", - "label":"Logical Operator7", + "name":"Logical Operator1", + "label":"Logical Operator1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2307,7 +2307,7 @@ "SampleTime" ], "values":[ - "NOT", + "AND", "2", "rectangular", "off", @@ -2381,11 +2381,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8576", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8575", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator4", - "label":"Logical Operator4", + "name":"Logical Operator3", + "label":"Logical Operator3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "inspector":{ "params":[ @@ -2397,8 +2397,8 @@ "SampleTime" ], "values":[ - "OR", - "4", + "AND", + "3", "rectangular", "off", "boolean", 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 8b78524..49c638f 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 @@ -83,11 +83,11 @@ - - + + - + @@ -97,30 +97,30 @@ - - 3 + + 4 - + - - + + - + - - b_toSpdMod + + b_toTrqMod @@ -131,44 +131,44 @@ - - - + + + - - + + - + - - TRQ_MODE + + 2 - - + + - - - + + + - + - - uint8 + + b_toActive @@ -179,11 +179,11 @@ - - + + - + @@ -193,29 +193,29 @@ - - SPD_MODE + + OPEN_MODE - + - + - + - + uint8 @@ -227,11 +227,11 @@ - - + + - + @@ -241,29 +241,29 @@ - - OPEN_MODE + + VLT_MODE - + - + - + - + uint8 @@ -323,92 +323,68 @@ - - - + + + - - + + - + - + - - TRQ_MODE - - - - - - - + + - - - - - - + + + + + + + - - + + - - uint8 + + - - - - - - - - - - - - + + - - - - - - - 1 - - - + + - - - + + + - - + + - - b_toOpen + + boolean @@ -419,37 +395,37 @@ - - - + + + - + - + - + - + - + - + - + @@ -464,22 +440,22 @@ - + - + - - + + - + boolean @@ -491,30 +467,38 @@ - - - + + + - + - + - + - - + + - - + + + + + + + + + + @@ -528,22 +512,22 @@ - + - + - - + + - + boolean @@ -555,60 +539,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + TRQ_MODE - - - - - - - - - - + + - - + + - - + + - - boolean + + uint8 @@ -621,7 +589,7 @@ - + @@ -629,27 +597,27 @@ - + - + - + - + - + - + @@ -675,11 +643,11 @@ - + - + boolean @@ -691,44 +659,44 @@ - - - + + + - - + + - - + + - - 4 + + SPD_MODE - - + + - - - + + + - - + + - - b_toTrqMod + + uint8 @@ -739,29 +707,44 @@ - - - + + + - - + + - - + + - - [b_toOpen] + + OPEN_MODE - - + + + + + + + + + + + + + + + + + uint8 @@ -772,11 +755,11 @@ - - + + - + @@ -786,14 +769,14 @@ - - [b_motStdStill] + + [b_toOpen] - + @@ -807,7 +790,7 @@ - + @@ -877,68 +860,110 @@ - - - + + + - - + + - + - + - - + + [z_ctrlModReq] - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + [b_motEna] - + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + - - + + - - + + - - + + - - boolean + + uint8 @@ -949,28 +974,28 @@ - - + + - + - + - - [b_toActive] + + [b_toTrqMod] - + @@ -982,38 +1007,30 @@ - - - + + + - + - + - + - - - - - - - - - - + + - - + + @@ -1027,22 +1044,22 @@ - + - + - - + + - + boolean @@ -1054,44 +1071,29 @@ - - - + + + - - + + - - + + - - [b_toOpen] + + [b_toActive] - - - - - - - - - - - - - - - - - boolean + + @@ -1102,43 +1104,43 @@ - - + + - + - + - - [b_motStdStill] + + [b_toOpen] - + - + - - + + - + boolean @@ -1150,44 +1152,44 @@ - - - + + + - - + + - - + + - - [z_ctrlModReq] + + 3 - - + + - - - + + + - - + + - - uint8 + + b_toSpdMod @@ -1198,43 +1200,59 @@ - - - + + + - - + + - + - - + + - - [b_toSpdMod] + + - - + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + boolean @@ -1246,44 +1264,44 @@ - - + + - + - + - - [z_ctrlModReq] + + [b_toOpen] - + - - + + - - + + - - uint8 + + boolean @@ -1294,68 +1312,29 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - + - - + + - - + + [b_errFlag] - - - - - - - - - - - - - - - - - - - - - - - - - boolean + + @@ -1366,77 +1345,44 @@ - - + + - + - + - - [b_toOpen] + + [z_ctrlModReq] - + - - - - - - - - - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - [b_errFlag] - - - - - - - + + uint8 @@ -1447,43 +1393,43 @@ - - - + + + - - + + - - + + - - VLT_MODE + + [z_ctrlModReq] - - + + - + - - + + - + uint8 @@ -1495,43 +1441,43 @@ - - + + - + - + - - [b_motEna] + + [b_toTrqMod] - + - + - - + + - + boolean @@ -1543,44 +1489,68 @@ - - - + + + - - + + - + - - + + - - [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - uint8 + + boolean @@ -1591,28 +1561,28 @@ - - + + - + - + - - [z_ctrlModReq] + + [b_toSpdMod] - + @@ -1624,44 +1594,44 @@ - - + + - + - + - - [b_toActive] + + [z_ctrlModReq] - + - - + + - - + + - - boolean + + uint8 @@ -1672,44 +1642,44 @@ - - - + + + - - + + - - + + - - 2 + + [b_motEna] - - + + - - - + + + - - + + - - b_toActive + + boolean @@ -1720,44 +1690,44 @@ - - + + - + - + - - [z_ctrlModPrev] + + [b_toSpdMod] - + - - + + - - + + - - uint8 + + boolean @@ -1768,29 +1738,44 @@ - - - + + + - - + + - - + + - - [z_ctrlModPrev] + + [b_toActive] - - + + + + + + + + + + + + + + + + + boolean @@ -1801,44 +1786,29 @@ - - - + + + - - + + - - - - - - - [b_errFlag] - - - - - - - - - - - - - - - - - - + + + - - boolean + + [z_ctrlModPrev] + + + + + + + @@ -1859,11 +1829,11 @@ - + - + 5 @@ -1881,11 +1851,11 @@ - + - + z_ctrlModPrev @@ -1896,11 +1866,11 @@ - + - + uint8 @@ -1912,28 +1882,76 @@ - - + + + + + + + + + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + - + - + - - [b_motEna] + + [b_motStdStill] - + @@ -1945,59 +1963,59 @@ - - + + - + - + - - 3 + + 4 - + - - + + - - + + - - b_errFlag + + z_ctrlModReq - - + + - - + + - - boolean + + uint8 @@ -2008,77 +2026,59 @@ - - - + + + - - + + - - + + - - [b_toTrqMod] + + 3 - - + + - - - - - - - - - - - - - - - + + + + - + - - OPEN_MODE - - - - - - - + + b_errFlag - - + + - + - - uint8 + + boolean @@ -2089,59 +2089,44 @@ - - - + + + - - + + - + - - 2 + + [z_ctrlModPrev] - - - - - - - - - - - - - - - - - b_motStdStill + + - - + + - - + + - - boolean + + uint8 @@ -2152,59 +2137,59 @@ - - + + - + - + - - 4 + + 2 - + - - + + - - + + - - z_ctrlModReq + + b_motStdStill - - + + - - + + - - uint8 + + boolean @@ -2225,11 +2210,11 @@ - + - + 1 @@ -2247,11 +2232,11 @@ - + - + b_motEna @@ -2262,45 +2247,12 @@ - + - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toSpdMod] - - - - - - - + + boolean @@ -2311,44 +2263,44 @@ - - - + + + - - + + - - + + - - [b_toTrqMod] + + 1 - - + + - - - + + + - - + + - - boolean + + b_toOpen @@ -2359,43 +2311,43 @@ - - - + + + - - + + - - + + - - [z_ctrlModReq] + + TRQ_MODE - - + + - + - - + + - + uint8 @@ -2407,59 +2359,43 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + [b_errFlag] - - - - - - + + - - - - - + - - + + - + boolean @@ -2471,30 +2407,30 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + @@ -2503,32 +2439,32 @@ - - - - - - - - - - - - + - - + + - + boolean + + + + + + + + + + + @@ -2545,19 +2481,19 @@ - + - + - + - + @@ -2572,11 +2508,11 @@ - + - + boolean @@ -2609,19 +2545,19 @@ - + - + - + - + @@ -2631,6 +2567,21 @@ + + + + + + + + + + + boolean + + + + @@ -2642,21 +2593,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + boolean + + + + + + + + + + + @@ -2727,30 +2727,30 @@ - - - + + + - - + + - + - - + + - + - - + + @@ -2760,23 +2760,23 @@ - + - + - + boolean - - + + @@ -3050,10 +3050,10 @@ - + - + @@ -3417,5 +3417,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.json index 8830795..5c344d6 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 @@ -1,10 +1,10 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:3", "className":"Stateflow.State", "icon":"WebViewIcon7", - "name":"OPEN", - "label":"OPEN", + "name":"ACTIVE", + "label":"ACTIVE", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", "inspector":{ "params":[ @@ -19,7 +19,7 @@ "values":[ false, "Auto", - "OPEN\n\nentry:\nz_ctrlMod = OPEN_MODE;", + "ACTIVE", false, false, "", @@ -45,11 +45,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:28", "className":"Stateflow.State", "icon":"WebViewIcon7", - "name":"ACTIVE", - "label":"ACTIVE", + "name":"VOLTAGE_MODE", + "label":"VOLTAGE_MODE", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", "inspector":{ "params":[ @@ -64,7 +64,7 @@ "values":[ false, "Auto", - "ACTIVE", + "VOLTAGE_MODE\n\nentry:\nz_ctrlMod = VLT_MODE;", false, false, "", @@ -90,11 +90,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:28", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:6", "className":"Stateflow.State", "icon":"WebViewIcon7", - "name":"VOLTAGE_MODE", - "label":"VOLTAGE_MODE", + "name":"SPEED_MODE", + "label":"SPEED_MODE", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", "inspector":{ "params":[ @@ -109,7 +109,7 @@ "values":[ false, "Auto", - "VOLTAGE_MODE\n\nentry:\nz_ctrlMod = VLT_MODE;", + "SPEED_MODE\n\nentry:\nz_ctrlMod = SPD_MODE;", false, false, "", @@ -135,11 +135,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:4", "className":"Stateflow.State", "icon":"WebViewIcon7", - "name":"SPEED_MODE", - "label":"SPEED_MODE", + "name":"TORQUE_MODE", + "label":"TORQUE_MODE", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", "inspector":{ "params":[ @@ -154,7 +154,7 @@ "values":[ false, "Auto", - "SPEED_MODE\n\nentry:\nz_ctrlMod = SPD_MODE;", + "TORQUE_MODE\n\nentry:\nz_ctrlMod = TRQ_MODE;", false, false, "", @@ -180,41 +180,29 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:4", - "className":"Stateflow.State", - "icon":"WebViewIcon7", - "name":"TORQUE_MODE", - "label":"TORQUE_MODE", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:33", + "className":"Stateflow.Transition", + "icon":"WebViewIcon8", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", "inspector":{ "params":[ - "HasOutputData", - "InlineOption", + "ExecutionOrder", "LabelString", - "DataLogging", - "TestPoint", "Description", "Document" ], "values":[ - false, - "Auto", - "TORQUE_MODE\n\nentry:\nz_ctrlMod = TRQ_MODE;", - false, - false, + 1, + "", "", "" ], "tabs":[ - "General", - "Logging", - "Documentation" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 5 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -258,11 +246,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:33", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:32", "className":"Stateflow.Transition", "icon":"WebViewIcon8", "name":"", - "label":"", + "label":"[b_toSpdMod]", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", "inspector":{ "params":[ @@ -273,7 +261,7 @@ ], "values":[ 1, - "", + "[b_toSpdMod]", "", "" ], @@ -390,29 +378,41 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:32", - "className":"Stateflow.Transition", - "icon":"WebViewIcon8", - "name":"", - "label":"[b_toSpdMod]", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:1", + "className":"Stateflow.State", + "icon":"WebViewIcon7", + "name":"OPEN", + "label":"OPEN", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", "inspector":{ "params":[ - "ExecutionOrder", + "HasOutputData", + "InlineOption", "LabelString", + "DataLogging", + "TestPoint", "Description", "Document" ], "values":[ - 1, - "[b_toSpdMod]", + false, + "Auto", + "OPEN\n\nentry:\nz_ctrlMod = OPEN_MODE;", + false, + false, "", "" ], "tabs":[ - "Parameter Attributes" + "General", + "Logging", + "Documentation" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 5 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -423,11 +423,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":[ @@ -438,7 +438,7 @@ ], "values":[ 1, - "[b_toActive]", + "", "", "" ], @@ -456,11 +456,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:14", "className":"Stateflow.Transition", "icon":"WebViewIcon8", "name":"", - "label":"", + "label":"[b_toOpen]", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", "inspector":{ "params":[ @@ -471,7 +471,7 @@ ], "values":[ 1, - "", + "[b_toOpen]", "", "" ], @@ -489,11 +489,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:14", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603:13", "className":"Stateflow.Transition", "icon":"WebViewIcon8", "name":"", - "label":"[b_toOpen]", + "label":"[b_toActive]", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8603", "inspector":{ "params":[ @@ -504,7 +504,7 @@ ], "values":[ 1, - "[b_toOpen]", + "[b_toActive]", "", "" ], 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 9fd2776..bca34d6 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 @@ -10,114 +10,22 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - OPEN - - - - - - - - - - - - - - - - entry: - - - - - - - - - - - - - - - - z_ctrlMod = OPEN_MODE; - - - - - - - - - - - - - - - - - - - - - - - + - + - + @@ -126,23 +34,23 @@ - + - + - + - + ACTIVE - + @@ -154,19 +62,7 @@ - - - - - - - - - - - - - + @@ -180,25 +76,25 @@ - + - + - + - + - + @@ -207,57 +103,57 @@ - + - + - + - + VOLTAGE_MODE - + - + - + - + entry: - + - + - + - + z_ctrlMod = VLT_MODE; - + @@ -272,25 +168,25 @@ - + - + - + - + - + @@ -299,57 +195,57 @@ - + - + - + - + SPEED_MODE - + - + - + - + entry: - + - + - + - + z_ctrlMod = SPD_MODE; - + @@ -364,25 +260,25 @@ - + - + - + - + - + @@ -391,57 +287,57 @@ - + - + - + - + TORQUE_MODE - + - + - + - + entry: - + - + - + - + z_ctrlMod = TRQ_MODE; - + @@ -453,12 +349,47 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -476,11 +407,11 @@ - + - + 2 @@ -493,20 +424,53 @@ - + - + - + - + - + + + + + + + + + + + + + + + + + + [b_toSpdMod] + + + + + + + + + + + + + + 1 + + @@ -518,7 +482,7 @@ - + @@ -536,11 +500,11 @@ - + - + 2 @@ -555,7 +519,7 @@ - + @@ -578,7 +542,7 @@ - + @@ -593,19 +557,19 @@ - + - + - + - + [b_toTrqMod] @@ -615,11 +579,11 @@ - + - + 1 @@ -630,65 +594,9 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toSpdMod] - - - - - - - - - - - - - - 1 - - - - - - - - - - + @@ -701,42 +609,92 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + OPEN + + + + + + + + + + + + + + + + entry: + + + + + + + + + + + + + + + + z_ctrlMod = OPEN_MODE; + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - [b_toActive] - - - + + @@ -746,6 +704,12 @@ + + + + + + @@ -773,19 +737,19 @@ - + - + - + - + [b_toOpen] @@ -796,7 +760,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toActive] + + + + + + + + + - + 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 cd2633e..1788a44 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 @@ -48,172 +48,12 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9194", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_phaC ", - "label":"r_phaC ", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9193", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_phaB", - "label":"r_phaB", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "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:9192", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"r_phaA", - "label":"r_phaA", + "name":"V_phaABC_FOC", + "label":"V_phaABC_FOC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -302,73 +142,7 @@ "IconDisplay" ], "values":[ - "r_phaA", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8829", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_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:8840", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_phaC", + "V_phaABC_FOC", "local", "Tag" ], @@ -400,7 +174,7 @@ "IconDisplay" ], "values":[ - "r_phaA", + "V_phaABC_FOC", "Tag" ], "tabs":[ @@ -419,11 +193,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8828", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8769", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"From12", + "label":"From12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -431,7 +205,7 @@ "IconDisplay" ], "values":[ - "r_phaB", + "i_phaAB", "Tag" ], "tabs":[ @@ -450,11 +224,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8767", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8778", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From22", + "label":"From22", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -462,7 +236,7 @@ "IconDisplay" ], "values":[ - "r_phaC", + "i_phaBC", "Tag" ], "tabs":[ @@ -481,73 +255,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8769", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "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:8778", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "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:8886", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Inv_Park_Transform", - "label":"Inv_Park_Transform", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8886", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Inv_Park_Transform", + "label":"Inv_Park_Transform", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -764,7 +476,7 @@ "OutputFunctionCall" ], "values":[ - "8", + "11", "Port number", "[]", "[]", @@ -864,7 +576,7 @@ "OutputFunctionCall" ], "values":[ - "9", + "12", "Port number", "[]", "[]", @@ -1018,11 +730,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9196", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9197", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"r_devSignal1", - "label":"r_devSignal1", + "name":"r_devSignal2", + "label":"r_devSignal2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1051,7 +763,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "5", + "4", "Port number", "[]", "[]", @@ -1098,72 +810,51 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9195", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10173", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Vq", - "label":"Vq", + "name":"toNegative", + "label":"toNegative", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Gain", + "Multiplication", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" ], "values":[ - "4", - "Port number", + "-1", + "Element-wise(K.*u)", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", + "Inherit: Same as input", "off", - "0", - "off", - "reset", + "Zero", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "[]", + "[]", + "Inherit: Same as input", + "-1" ], "tabs":[ "Main", "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, 2, + 8, 11 ] }, @@ -1173,124 +864,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "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:9108", - "className":"Simulink.SwitchCase", - "icon":"WebViewIcon3", - "name":"Switch Case", - "label":"Switch Case", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "CaseConditions", - "ShowDefaultCase", - "SampleTime", - "ZeroCross" - ], - "values":[ - "{VLT_MODE, SPD_MODE, TRQ_MODE}", - "on", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SwitchCase", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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":"Gain", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9045", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Park_Transform", - "label":"Park_Transform", + "name":"Sine_Cosine_Approximation", + "label":"Sine_Cosine_Approximation", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1383,11 +966,30 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9197", + "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:9195", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"r_devSignal2", - "label":"r_devSignal2", + "name":"Vq", + "label":"Vq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1416,7 +1018,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "6", + "2", "Port number", "[]", "[]", @@ -1431,7 +1033,7 @@ "off", "0", "off", - "reset", + "held", "off", "0", "", @@ -1463,11 +1065,30 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9029", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9072", + "className":"Simulink.Scope", + "icon":"WebViewIcon3", + "name":"Scope8", + "label":"Scope8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":[ + ], + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Scope", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Open_Mode", - "label":"Open_Mode", + "name":"Park_Transform", + "label":"Park_Transform", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1519,7 +1140,7 @@ "void_void", "off", "off", - "off", + "on", "", "off", "", @@ -1591,32 +1212,104 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8912", - "className":"Simulink.Merge", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9023", + "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"Merge", - "label":"Merge", + "name":"Mux1", + "label":"Mux1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "Inputs", + "DisplayOption" + ], + "values":[ + "2", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9196", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_devSignal1", + "label":"r_devSignal1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", "InitialOutput", - "AllowUnequalInputPortWidths", - "InputPortOffsets" + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "4", + "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, - 3 + 2, + 11 ] }, "viewer":{ @@ -1625,16 +1318,113 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Merge", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9713", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Motor_Limitations", + "label":"Motor_Limitations", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10363", "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", + "name":"If3", + "label":"If3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1673,27 +1463,37 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8862", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9713", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"If2", + "label":"If2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" ], "values":[ - "Vq_min", - "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" @@ -1701,16 +1501,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8857", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8864", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto35", - "label":"Goto35", + "name":"Goto9", + "label":"Goto9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1719,7 +1519,7 @@ "IconDisplay" ], "values":[ - "r_sin", + "n_mot", "local", "Tag" ], @@ -1739,11 +1539,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8853", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8861", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto31", - "label":"Goto31", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1752,7 +1552,7 @@ "IconDisplay" ], "values":[ - "iq_limPrott", + "Vq_max", "local", "Tag" ], @@ -1772,11 +1572,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8848", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8858", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", + "name":"Goto36", + "label":"Goto36", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1785,7 +1585,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "r_cos", "local", "Tag" ], @@ -1805,11 +1605,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8847", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8849", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto26", - "label":"Goto26", + "name":"Goto28", + "label":"Goto28", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1818,7 +1618,7 @@ "IconDisplay" ], "values":[ - "id_Tgt", + "iq_min", "local", "Tag" ], @@ -1838,11 +1638,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8845", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8848", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto24", - "label":"Goto24", + "name":"Goto27", + "label":"Goto27", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1851,7 +1651,7 @@ "IconDisplay" ], "values":[ - "id", + "r_inpTgtSca", "local", "Tag" ], @@ -1871,11 +1671,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8842", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8844", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto21", - "label":"Goto21", + "name":"Goto23", + "label":"Goto23", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1884,7 +1684,7 @@ "IconDisplay" ], "values":[ - "a_elecAngle", + "iq", "local", "Tag" ], @@ -1904,11 +1704,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8864", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10703", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"Goto20", + "label":"Goto20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1917,7 +1717,7 @@ "IconDisplay" ], "values":[ - "n_mot", + "r_inpTgtScaAbs", "local", "Tag" ], @@ -1937,11 +1737,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8839", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10171", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1950,7 +1750,40 @@ "IconDisplay" ], "values":[ - "id_max", + "id_Tgt", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8850", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto29", + "label":"Goto29", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_min", "local", "Tag" ], @@ -2003,11 +1836,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8836", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8837", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto16", - "label":"Goto16", + "name":"Goto17", + "label":"Goto17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2016,7 +1849,7 @@ "IconDisplay" ], "values":[ - "Vq_prev", + "Vd_max", "local", "Tag" ], @@ -2036,11 +1869,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8834", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10360", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", + "name":"Goto16", + "label":"Goto16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2049,7 +1882,7 @@ "IconDisplay" ], "values":[ - "Vq_Vlt", + "task2", "local", "Tag" ], @@ -2069,11 +1902,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8832", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10687", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", + "name":"Goto14", + "label":"Goto14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2082,7 +1915,7 @@ "IconDisplay" ], "values":[ - "Vq_Spd", + "n_motAbs", "local", "Tag" ], @@ -2102,11 +1935,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8831", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10686", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", + "name":"Goto12", + "label":"Goto12", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2115,7 +1948,7 @@ "IconDisplay" ], "values":[ - "Vq_Trq", + "iqAbs", "local", "Tag" ], @@ -2135,11 +1968,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9717", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8843", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto32", - "label":"Goto32", + "name":"Goto22", + "label":"Goto22", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2148,7 +1981,7 @@ "IconDisplay" ], "values":[ - "b_motEna", + "r_fieldWeak", "local", "Tag" ], @@ -2168,11 +2001,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8852", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10448", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto30", - "label":"Goto30", + "name":"Goto11", + "label":"Goto11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2181,7 +2014,7 @@ "IconDisplay" ], "values":[ - "Vq", + "VdPrev", "local", "Tag" ], @@ -2201,11 +2034,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8851", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10172", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2214,7 +2047,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "id_TgtAbs", "local", "Tag" ], @@ -2234,19 +2067,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8824", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10359", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From68", - "label":"From68", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "iq_limPrott", + "task3", + "local", "Tag" ], "tabs":[ @@ -2260,24 +2095,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8820", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10394", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From64", - "label":"From64", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "n_limProt", + "Vd", + "local", "Tag" ], "tabs":[ @@ -2291,16 +2128,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8819", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10428", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From63", - "label":"From63", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2308,7 +2145,7 @@ "IconDisplay" ], "values":[ - "n_mot", + "id", "Tag" ], "tabs":[ @@ -2327,11 +2164,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8846", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8862", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto25", - "label":"Goto25", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2340,7 +2177,7 @@ "IconDisplay" ], "values":[ - "iq_max", + "Vq_min", "local", "Tag" ], @@ -2360,7 +2197,7 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8818", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10438", "className":"Simulink.From", "icon":"WebViewIcon3", "name":"From62", @@ -2372,7 +2209,7 @@ "IconDisplay" ], "values":[ - "iq_limPrott", + "iq_limProtErr", "Tag" ], "tabs":[ @@ -2391,30 +2228,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9073", - "className":"Simulink.Scope", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8817", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Scope9", - "label":"Scope9", + "name":"From61", + "label":"From61", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":[ - ], + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Scope", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8813", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10433", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From58", - "label":"From58", + "name":"From57", + "label":"From57", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2422,7 +2271,7 @@ "IconDisplay" ], "values":[ - "id_min", + "id_max", "Tag" ], "tabs":[ @@ -2441,11 +2290,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8809", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8811", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From54", - "label":"From54", + "name":"From56", + "label":"From56", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2472,11 +2321,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8808", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8810", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From53", - "label":"From53", + "name":"From55", + "label":"From55", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2503,11 +2352,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8860", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10395", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto40", - "label":"Goto40", + "name":"Goto10", + "label":"Goto10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2516,7 +2365,7 @@ "IconDisplay" ], "values":[ - "id_TgtAbs", + "Vq", "local", "Tag" ], @@ -2536,11 +2385,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8805", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10440", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From59", + "label":"From59", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2548,7 +2397,7 @@ "IconDisplay" ], "values":[ - "Vq_prev", + "iq_max", "Tag" ], "tabs":[ @@ -2567,11 +2416,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9655", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10431", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From53", + "label":"From53", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2579,7 +2428,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "Vd_max", "Tag" ], "tabs":[ @@ -2598,21 +2447,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8841", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8807", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto20", - "label":"Goto20", + "name":"From52", + "label":"From52", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "Vd", - "local", + "id_TgtAbs", "Tag" ], "tabs":[ @@ -2626,16 +2473,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8810", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10362", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From55", - "label":"From55", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2643,7 +2490,7 @@ "IconDisplay" ], "values":[ - "Vd_max", + "task2", "Tag" ], "tabs":[ @@ -2662,108 +2509,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Voltage_Mode", - "label":"Voltage_Mode", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10743", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From47", + "label":"From47", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" + "GotoTag", + "IconDisplay" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "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_inpTgtScaAbs", + "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:8801", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10439", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From46", - "label":"From46", + "name":"From64", + "label":"From64", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2771,7 +2552,7 @@ "IconDisplay" ], "values":[ - "Vq_Vlt", + "Vq_nLimProtMax", "Tag" ], "tabs":[ @@ -2790,19 +2571,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8811", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10728", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From56", - "label":"From56", + "name":"Goto30", + "label":"Goto30", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "Vd_min", + "r_nLimProtMax", + "local", "Tag" ], "tabs":[ @@ -2816,16 +2599,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8825", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10726", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From69", - "label":"From69", + "name":"From44", + "label":"From44", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2833,7 +2616,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "r_iqLimProtMax", "Tag" ], "tabs":[ @@ -2852,20 +2635,20 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9023", - "className":"Simulink.Mux", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10444", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Mux1", - "label":"Mux1", + "name":"From45", + "label":"From45", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "Inputs", - "DisplayOption" + "GotoTag", + "IconDisplay" ], "values":[ - "2", - "bar" + "iq", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -2878,16 +2661,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Mux", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8802", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8796", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From47", - "label":"From47", + "name":"From41", + "label":"From41", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2895,7 +2678,7 @@ "IconDisplay" ], "values":[ - "Vq_Spd", + "Vq_max", "Tag" ], "tabs":[ @@ -2914,37 +2697,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9715", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10707", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", + "name":"From39", + "label":"From39", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" + "GotoTag", + "IconDisplay" ], "values":[ - "1", - "u1 ~= 0", - "", - "off", - "-1", - "on" + "r_inpTgtScaAbs", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2952,16 +2723,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8814", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10445", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From59", - "label":"From59", + "name":"From36", + "label":"From36", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2969,7 +2740,7 @@ "IconDisplay" ], "values":[ - "iq_max", + "n_mot", "Tag" ], "tabs":[ @@ -2988,11 +2759,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8788", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8798", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From33", - "label":"From33", + "name":"From43", + "label":"From43", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3000,7 +2771,7 @@ "IconDisplay" ], "values":[ - "id_Tgt", + "Vd", "Tag" ], "tabs":[ @@ -3019,11 +2790,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8787", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10697", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From32", - "label":"From32", + "name":"From34", + "label":"From34", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3031,7 +2802,7 @@ "IconDisplay" ], "values":[ - "id", + "n_motAbs", "Tag" ], "tabs":[ @@ -3050,11 +2821,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8786", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8788", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From31", - "label":"From31", + "name":"From33", + "label":"From33", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3062,7 +2833,7 @@ "IconDisplay" ], "values":[ - "iq", + "id_Tgt", "Tag" ], "tabs":[ @@ -3081,118 +2852,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Speed_Mode", - "label":"Speed_Mode", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8795", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From40", + "label":"From40", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" + "GotoTag", + "IconDisplay" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" + "Vq", + "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:8849", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8783", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto28", - "label":"Goto28", + "name":"From28", + "label":"From28", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "iq_min", - "local", + "r_sin", "Tag" ], "tabs":[ @@ -3206,16 +2909,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8799", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8782", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From44", - "label":"From44", + "name":"From27", + "label":"From27", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3223,7 +2926,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "r_cos", "Tag" ], "tabs":[ @@ -3242,11 +2945,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8785", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8781", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From26", + "label":"From26", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3254,7 +2957,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "r_sin", "Tag" ], "tabs":[ @@ -3273,11 +2976,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8783", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10446", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From28", - "label":"From28", + "name":"From23", + "label":"From23", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3285,7 +2988,7 @@ "IconDisplay" ], "values":[ - "r_sin", + "z_ctrlMod", "Tag" ], "tabs":[ @@ -3304,11 +3007,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8781", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8776", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From26", - "label":"From26", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3316,7 +3019,7 @@ "IconDisplay" ], "values":[ - "r_sin", + "VdPrev", "Tag" ], "tabs":[ @@ -3335,11 +3038,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8798", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8775", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From43", - "label":"From43", + "name":"From19", + "label":"From19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3347,7 +3050,7 @@ "IconDisplay" ], "values":[ - "Vd", + "a_elecAngle", "Tag" ], "tabs":[ @@ -3366,11 +3069,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8779", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10436", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", + "name":"From16", + "label":"From16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3378,7 +3081,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "Vq_max", "Tag" ], "tabs":[ @@ -3397,11 +3100,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8791", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8772", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From36", - "label":"From36", + "name":"From15", + "label":"From15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3409,7 +3112,7 @@ "IconDisplay" ], "values":[ - "n_mot", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -3428,42 +3131,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9026", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux2", - "label":"Mux2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "2", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9718", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10430", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", + "name":"From14", + "label":"From14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3471,7 +3143,7 @@ "IconDisplay" ], "values":[ - "b_motEna", + "b_enaAdvCtrl", "Tag" ], "tabs":[ @@ -3490,11 +3162,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8789", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10698", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From34", - "label":"From34", + "name":"From37", + "label":"From37", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3502,7 +3174,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "iqAbs", "Tag" ], "tabs":[ @@ -3521,11 +3193,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8812", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10701", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From57", - "label":"From57", + "name":"From38", + "label":"From38", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3533,7 +3205,7 @@ "IconDisplay" ], "values":[ - "id_max", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -3552,21 +3224,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8861", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10432", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"From54", + "label":"From54", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "Vq_max", - "local", + "Vd_min", "Tag" ], "tabs":[ @@ -3580,25 +3250,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8793", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9028", + "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"From38", - "label":"From38", + "name":"Mux8", + "label":"Mux8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Inputs", + "DisplayOption" ], "values":[ - "Vq_max", - "Tag" + "3", + "bar" ], "tabs":[ "Parameter Attributes" @@ -3611,16 +3281,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Mux", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8771", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8790", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", + "name":"From35", + "label":"From35", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3628,7 +3298,7 @@ "IconDisplay" ], "values":[ - "b_enaFOC", + "b_enaAdvCtrl", "Tag" ], "tabs":[ @@ -3647,11 +3317,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8770", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10174", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3659,7 +3329,7 @@ "IconDisplay" ], "values":[ - "id_Tgt", + "r_fieldWeak", "Tag" ], "tabs":[ @@ -3678,11 +3348,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8774", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8815", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3690,7 +3360,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "Vq", "Tag" ], "tabs":[ @@ -3709,11 +3379,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8844", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8853", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto23", - "label":"Goto23", + "name":"Goto31", + "label":"Goto31", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3722,7 +3392,7 @@ "IconDisplay" ], "values":[ - "iq", + "iq_limProtErr", "local", "Tag" ], @@ -3742,19 +3412,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8790", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8863", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From35", - "label":"From35", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_enaFOC", + "b_enaAdvCtrl", + "local", "Tag" ], "tabs":[ @@ -3768,16 +3440,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8766", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10434", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From58", + "label":"From58", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3785,7 +3457,7 @@ "IconDisplay" ], "values":[ - "id", + "id_min", "Tag" ], "tabs":[ @@ -3804,11 +3476,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8765", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10729", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From46", + "label":"From46", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3816,7 +3488,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "r_nLimProtMax", "Tag" ], "tabs":[ @@ -3835,11 +3507,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8816", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10437", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From60", - "label":"From60", + "name":"From20", + "label":"From20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3847,7 +3519,7 @@ "IconDisplay" ], "values":[ - "iq_min", + "Vq_min", "Tag" ], "tabs":[ @@ -3866,11 +3538,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8792", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8797", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From37", - "label":"From37", + "name":"From42", + "label":"From42", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3878,7 +3550,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "Vq_min", "Tag" ], "tabs":[ @@ -3897,89 +3569,235 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8780", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From25", - "label":"From25", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Clarke_Transform", + "label":"Clarke_Transform", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "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":[ - "Vq_max", - "Tag" + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" ], "tabs":[ - "Parameter Attributes" + "Main", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 6 + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8863", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Current_Filtering", + "label":"Current_Filtering", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "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":[ - "b_enaFOC", - "local", - "Tag" + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" ], "tabs":[ - "Parameter Attributes" + "Main", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 6 + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9028", - "className":"Simulink.Mux", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10702", + "className":"Simulink.Abs", "icon":"WebViewIcon3", - "name":"Mux8", - "label":"Mux8", + "name":"Abs1", + "label":"Abs1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "Inputs", - "DisplayOption" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime", + "ZeroCross" ], "values":[ - "3", - "bar" + "[]", + "[]", + "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" @@ -3987,27 +3805,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Mux", + "blocktype":"Abs", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8837", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9026", + "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", + "name":"Mux2", + "label":"Mux2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Inputs", + "DisplayOption" ], "values":[ - "Vd_max", - "local", - "Tag" + "2", + "bar" ], "tabs":[ "Parameter Attributes" @@ -4020,16 +3836,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Mux", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8800", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10688", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From45", - "label":"From45", + "name":"From30", + "label":"From30", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4056,20 +3872,20 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8772", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8667", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "r_inpTgtSca", - "Tag" + "reset", + "Only when execution is resumed" ], "tabs":[ "Parameter Attributes" @@ -4082,16 +3898,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"ActionPort", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8843", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8842", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto22", - "label":"Goto22", + "name":"Goto21", + "label":"Goto21", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4100,7 +3916,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "a_elecAngle", "local", "Tag" ], @@ -4120,11 +3936,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8856", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8851", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto34", - "label":"Goto34", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4133,7 +3949,7 @@ "IconDisplay" ], "values":[ - "n_limProt", + "z_ctrlMod", "local", "Tag" ], @@ -4153,85 +3969,35 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Vd_Calculation", - "label":"Vd_Calculation", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10689", + "className":"Simulink.Abs", + "icon":"WebViewIcon3", + "name":"Abs5", + "label":"Abs5", "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" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime", + "ZeroCross" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", + "[]", + "[]", + "Inherit: Inherit via back propagation", "off", + "Zero", "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", "-1", - "", - "off", - "" + "on" ], "tabs":[ - "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ @@ -4240,21 +4006,21 @@ ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"Abs", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8797", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8826", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From42", - "label":"From42", + "name":"From71", + "label":"From71", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4262,7 +4028,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "id", "Tag" ], "tabs":[ @@ -4281,21 +4047,86 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8830", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8664", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", + "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":[ + "10", + "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:10441", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From60", + "label":"From60", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "Vq_Open", - "local", + "iq_min", "Tag" ], "tabs":[ @@ -4309,16 +4140,83 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8663", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_fieldWeak", + "label":"r_fieldWeak", + "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":[ + "9", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Current_Filtering", - "label":"Current_Filtering", + "name":"FOC", + "label":"FOC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4411,11 +4309,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8858", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8856", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto36", - "label":"Goto36", + "name":"Goto34", + "label":"Goto34", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4424,7 +4322,7 @@ "IconDisplay" ], "values":[ - "r_cos", + "Vq_nLimProtMax", "local", "Tag" ], @@ -4444,11 +4342,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8806", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8768", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From50", - "label":"From50", + "name":"From11", + "label":"From11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4456,7 +4354,7 @@ "IconDisplay" ], "values":[ - "Vq", + "iq", "Tag" ], "tabs":[ @@ -4475,11 +4373,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8775", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8784", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", + "name":"From29", + "label":"From29", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4487,7 +4385,7 @@ "IconDisplay" ], "values":[ - "a_elecAngle", + "r_cos", "Tag" ], "tabs":[ @@ -4506,27 +4404,61 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8850", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10691", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Goto29", - "label":"Goto29", + "name":"n_motAbs", + "label":"n_motAbs", "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":[ - "id_min", - "local", - "Tag" + "8", + "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" @@ -4534,113 +4466,83 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Torque_Mode", - "label":"Torque_Mode", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9716", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_motEna", + "label":"b_motEna", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "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", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", - "", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", "", + "on", "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:8777", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10429", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", + "name":"From13", + "label":"From13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4648,7 +4550,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "id_Tgt", "Tag" ], "tabs":[ @@ -4667,11 +4569,54 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8663", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10365", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If1", + "label":"If1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 ~= 0", + "", + "off", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10358", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"n_motAbs", - "label":"n_motAbs", + "name":"task3", + "label":"task3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4694,7 +4639,7 @@ "OutputFunctionCall" ], "values":[ - "6", + "5", "Port number", "[]", "[]", @@ -4734,11 +4679,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8804", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10393", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From49", - "label":"From49", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4746,7 +4691,7 @@ "IconDisplay" ], "values":[ - "Vq_Open", + "task3", "Tag" ], "tabs":[ @@ -4765,11 +4710,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8823", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9718", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From67", - "label":"From67", + "name":"From21", + "label":"From21", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4777,7 +4722,7 @@ "IconDisplay" ], "values":[ - "n_limProt", + "b_motEna", "Tag" ], "tabs":[ @@ -4795,6 +4740,56 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10447", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay4", + "label":"UnitDelay4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8662", "className":"Simulink.Inport", @@ -4823,7 +4818,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "7", "Port number", "[]", "[]", @@ -4862,6 +4857,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8845", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto24", + "label":"Goto24", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8661", "className":"Simulink.Inport", @@ -4890,7 +4918,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "3", "Port number", "[]", "[]", @@ -4930,11 +4958,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8817", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10435", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From61", - "label":"From61", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4942,7 +4970,7 @@ "IconDisplay" ], "values":[ - "iq", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -4961,19 +4989,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8796", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10719", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From41", - "label":"From41", + "name":"Goto26", + "label":"Goto26", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "Vq_max", + "r_iqLimProtMax", + "local", "Tag" ], "tabs":[ @@ -4987,24 +5017,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8784", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9717", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From29", - "label":"From29", + "name":"Goto32", + "label":"Goto32", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_cos", + "b_motEna", + "local", "Tag" ], "tabs":[ @@ -5018,16 +5050,49 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9716", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8846", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto25", + "label":"Goto25", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8660", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_motEna", - "label":"b_motEna", + "name":"z_ctrlMod", + "label":"z_ctrlMod", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5050,7 +5115,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", @@ -5090,19 +5155,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8794", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8839", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"Goto19", + "label":"Goto19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "Vd", + "id_max", + "local", "Tag" ], "tabs":[ @@ -5116,144 +5183,83 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8773", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10357", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Motor_Limitations", - "label":"Motor_Limitations", + "name":"task2", + "label":"task2", "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", + "4", + "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:8803", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8794", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From48", - "label":"From48", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5261,7 +5267,7 @@ "IconDisplay" ], "values":[ - "Vq_Trq", + "Vd", "Tag" ], "tabs":[ @@ -5280,11 +5286,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8660", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8659", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlMod", - "label":"z_ctrlMod", + "name":"b_enaAdvCtrl", + "label":"b_enaAdvCtrl", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5307,7 +5313,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -5347,245 +5353,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8668", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clarke_Transform", - "label":"Clarke_Transform", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8825", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From69", + "label":"From69", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" + "GotoTag", + "IconDisplay" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8768", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:8807", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From52", - "label":"From52", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_TgtAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8826", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From71", - "label":"From71", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id", + "z_ctrlMod", "Tag" ], "tabs":[ @@ -5604,50 +5384,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8667", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "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:8815", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8857", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"Goto35", + "label":"Goto35", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "Vq", + "r_sin", + "local", "Tag" ], "tabs":[ @@ -5661,779 +5412,105 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8782", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8786", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From27", - "label":"From27", + "name":"From31", + "label":"From31", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ - "params":[ - "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:8776", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Field_Weakening", - "label":"Field_Weakening", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8659", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_enaFOC", - "label":"b_enaFOC", - "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":[ - "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:8795", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From40", - "label":"From40", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8827#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:8828#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:8767#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:8886#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:8886#out:2", - "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:8665#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:8666#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:8866#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" + "params":[ + "GotoTag", + "IconDisplay" ], "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" + "iq", + "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:8866#out:2", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8806", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From50", + "label":"From50", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "GotoTag", + "IconDisplay" ], "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" + "Vq", + "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:8866#out:3", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8787", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From32", + "label":"From32", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "GotoTag", + "IconDisplay" ], "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" + "id", + "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:8668#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8827#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6484,7 +5561,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8668#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8886#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6535,7 +5612,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9024#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8886#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6586,7 +5663,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9025#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8665#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6637,7 +5714,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8781#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8666#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6688,7 +5765,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8782#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8866#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6739,7 +5816,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8783#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8668#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6790,7 +5867,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8784#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8668#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6841,7 +5918,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8772#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9024#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6892,7 +5969,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8786#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9025#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6943,7 +6020,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8787#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8781#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6994,7 +6071,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8788#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8782#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7045,7 +6122,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8661#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8783#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7096,7 +6173,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8769#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8784#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7147,7 +6224,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8778#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8772#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7198,7 +6275,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8810#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8786#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7249,7 +6326,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8798#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8787#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7300,7 +6377,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9028#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8788#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7351,7 +6428,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8811#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8661#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7402,7 +6479,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8795#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8769#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7453,7 +6530,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9027#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8778#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7504,7 +6581,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8796#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8810#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7555,7 +6632,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8797#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8798#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7606,7 +6683,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9045#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9028#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7657,7 +6734,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9045#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8811#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7708,7 +6785,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8726#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8795#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7759,7 +6836,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8726#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9027#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7810,7 +6887,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8815#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8796#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7861,7 +6938,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8766#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8797#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7912,7 +6989,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8770#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9045#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7963,7 +7040,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8659#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9045#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8014,7 +7091,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8794#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8726#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8065,7 +7142,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8660#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8726#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8116,7 +7193,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8662#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8815#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8167,7 +7244,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8790#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8659#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8218,7 +7295,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8779#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8794#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8269,7 +7346,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8805#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8660#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8320,7 +7397,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9029#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8662#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8371,7 +7448,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9109#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8790#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8422,7 +7499,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9074#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8806#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8473,7 +7550,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9171#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8524,7 +7601,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8765#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:4", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8575,7 +7652,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8773#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8776#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8626,7 +7703,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8777#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8807#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8677,7 +7754,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8774#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8728,7 +7805,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8780#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8779,7 +7856,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8789#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:5", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8830,7 +7907,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8791#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:6", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8881,7 +7958,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8799#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:7", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8932,7 +8009,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8793#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:8", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -8983,7 +8060,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8792#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8817#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9034,7 +8111,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8800#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:11", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9085,7 +8162,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9108#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:12", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9136,7 +8213,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9108#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8825#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9187,7 +8264,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9108#out:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8663#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9238,7 +8315,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9108#out:4", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9289,7 +8366,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8801#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9340,7 +8417,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8802#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8775#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9391,7 +8468,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8803#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8664#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9442,7 +8519,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8804#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9023#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9493,7 +8570,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8806#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9026#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9544,7 +8621,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8912#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8826#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9595,7 +8672,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9142#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8768#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9646,7 +8723,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9713#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9697,7 +8774,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:4", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9716#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9748,7 +8825,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8776#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9718#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9799,7 +8876,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8807#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10173#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9850,7 +8927,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10174#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9901,7 +8978,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10357#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -9952,7 +9029,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8808#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10358#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10003,7 +9080,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8809#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10363#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10054,7 +9131,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:5", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10362#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10105,7 +9182,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10365#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10156,7 +9233,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:7", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10393#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10207,7 +9284,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:8", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10364#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10258,7 +9335,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8812#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10364#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10309,7 +9386,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8813#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10430#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10360,7 +9437,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8814#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10429#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10411,7 +9488,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8816#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10428#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10462,7 +9539,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8817#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10431#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10513,7 +9590,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:9", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10432#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10564,7 +9641,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8818#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10433#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10615,7 +9692,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:10", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10434#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10666,7 +9743,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8819#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10435#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10717,7 +9794,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8820#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10436#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10768,7 +9845,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8823#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10437#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10819,7 +9896,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8824#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10438#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10870,7 +9947,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8825#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10439#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10921,7 +9998,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8663#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10440#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -10972,7 +10049,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10441#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11023,7 +10100,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10444#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11074,7 +10151,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8775#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10445#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11125,7 +10202,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743#out:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10446#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11176,7 +10253,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8785#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10447#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11227,7 +10304,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8664#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10689#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11278,7 +10355,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9023#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10688#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11329,7 +10406,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9026#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10691#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11380,7 +10457,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743#out:4", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10697#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11431,7 +10508,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9143#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10698#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11482,7 +10559,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9655#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10701#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11533,7 +10610,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8826#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10702#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11584,7 +10661,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8768#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10707#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11635,7 +10712,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9713#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:9", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11686,7 +10763,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8771#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10726#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11737,7 +10814,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9715#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913#out:10", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11788,7 +10865,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9716#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10729#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -11839,7 +10916,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9718#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10743#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 c76d2fc..c862a83 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 2ed7429..efa5e8e 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,10 +1,10 @@ - + - + @@ -14,15 +14,15 @@ - + - + - + Start filtering only when motor is enabled (circuit closed). @@ -30,142 +30,46 @@ - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - r_phaC - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - r_phaB - - - - - - - - - + - + - + - + 1 - + - - + + - - + + - - r_phaA + + V_phaABC_FOC @@ -177,93 +81,27 @@ - - - - - - - - - - - - - - - [r_phaA] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_phaB] - - - - - - - - - - - - - - - - - - - + - + - + - - [r_phaC] + + [V_phaABC_FOC] - + @@ -276,139 +114,43 @@ - - - - - - - - - - - - - - - [r_phaA] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_phaB] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - + - + - + - - [r_phaC] + + [V_phaABC_FOC] - + - - + + - - + + - - int16 + + sfix16_En4 @@ -420,42 +162,42 @@ - + - + - + - + [i_phaAB] - + - + - - + + - + sfix16_En4 @@ -468,42 +210,42 @@ - + - + - + - + [i_phaBC] - + - + - - + + - + sfix16_En4 @@ -516,8 +258,8 @@ - - + + @@ -525,57 +267,57 @@ - + - + - + Vq - + - + Vd - + - + r_sin - + - + r_cos - + - + V_alpha - + - + V_beta @@ -588,7 +330,7 @@ - + @@ -601,15 +343,15 @@ - + - - + + - + Inv_Park_Transform @@ -622,15 +364,15 @@ - + - - + + - + sfix16_En4 @@ -643,15 +385,15 @@ - + - - + + - + sfix16_En4 @@ -670,8 +412,8 @@ - - + + @@ -679,50 +421,34 @@ - + - + - + V_alpha - + - + V_beta - - - - - - V_phaA - - - + - - V_phaB - - - - - - - - V_phaC + + V_phaABC_FOC @@ -734,7 +460,7 @@ - + @@ -747,15 +473,15 @@ - + - - + + - + Inv_Clarke_Transform @@ -768,58 +494,16 @@ - - + + - - + + - - int16 - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - int16 + + sfix16_En4 @@ -832,62 +516,62 @@ - + - + - + - + - - 8 + + 11 - + - + - - + + - + i_phaAB - + - - + + - + sfix16_En4 @@ -900,27 +584,27 @@ - + - + - + - + [i_phaAB] - + @@ -933,57 +617,57 @@ - + - + - + - - 9 + + 12 - + - + - - + + - + i_phaBC - + - - + + - + sfix16_En4 @@ -996,27 +680,27 @@ - + - + - + - + [i_phaBC] - + @@ -1029,42 +713,42 @@ - + - + - - + + - - + + - + - + - - + + - + sfix16_En4 @@ -1077,28 +761,28 @@ - - + + - + - + - + - + - + @@ -1113,7 +797,7 @@ - + @@ -1126,42 +810,42 @@ - + - + - - + + - - + + - + - + - - + + - + sfix16_En4 @@ -1173,44 +857,44 @@ - - + + - + - + - - 5 + + 4 - + - + - - + + - - r_devSignal1 + + r_devSignal2 @@ -1221,44 +905,44 @@ - - - + + + - - + + - - + + - - 4 + + -1 - - + + - - - + + + - - + + - - Vq + + sfix16_En4 @@ -1269,91 +953,120 @@ - - - + + + - - + + + + + + + + - - - - - - - - - + - - + + - - + + a_elecAngle - - + + - - + + r_sin - - + + - - + + r_cos - - - - - + + + + + + + + + + - - - + + + + + + + + + + + + + + + + + Sine_Cosine_Approximation - - + + + + + + + + - - + + - - sfix16_En4 + + sfix16_En14 - - - + + + + + + + + + - - + + - - Ini=0 + + sfix16_En14 @@ -1364,121 +1077,99 @@ - - - + + + + + + + + + - - + + - - - - - - - - u1 - - - - - - - - case [ 1 ]: - - - - - - - - case [ 2 ]: - + - - + + - - case [ 3 ]: + + - - + + - - default: + + - - - - + - - - - - - - - - - - action - + - - - + + + + + + + + + + + + + + + + + + + + + - - + + - - action + + 2 - - - - - - - - - - - action + + + - - - + + + - - + + - - action + + Vq @@ -1490,28 +1181,28 @@ - - + + - + - + - + - + - + @@ -1526,7 +1217,7 @@ - + @@ -1539,66 +1230,66 @@ - - + + - + - + - + - + i_apha - + - + i_beta - + - + r_sin - + - + r_cos - + - + iq_Raw - + - + id_Raw @@ -1606,12 +1297,12 @@ - + - + @@ -1619,20 +1310,20 @@ - + - + - - + + - + Park_Transform @@ -1640,20 +1331,20 @@ - + - + - - + + - + sfix16_En4 @@ -1661,20 +1352,20 @@ - + - + - - + + - + sfix16_En4 @@ -1686,50 +1377,50 @@ - + - + - - + + - - + + - - + + - - 6 + + - - + + - - - + + + - - + + - - r_devSignal2 + + sfix16_En4 @@ -1740,119 +1431,43 @@ - - - + + + - - - - - - - - + + - - - - - - Vq_prev - - - - - - - - Vq_Open - - - - + + - - default: { } + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Open_Mode - - - - - - - - - - - - - - - - - - - - - action + + - - - - - - - + - - + + - + sfix16_En4 @@ -1864,50 +1479,44 @@ - - - - - - - - - + + + - - + + - - + + - - + + 3 - - + + - - - + + + - - + + - - sfix16_En4 + + r_devSignal1 @@ -1918,215 +1527,549 @@ - - - + + + - - + + + + + + + + - + - - + + - - + + z_ctrlMod - - + + - - - - - - - - - - - - - - - - - - - - - - - - + + r_inpTgtScaAbs - - + + - - sfix16_En4 + + VdPrev - - - - - - - - - - - - - - - - - - - - + + - - u1 + + id_TgtAbs - - + + - - if(u1 ~= 0) + + iq - - - - - - + + + + + + + iqAbs - - - - - - + + + + + + + n_motAbs - - + + - - action + + Vd_max - - - - - - - - - - - - - - - - - - - - + + - - [Vq_min] + + Vd_min - - - - - - + + + + + + + Vq_max - - - - - - - - - - - - - - - - - - - - + + - - [r_sin] + + Vq_min - - - - - - + + + + + + + id_max - - - - - - - - - - - - - - - - - - - - + + - - [iq_limPrott] + + id_min + + + + + + + + iq_max + + + + + + + + iq_min + + + + + + + + r_iqLimProtMax + + + + + + + + r_nLimProtMax + + + + + + + + iq_limProtErr + + + + + + + + Vq_nLimProtMax + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Motor_Limitations + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) - - + + + + + + + + + + + + + + + + + action @@ -2137,28 +2080,84 @@ - - + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + - + - - + + - - [r_inpTgtSca] + + [n_mot] - + @@ -2170,28 +2169,28 @@ - - + + - + - - + + - - [id_Tgt] + + [Vq_max] - + @@ -2203,28 +2202,28 @@ - - + + - + - - + + - - [id] + + [r_cos] - + @@ -2236,28 +2235,28 @@ - - + + - + - + - - [a_elecAngle] + + [iq_min] - + @@ -2269,28 +2268,28 @@ - - + + - + - + - - [n_mot] + + [r_inpTgtSca] - + @@ -2302,28 +2301,28 @@ - - + + - + - - + + - - [id_max] + + [iq] - + @@ -2335,28 +2334,28 @@ - - + + - + - + - - [Vd_min] + + [r_inpTgtScaAbs] - + @@ -2368,28 +2367,28 @@ - - + + - + - - + + - - [Vq_prev] + + [id_Tgt] - + @@ -2401,28 +2400,28 @@ - - + + - + - + - - [Vq_Vlt] + + [id_min] - + @@ -2434,28 +2433,28 @@ - - + + - + - + - - [Vq_Spd] + + [Vd_min] - + @@ -2467,28 +2466,28 @@ - - + + - + - + - - [Vq_Trq] + + [Vd_max] - + @@ -2500,28 +2499,28 @@ - - + + - + - + - - [b_motEna] + + [task2] - + @@ -2533,28 +2532,28 @@ - - + + - + - + - - [Vq] + + [n_motAbs] - + @@ -2566,28 +2565,28 @@ - - + + - + - + - - [z_ctrlMod] + + [iqAbs] - + @@ -2599,44 +2598,95 @@ - - - + + + - - + + - - + + - - [iq_limPrott] + + [r_fieldWeak] - - + + - - - + + + + + + + + + + + + + + + + + + + + + + [VdPrev] + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + [id_TgtAbs] + + + + + + + @@ -2647,44 +2697,62 @@ - - - + + + - - + + - - + + - - [n_limProt] + + [task3] - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd] - - - - - - - - - - - sfix16_En4 + + + @@ -2695,43 +2763,43 @@ - - + + - + - + - - [n_mot] + + [id] - + - + - - + + - + sfix16_En4 @@ -2743,28 +2811,28 @@ - - + + - + - + - - [iq_max] + + [Vq_min] - + @@ -2776,44 +2844,44 @@ - - + + - + - + - - [iq_limPrott] + + [iq_limProtErr] - + - - + + - - + + - - sfix16_En4 + + sfix32_En20 @@ -2824,45 +2892,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + [iq] - - - - - + + + + - - - + + + + + + + + + + + sfix16_En4 @@ -2873,43 +2940,43 @@ - - + + - + - + - - [id_min] + + [id_max] - + - + - - + + - + sfix16_En4 @@ -2921,43 +2988,43 @@ - - + + - + - + - + [Vd_min] - + - + - - + + - + sfix16_En4 @@ -2969,43 +3036,43 @@ - - + + - + - + - + [Vd_max] - + - + - - + + - + sfix16_En4 @@ -3017,28 +3084,28 @@ - - + + - + - - + + - - [id_TgtAbs] + + [Vq] - + @@ -3050,43 +3117,43 @@ - - + + - + - + - - [Vq_prev] + + [iq_max] - + - + - - + + - + sfix16_En4 @@ -3098,43 +3165,43 @@ - - + + - + - - + + - - [r_inpTgtSca] + + [Vd_max] - + - + - - + + - + sfix16_En4 @@ -3146,76 +3213,43 @@ - - - - - - - - - - - - - - - - [Vd] - - - - - - - - - - - - - - - - - - - + + - + - + - - [Vd_max] + + [id_TgtAbs] - + - + - - + + - + sfix16_En4 @@ -3227,152 +3261,44 @@ - - - + + + - - - - - - - - + + - - - - - - r_inpTgtSca - - - - - - - - Vq_max - - - - - - - - Vq_min - - - - - - - - iq_limProt - - - - - - - - n_limProt - - - - - - - - Vq_Vlt - - - - + + - - case: { } + + [task2] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Voltage_Mode - - - - - - - - - - - - - - - - - - - - - action + + - - - - - - - - + + - - + + - - sfix16_En4 + + boolean @@ -3383,49 +3309,43 @@ - - - - - - - - + + - + - + - - [Vq_Vlt] + + [r_inpTgtScaAbs] - + - + - - + + - + sfix16_En4 @@ -3437,43 +3357,43 @@ - - + + - + - + - - [Vd_min] + + [Vq_nLimProtMax] - + - + - - + + - + sfix16_En4 @@ -3485,44 +3405,29 @@ - - - + + + - - + + - - + + - - [z_ctrlMod] + + [r_nLimProtMax] - - - - - - - - - - - - - - - - - uint8 + + @@ -3533,43 +3438,43 @@ - - - + + + - - + + - - + + - - + + [r_iqLimProtMax] - - + + - + - - + + - + sfix16_En4 @@ -3581,43 +3486,43 @@ - - + + - + - + - - [Vq_Spd] + + [iq] - + - + - - + + - + sfix16_En4 @@ -3629,52 +3534,44 @@ - - - + + + - - + + - - - - - - u1 - - - - + + - - if(u1 ~= 0) + + [Vq_max] - - + + - - + + - - + + - - action + + sfix16_En4 @@ -3685,43 +3582,43 @@ - - + + - + - + - - [iq_max] + + [r_inpTgtScaAbs] - + - + - - + + - + sfix16_En4 @@ -3733,43 +3630,43 @@ - - + + - + - + - - [id_Tgt] + + [n_mot] - + - + - - + + - + sfix16_En4 @@ -3781,43 +3678,43 @@ - - + + - + - + - - [id] + + [Vd] - + - + - - + + - + sfix16_En4 @@ -3829,43 +3726,43 @@ - - + + - + - + - - [iq] + + [n_motAbs] - + - + - - + + - + sfix16_En4 @@ -3877,151 +3774,43 @@ - - - + + + - - - - - - - - + + - - - - - - r_inpTgtSca - - - - - - - - Vq_max - - - - - - - - Vq_min - - - - - - - - n_mot - - - - - - - - iq_limProt - - - - - - - - Vq_Spd - - - - + + - - case: { } + + [id_Tgt] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Speed_Mode - - - - - - - - - - - - - - - - - - - - - action + + - - - - - - - + - - + + - + sfix16_En4 @@ -4033,35 +3822,44 @@ - - - - - - - - - + + + - - + + - - + + - - [iq_min] + + [Vq] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -4072,44 +3870,44 @@ - - + + - + - + - - [Vq_min] + + [r_sin] - + - - + + - - + + - - sfix16_En4 + + sfix16_En14 @@ -4120,44 +3918,44 @@ - - + + - + - + - - [n_motAbs] + + [r_cos] - + - - + + - - + + - - sfix16_En4 + + sfix16_En14 @@ -4168,43 +3966,43 @@ - - + + - + - - + + - + [r_sin] - + - + - - + + - + sfix16_En14 @@ -4216,44 +4014,44 @@ - - + + - + - - + + - - [r_sin] + + [z_ctrlMod] - + - - + + - - + + - - sfix16_En14 + + uint8 @@ -4264,43 +4062,43 @@ - - + + - + - + - - [Vd] + + [VdPrev] - + - + - - + + - + sfix16_En4 @@ -4312,44 +4110,44 @@ - - + + - + - + - - [z_ctrlMod] + + [a_elecAngle] - + - - + + - - + + - - uint8 + + sfix16_En6 @@ -4360,43 +4158,43 @@ - - + + - + - + - - [n_mot] + + [Vq_max] - + - + - - + + - + sfix16_En4 @@ -4408,43 +4206,43 @@ - - - + + + - - + + - - + + - - + + [r_inpTgtSca] - - + + - + - - + + - + sfix16_En4 @@ -4456,43 +4254,43 @@ - - + + - + - - + + - - [b_motEna] + + [b_enaAdvCtrl] - + - + - - + + - + boolean @@ -4504,43 +4302,43 @@ - - + + - + - + - - [Vq_min] + + [iqAbs] - + - + - - + + - + sfix16_En4 @@ -4552,43 +4350,43 @@ - - + + - + - - + + - - [id_max] + + [r_inpTgtSca] - + - + - - + + - + sfix16_En4 @@ -4600,29 +4398,44 @@ - - - + + + - - + + - - + + - - [Vq_max] + + [Vd_min] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -4633,43 +4446,43 @@ - - - + + + - - + + - - + + - - [Vq_max] + + - - + + - + - - + + - + sfix16_En4 @@ -4681,43 +4494,43 @@ - - + + - + - + - - [b_enaFOC] + + [b_enaAdvCtrl] - + - + - - + + - + boolean @@ -4729,43 +4542,43 @@ - - + + - + - - + + - - [id_Tgt] + + [r_fieldWeak] - + - + - - + + - + sfix16_En4 @@ -4777,43 +4590,43 @@ - - + + - + - - + + - - [r_inpTgtSca] + + [Vq] - + - + - - + + - + sfix16_En4 @@ -4825,28 +4638,28 @@ - - + + - + - - + + - - [iq] + + [iq_limProtErr] - + @@ -4858,44 +4671,29 @@ - - - + + + - - + + - - + + - - [b_enaFOC] + + [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - boolean + + @@ -4906,43 +4704,43 @@ - - + + - + - + - - [id] + + [id_min] - + - + - - + + - + sfix16_En4 @@ -4954,43 +4752,43 @@ - - + + - + - + - - [r_inpTgtSca] + + [r_nLimProtMax] - + - + - - + + - + sfix16_En4 @@ -5002,43 +4800,43 @@ - - + + - + - + - - [iq_min] + + [Vq_min] - + - + - - + + - + sfix16_En4 @@ -5050,43 +4848,43 @@ - - + + - + - + - - [r_inpTgtSca] + + [Vq_min] - + - + - - + + - + sfix16_En4 @@ -5098,77 +4896,128 @@ - - - + + + - - + + + + + + + + - - + + - - [Vq_max] + + i_phaAB + + + + + + + + i_phaBC + + + + + + + + i_alpha + + + + + + + + i_beta - - + + + + + + + + - - - + + + + + + + + + - - + + - - sfix16_En4 + + Clarke_Transform - - - - - - - - - - - - - - - + - - + + + + + + + + + + + - - [b_enaFOC] + + sfix16_En4 - - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -5179,77 +5028,163 @@ - - - + + + + + + + + + - - + + + + + + + + + + + + + + + + + + iq_raw + + + + + + + + id_raw + + + + + + + + iq + + + + + + + + id + + + + + + + + if { } + + - + - - - + + + + - - + + - - - + + + + + + + + + + + + + + + + + Current_Filtering - + + + + + + + - - + + - + sfix16_En4 - - - - - - - - - - - - - - - + - - + + + + + + + + + + + - - [Vd_max] + + sfix16_En4 - - - + + + + + + + + + + + + + + + + + action @@ -5260,91 +5195,81 @@ - - - + + + + + + + + + - - + + - + - - + + - - [iq] + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - sfix16_En4 + + - - - - - - - - - - - - + + - - - - - - - [r_inpTgtSca] - - - + + - + - - + + - + sfix16_En4 @@ -5356,62 +5281,44 @@ - - - + + + - - + + - - + + - - [n_motAbs] + + - - + + - - - - - - - - - - - - - - - + + + + - - + + - - [n_limProt] - - - - - - - + + sfix16_En4 @@ -5422,159 +5329,43 @@ - - - + + + - - - - - - - - + + - - - - - - id_Tgt - - - - - - - - id - - - - - - - - Vd_max - - - - - - - - Vd_min - - - - - - - - id_max - - - - - - - - id_min - - - - - - - - Vd - - - - + + - - if { } + + [iq] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Vd_Calculation - - - - - - - - - - - - - - - - - - - - - action + + - - - - - - - - - - + + + + - - + + - + sfix16_En4 @@ -5586,50 +5377,44 @@ - - - - - - - - - + + + - - + + - - + + - - [Vq_min] + + if { } - - + + - - - + + + - - + + - - sfix16_En4 + + Action Port @@ -5640,28 +5425,28 @@ - - + + - + - + - - [Vq_Open] + + [a_elecAngle] - + @@ -5673,196 +5458,157 @@ - - - + + + - - - - - - - - + + - - + + - - iq_raw + + [z_ctrlMod] + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - id_raw + + - - + + - - iq + + - - + + - - id + + - - + + - - if { } + + - - - - - - - - - - + - - - - - - - - - - - - - - - - - Current_Filtering - + - - - - - - - - - - - - - - - - - sfix16_En4 + + + - - - - - - - + - - + + - + sfix16_En4 - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - + + + - - + + - - + + - - [r_cos] + + [id] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -5873,44 +5619,59 @@ - - - + + + - - + + - - + + - - [Vq] + + 10 - - + + + + + + + + + + + + + + + + + a_elecAngle - + - - + + - - sfix16_En4 + + sfix16_En6 @@ -5921,44 +5682,44 @@ - - + + - + - - + + - - [a_elecAngle] + + [iq_min] - + - - + + - - + + - - ufix16_En6 + + sfix16_En4 @@ -5969,29 +5730,59 @@ - - - + + + - - + + - - + + - - [id_min] + + 9 - - + + + + + + + + + + + + + + + + + r_fieldWeak + + + + + + + + + + + + + + + sfix16_En4 @@ -6002,221 +5793,300 @@ - - - + + + - + - - + + - - + + + + + + b_enaAdvCtrl + + + + - + + z_ctrlMod + + + + + + + r_inpTgtSca - - + + + + + + r_inpTgtScaAbs + + + + + + + + n_mot + + + + + + + + id_Tgt + + + + + + + + id + + + + + + + + iq + + + + + + + + Vd_max + + + + - + + Vd_min + + + + + + + Vq_max - - + + - + Vq_min + + + + + + + id_max + + + + + + + + id_min + + + + + + + + iq_max + + + + + + + + iq_min + + + + + + + + r_iqLimProtMax + - + - - iq + + r_nLimProtMax - + - - iq_max + + iq_limProtErr - + - - iq_min + + Vq_nLimProtMax - + - - n_limProt + + Vd - + - - Vq_Trq + + Vq - + - - case: { } + + if { } - + - - + + - + - - + + - + - - Torque_Mode + + FOC - + - - + + - + - - action + + sfix16_En4 - + - - + + - + - - sfix16_En4 + + action - - - - - - - - - - - - - - - - - - - - - + - - - + + + + - - [Vq_min] - - - - - - - - - - - - - + - - + + - + sfix16_En4 @@ -6228,59 +6098,35 @@ - - - + + + + + + + + + - - + + - - + + - - 6 + + [Vq_nLimProtMax] - - - - - - - - - - - - - - - - - n_motAbs - - - - - - - - - - - - - - - sfix16_En4 + + @@ -6291,43 +6137,43 @@ - - + + - + - - + + - - [Vq_Open] + + [iq] - + - + - - + + - + sfix16_En4 @@ -6339,107 +6185,44 @@ - - + + - + - + - - [n_limProt] + + [r_cos] - + - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - n_mot - - - - - - - + + - - + + - - sfix16_En4 + + sfix16_En14 @@ -6450,58 +6233,58 @@ - - + + - + - + - - 4 + + 8 - + - - + + - - + + - - r_inpTgtSca + + n_motAbs - + - - + + - + sfix16_En4 @@ -6513,44 +6296,59 @@ - - - + + + - - + + - - + + - - [iq] + + 6 - - + + + + + + + + + + + + + + + + + b_motEna - - + + - - + + - - sfix16_En4 + + boolean @@ -6561,43 +6359,43 @@ - - + + - + - + - - [Vq_max] + + [id_Tgt] - + - + - - + + - + sfix16_En4 @@ -6609,44 +6407,52 @@ - - - + + + - - + + - - + + - - [r_cos] + + u1 + + + + + + + + if(u1 ~= 0) - - + + - - + + - - + + - - sfix16_En14 + + action @@ -6657,58 +6463,58 @@ - - + + - + - + - - 3 + + 5 - + - - + + - - + + - - b_motEna + + task3 - + - - + + - + boolean @@ -6720,44 +6526,44 @@ - - + + - + - + - - [Vd] + + [task3] - + - - + + - - + + - - sfix16_En4 + + boolean @@ -6768,44 +6574,44 @@ - - + + - + - - + + - - [Vq_max] + + [b_motEna] - + - - + + - - + + - - sfix16_En4 + + boolean @@ -6816,383 +6622,153 @@ - - - + + + - - - - - - - - + + - - - - - - - - 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_limProt - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - Motor_Limitations - - - - - - - - - - - - - + + - - + + - - sfix16_En4 - - - - - - - - - - - - - + + - - + + - - sfix16_En4 + + - - - - - - - - - - - - - - - - - sfix16_En4 - + - - - - - - - - - - - - - - - - - sfix16_En4 + + + + + + + - - - - - - - - - + + + - - + + - - sfix16_En4 + + Ini=0 - - - - - - - + - - + + - + sfix16_En4 - - - - - - - - - - + + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + 7 - - - - - - - - - - - - - - - - - sfix16_En4 + + + - - - - - - - - - + + + - - + + - - sfix16_En4 + + n_mot - - - - - - - + - - + + - + sfix16_En4 @@ -7204,50 +6780,29 @@ - - - - - - - - - + + + - - + + - - + + - - [Vq_Trq] + + [id] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -7258,59 +6813,59 @@ - - + + - + - + - - 2 + + 3 - + - - + + - - + + - - z_ctrlMod + + r_inpTgtSca - - + + - - + + - - uint8 + + sfix16_En4 @@ -7321,128 +6876,77 @@ - - - + + + - - - - - - - - + + - - - - - - i_phaAB - - - - - - - - i_phaBC - - - - - - - - i_alpha - - - - + + - - i_beta + + [r_inpTgtSca] - - - - - - - - + + - - - - - - - - - + + + - - + + - - Clarke_Transform + + sfix16_En4 - - - - - - - - - - + + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + [r_iqLimProtMax] - - - - - - - - - - - - - - - - - sfix16_En4 + + + @@ -7453,50 +6957,62 @@ - - - - - - - - - + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - [iq] + + [iq_max] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -7507,59 +7023,59 @@ - - + + - + - + - - 7 + + 2 - + - - + + - - + + - - a_elecAngle + + z_ctrlMod - - + + - - + + - - ufix16_En6 + + uint8 @@ -7570,44 +7086,29 @@ - - - + + + - - + + - - + + - - [id_TgtAbs] + + [id_max] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -7618,92 +7119,59 @@ - - - + + + - - + + - - + + - - [id] + + 4 - - + + - - - - - - - - - - - sfix16_En4 + + + - - - - - - - - - - - - - - - - - - - - + + - - if { } - - - - - - - + + task2 - - - + + + - - + + - - Action Port + + boolean @@ -7714,43 +7182,43 @@ - - + + - + - - + + - - [Vq] + + [Vd] - + - + - - + + - + sfix16_En4 @@ -7762,44 +7230,59 @@ - - - + + + - - + + - - + + - - [r_cos] + + 1 - - + + + + + + + + + + + + + + + + + b_enaAdvCtrl - - + + - - + + - - sfix16_En14 + + boolean @@ -7810,44 +7293,44 @@ - - + + - + - + - - [Vd] + + [z_ctrlMod] - + - - + + - - + + - - sfix16_En4 + + uint8 @@ -7858,193 +7341,76 @@ - - - + + + - - - - - - - - + + - - - - - - a_elecAngle - - - - - - - - r_inpTgtSca - - - - - - - - n_motAbs - - - - - - - - r_sin - - - - - - - - r_cos - - - - - - - - id_Tgt - - - - + + - - id_TgtAbs + + [r_sin] - - - - - - - - + + - - - - - - - - - - - - - - - - - Field_Weakening - - + + + + + + + + + - - - - - - - - - - - - - - - - - - sfix16_En14 - - + + - - - - - - - - - - + - - + + - - sfix16_En14 + + [iq] - - - - - - - - - - - - - - - - - sfix16_En4 + + + - - - - - - - + - - + + - + sfix16_En4 @@ -8056,65 +7422,44 @@ - - - - - - - - - + + + - - + + - - + + - - 1 + + [Vq] - - - - - - - - - - - - - - - - - b_enaFOC + + - - + + - - + + - - boolean + + sfix16_En4 @@ -8125,43 +7470,43 @@ - - + + - + - + - - [Vq] + + [id] - + - + - - + + - + sfix16_En4 @@ -8174,39 +7519,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -8216,11 +7533,11 @@ - + - + @@ -8230,11 +7547,11 @@ - + - + @@ -8244,11 +7561,11 @@ - + - + @@ -8258,11 +7575,11 @@ - + - + @@ -8272,39 +7589,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -8314,11 +7603,11 @@ - + - + @@ -8328,11 +7617,11 @@ - + - + @@ -8342,11 +7631,11 @@ - + - + @@ -8356,11 +7645,11 @@ - + - + @@ -8370,11 +7659,11 @@ - + - + @@ -8384,11 +7673,11 @@ - + - + @@ -8398,11 +7687,11 @@ - + - + @@ -8412,11 +7701,11 @@ - + - + @@ -8426,11 +7715,11 @@ - + - + @@ -8440,11 +7729,11 @@ - + - + @@ -8454,11 +7743,11 @@ - + - + @@ -8468,11 +7757,11 @@ - + - + @@ -8482,11 +7771,11 @@ - + - + @@ -8496,11 +7785,11 @@ - + - + @@ -8510,11 +7799,11 @@ - + - + @@ -8524,11 +7813,11 @@ - + - + @@ -8538,11 +7827,11 @@ - + - + @@ -8552,11 +7841,11 @@ - + - + @@ -8566,11 +7855,11 @@ - + - + @@ -8580,11 +7869,11 @@ - + - + @@ -8594,11 +7883,11 @@ - + - + @@ -8608,11 +7897,11 @@ - + - + @@ -8622,11 +7911,11 @@ - + - + @@ -8637,31 +7926,31 @@ - + - + - + - + - + - + @@ -8671,31 +7960,31 @@ - + - + - + - + - + - + @@ -8705,31 +7994,31 @@ - + - + - + - + - + - + @@ -8739,31 +8028,31 @@ - + - + - + - + - + - + @@ -8772,39 +8061,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -8818,7 +8079,7 @@ - + @@ -8828,11 +8089,11 @@ - + - + @@ -8846,7 +8107,7 @@ - + @@ -8856,11 +8117,11 @@ - + - + @@ -8870,1039 +8131,1003 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - - - - - - - - - - - - - - - - - - + - + - + - - - - + - + - + - + - - - - + - - - - - + - + - - - - - + - + + + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - - + + - + - - - - + - - - - - + - + - - - - - + - + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - - + + - + - + - + - + - + - + @@ -9911,5 +9136,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.json index 7724a65..d5eac28 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,84 +1,4 @@ [ - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8725", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"i_beta", - "label":"i_beta", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8723", "className":"Simulink.Constant", @@ -129,24 +49,24 @@ } }, { - "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":[ - "Inputs", "InitialOutput", "AllowUnequalInputPortWidths", - "InputPortOffsets" + "InputPortOffsets", + "Inputs" ], "values":[ - "2", "[]", "off", - "[]" + "[]", + "2" ], "tabs":[ "Parameter Attributes", @@ -154,7 +74,7 @@ ], "tabs_idx":[ 0, - 3 + 1 ] }, "viewer":{ @@ -168,24 +88,28 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8721", - "className":"Simulink.Merge", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8720", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"Merge", - "label":"Merge", + "name":"If1", + "label":"If1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ - "Inputs", - "InitialOutput", - "AllowUnequalInputPortWidths", - "InputPortOffsets" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" ], "values":[ - "2", - "[]", - "off", - "[]" + "1", + "u1 ~= 0", + "", + "on", + "-1", + "on" ], "tabs":[ "Parameter Attributes", @@ -193,7 +117,7 @@ ], "tabs_idx":[ 0, - 3 + 4 ] }, "viewer":{ @@ -202,33 +126,29 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Merge", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8720", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8722", + "className":"Simulink.Merge", "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", + "name":"Merge1", + "label":"Merge1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets", + "Inputs" ], "values":[ - "1", - "u1 ~= 0", - "", - "on", - "-1", - "on" + "[]", + "off", + "[]", + "2" ], "tabs":[ "Parameter Attributes", @@ -236,7 +156,7 @@ ], "tabs_idx":[ 0, - 4 + 1 ] }, "viewer":{ @@ -245,7 +165,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"Merge", "masktype":"" } }, @@ -283,74 +203,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8724", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8719", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"i_alpha", - "label":"i_alpha", + "name":"Goto6", + "label":"Goto6", "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" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "i_beta", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -358,16 +231,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8719", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8717", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -376,7 +249,7 @@ "IconDisplay" ], "values":[ - "i_beta", + "i_betaAB", "local", "Tag" ], @@ -396,11 +269,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8715", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8714", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -409,7 +282,7 @@ "IconDisplay" ], "values":[ - "i_phaBC", + "i_phaAB", "local", "Tag" ], @@ -462,11 +335,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8714", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8712", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -475,7 +348,7 @@ "IconDisplay" ], "values":[ - "i_phaAB", + "i_alpha", "local", "Tag" ], @@ -495,19 +368,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8711", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8715", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "i_phaBC", + "local", "Tag" ], "tabs":[ @@ -521,16 +396,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8710", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8711", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -557,11 +432,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8707", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8706", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -569,7 +444,7 @@ "IconDisplay" ], "values":[ - "i_beta", + "i_alpha", "Tag" ], "tabs":[ @@ -588,11 +463,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8708", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8705", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -600,7 +475,7 @@ "IconDisplay" ], "values":[ - "i_phaAB", + "i_betaBC", "Tag" ], "tabs":[ @@ -619,11 +494,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8706", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8707", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -631,7 +506,7 @@ "IconDisplay" ], "values":[ - "i_alpha", + "i_beta", "Tag" ], "tabs":[ @@ -650,11 +525,91 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8705", + "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:8704", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -662,7 +617,7 @@ "IconDisplay" ], "values":[ - "i_betaBC", + "i_betaAB", "Tag" ], "tabs":[ @@ -681,11 +636,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8704", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8708", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -693,7 +648,7 @@ "IconDisplay" ], "values":[ - "i_betaAB", + "i_phaAB", "Tag" ], "tabs":[ @@ -743,21 +698,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8712", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8702", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "i_alpha", - "local", + "i_alphaAB", "Tag" ], "tabs":[ @@ -771,16 +724,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8717", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8716", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ @@ -789,7 +742,7 @@ "IconDisplay" ], "values":[ - "i_betaAB", + "i_alphaBC", "local", "Tag" ], @@ -808,6 +761,86 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8724", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"i_alpha", + "label":"i_alpha", + "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":[ + "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:8671", "className":"Simulink.SubSystem", @@ -937,88 +970,116 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8670", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"i_phaBC", - "label":"i_phaBC", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8686", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Clarke_PhasesBC", + "label":"Clarke_PhasesBC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "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":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "on", + "", + "", "off", "", - "on", + "void_void", "off", "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", - "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8716", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8710", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "i_alphaBC", - "local", + "i_phaBC", "Tag" ], "tabs":[ @@ -1032,16 +1093,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "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":[ @@ -1064,7 +1125,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -1104,130 +1165,69 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8686", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clarke_PhasesBC", - "label":"Clarke_PhasesBC", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8669", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"i_phaAB", + "label":"i_phaAB", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", - "", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", "", + "on", "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" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "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", + "blocktype":"Inport", "masktype":"" } }, diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.png index e74f030..5e946db 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 4d02ec2..c10f455 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,54 +10,6 @@ - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - i_beta - - - - - - - @@ -71,11 +23,11 @@ - + - + b_selPhaABCurrMeas @@ -93,11 +45,11 @@ - + - + b_selPhaABCurrMeas @@ -108,11 +60,11 @@ - + - + boolean @@ -124,29 +76,29 @@ - - - + + + - + - + - + - + - + @@ -161,22 +113,22 @@ - + - + - - + + - + sfix16_En4 @@ -188,60 +140,75 @@ - - - + + + - - + + - + - - + + - - + + u1 - - + + - - + + if(u1 ~= 0) + + + + + + + + else - - - - - + + + + - - - + + + + + + + + + + + action - - + + - - + + - - sfix16_En4 + + action @@ -252,75 +219,60 @@ - - - + + + - - + + - - - - - - - - u1 - + - - + + - - if(u1 ~= 0) + + - - + + - - else + + - - - - + - - - - - - - - - - - action + + + + + + + - - + + - - + + - - action + + sfix16_En4 @@ -341,11 +293,11 @@ - + - + [i_betaBC] @@ -364,44 +316,29 @@ - - - + + + - - + + - - + + - - 1 + + [i_beta] - - - - - - - - - - - - - - - - - i_alpha + + @@ -412,28 +349,28 @@ - - + + - + - + - - [i_beta] + + [i_betaAB] - + @@ -445,28 +382,28 @@ - - + + - + - + - - [i_phaBC] + + [i_phaAB] - + @@ -488,11 +425,11 @@ - + - + [i_alphaAB] @@ -511,28 +448,28 @@ - - + + - + - + - - [i_phaAB] + + [i_alpha] - + @@ -544,21 +481,54 @@ - - - + + + - - + + - - + + + + + + [i_phaBC] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + [i_phaBC] @@ -576,11 +546,11 @@ - + - + sfix16_En4 @@ -592,43 +562,91 @@ - - + + - + - + - - [i_phaBC] + + [i_alpha] - + - + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + - + + + + + [i_betaBC] + + + + + + + + + + + + + + + + + + - + sfix16_En4 @@ -650,11 +668,11 @@ - + - + [i_beta] @@ -672,11 +690,11 @@ - + - + sfix16_En4 @@ -688,44 +706,44 @@ - - - + + + - - + + - - + + - - [i_phaAB] + + 2 - - + + - - - + + + - - + + - - sfix16_En4 + + i_beta @@ -736,43 +754,43 @@ - - + + - + - + - - [i_alpha] + + [i_betaAB] - + - + - - + + - + sfix16_En4 @@ -784,43 +802,43 @@ - - + + - + - + - - [i_betaBC] + + [i_phaAB] - + - + - - + + - + sfix16_En4 @@ -832,43 +850,43 @@ - - + + - + - + - - [i_betaAB] + + [i_alphaBC] - + - + - - + + - + sfix16_En4 @@ -880,43 +898,43 @@ - - + + - + - + - - [i_alphaBC] + + [i_alphaAB] - + - + - - + + - + sfix16_En4 @@ -928,28 +946,28 @@ - - + + - + - + - - [i_alpha] + + [i_alphaBC] - + @@ -961,29 +979,44 @@ - - - + + + - - + + - - + + - - [i_betaAB] + + 1 - - + + + + + + + + + + + + + + + + + i_alpha @@ -996,7 +1029,7 @@ - + @@ -1010,43 +1043,43 @@ - + - + i_phaA - + - + i_phaB - + - + i_alphaAB - + - + i_betaAB - + - + if { } @@ -1076,11 +1109,11 @@ - + - + Clarke_PhasesAB @@ -1097,11 +1130,11 @@ - + - + sfix16_En4 @@ -1118,11 +1151,11 @@ - + - + action @@ -1139,11 +1172,11 @@ - + - + sfix16_En4 @@ -1171,11 +1204,11 @@ - + - + [i_phaAB] @@ -1193,11 +1226,11 @@ - + - + sfix16_En4 @@ -1209,168 +1242,9 @@ - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - i_phaBC - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_alphaBC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - i_phaAB - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - + + + @@ -1384,43 +1258,43 @@ - + - + i_phaB - + - + i_phaC - + - + i_alphaBC - + - + i_betaBC - + - + else { } @@ -1450,11 +1324,11 @@ - + - + Clarke_PhasesBC @@ -1467,16 +1341,16 @@ - - + + - - + + - - action + + sfix16_En4 @@ -1488,16 +1362,16 @@ - - + + - - + + - - sfix16_En4 + + action @@ -1513,11 +1387,11 @@ - + - + sfix16_En4 @@ -1529,49 +1403,175 @@ - + - + - + - + - - [i_alphaAB] + + [i_phaBC] - + - + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + i_phaBC + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + i_phaAB + + + + + + - + - + 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 12ebfbc..40daabe 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 @@ -188,51 +188,105 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8678", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8681", + "className":"Simulink.SignalConversion", "icon":"WebViewIcon3", - "name":"Gain4", - "label":"Gain4", + "name":"Signal Conversion2", + "label":"Signal Conversion2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "inspector":{ "params":[ - "Gain", - "Multiplication", + "ConversionOutput", + "OutDataTypeStr", + "OverrideOpt" + ], + "values":[ + "Signal copy", + "Inherit: auto", + "off" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SignalConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8684", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"i_betaAB", + "label":"i_betaAB", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", + "inspector":{ + "params":[ + "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/sqrt(3)", - "Element-wise(K.*u)", + "2", + "Port number", "[]", "[]", - "Inherit: Same as input", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", - "Zero", "off", "[]", - "[]", - "Inherit: Inherit via internal rule", - "-1" + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", "Signal Attributes", - "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, 2, - 8, 11 ] }, @@ -242,16 +296,49 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8675", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8680", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto15", + "label":"Goto15", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_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:8676", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "inspector":{ "params":[ @@ -259,7 +346,7 @@ "IconDisplay" ], "values":[ - "i_phaA", + "i_phaB", "Tag" ], "tabs":[ @@ -278,21 +365,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8679", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8675", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "i_phaA", - "local", "Tag" ], "tabs":[ @@ -306,16 +391,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "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":[ @@ -333,7 +418,7 @@ "SampleTime" ], "values":[ - "2/sqrt(3)", + "1/sqrt(3)", "Element-wise(K.*u)", "[]", "[]", @@ -400,6 +485,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8679", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_phaA", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8673", "className":"Simulink.Inport", @@ -467,70 +585,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8680", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "i_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: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:8672", "className":"Simulink.Inport", @@ -599,72 +653,51 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8684", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8677", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"i_betaAB", - "label":"i_betaAB", + "name":"Gain2", + "label":"Gain2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Gain", + "Multiplication", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" ], "values":[ - "2", - "Port number", + "2/sqrt(3)", + "Element-wise(K.*u)", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "Inherit: Same as input", "off", + "Zero", "off", "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "[]", + "Inherit: Inherit via internal rule", + "-1" ], "tabs":[ "Main", "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, 2, + 8, 11 ] }, @@ -674,40 +707,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8681", - "className":"Simulink.SignalConversion", - "icon":"WebViewIcon3", - "name":"Signal Conversion2", - "label":"Signal Conversion2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8671", - "inspector":{ - "params":[ - "ConversionOutput", - "OutDataTypeStr", - "OverrideOpt" - ], - "values":[ - "Signal copy", - "Inherit: auto", - "off" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SignalConversion", + "blocktype":"Gain", "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 5d73a5d..1f11d03 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 @@ -184,43 +184,171 @@ - - - + + + - - + + - + - + - - 1/sqrt(3) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -232,44 +360,44 @@ - - - + + + - - + + - - + + - - [i_phaA] + + 2 - - + + - - - + + + - - + + - - sfix16_En4 + + i_betaAB @@ -280,28 +408,28 @@ - - + + - + - + - - [i_phaA] + + [i_phaB] - + @@ -313,43 +441,43 @@ - - - + + + - - + + - - + + - - 2/sqrt(3) + + [i_phaB] - - + + - + - - + + - + sfix16_En4 @@ -361,44 +489,44 @@ - - - + + + - - + + - - + + - - if { } + + [i_phaA] - - + + - - - + + + - - + + - - Action Port + + sfix16_En4 @@ -409,58 +537,43 @@ - - - + + + - - + + - - + + - - 2 + + 1/sqrt(3) - - + + - - - + + + - - - - - - i_phaB - - - - - - - - - - - + + - + sfix16_En4 @@ -472,29 +585,44 @@ - - - + + + - - + + - - + + - - [i_phaB] + + if { } - - + + + + + + + + + + + + + + + + + Action Port @@ -505,44 +633,29 @@ - - - + + + - - + + - - + + - - [i_phaB] + + [i_phaA] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -553,58 +666,58 @@ - - + + - + - + - - 1 + + 2 - + - + - - + + - - i_phaA + + i_phaB - + - - + + - + sfix16_En4 @@ -616,44 +729,59 @@ - - + + - + - + - - 2 + + 1 - + - - + + - - + + - - i_betaAB + + i_phaA + + + + + + + + + + + + + + + sfix16_En4 @@ -664,171 +792,43 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + 2/sqrt(3) - - - - - - - - - - + + - + - + - + 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 2e97661..5301809 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 @@ -128,6 +128,86 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8699", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"i_alphaBC", + "label":"i_alphaBC", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "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:8698", "className":"Simulink.Sum", @@ -305,37 +385,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8693", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_phaC", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8692", "className":"Simulink.From", @@ -398,37 +447,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8690", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_phaB", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8689", "className":"Simulink.ActionPort", @@ -460,39 +478,6 @@ "masktype":"" } }, - { - "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:8688", "className":"Simulink.Inport", @@ -561,74 +546,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8699", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8690", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"i_alphaBC", - "label":"i_alphaBC", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "GotoTag", + "IconDisplay" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "i_phaB", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -636,7 +572,40 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"From", + "masktype":"" + } + }, + { + "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":"" } }, @@ -740,6 +709,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8693", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8686", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_phaC", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8691#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8686_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8686_d.svg index a46a9c2..0a32ec4 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 @@ -110,6 +110,54 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + i_alphaBC + + + + + + + + @@ -122,27 +170,27 @@ - + - + - + - + - + - + @@ -160,11 +208,11 @@ - + - + sfix16_En4 @@ -186,19 +234,19 @@ - + - + - + - + @@ -216,11 +264,11 @@ - + - + sfix16_En4 @@ -242,11 +290,11 @@ - + - + 1/sqrt(3) @@ -263,60 +311,12 @@ - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaC] - - - - - - - - - - - - - - - - + - + sfix16_En4 @@ -422,54 +422,6 @@ - - - - - - - - - - - - - - - - - - [i_phaB] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -482,11 +434,11 @@ - + - + else { } @@ -504,11 +456,11 @@ - + - + Action Port @@ -518,39 +470,6 @@ - - - - - - - - - - - - - - - - - - [i_phaC] - - - - - - - - - - - - - - - @@ -563,11 +482,11 @@ - + - + 2 @@ -585,11 +504,11 @@ - + - + i_phaC @@ -600,11 +519,11 @@ - + - + sfix16_En4 @@ -616,44 +535,77 @@ - - - + + + - - + + - - + + - - 1 + + [i_phaB] - - + + - - - + + + - - + + - - i_alphaBC + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaC] + + + + + + + @@ -674,11 +626,11 @@ - + - + 1 @@ -696,11 +648,11 @@ - + - + i_phaB @@ -711,11 +663,11 @@ - + - + sfix16_En4 @@ -737,11 +689,11 @@ - + - + [i_phaB] @@ -758,6 +710,54 @@ + + + + + + + + + + + + + + + + + + [i_phaC] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -886,5 +886,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.json index 47a853f..1763ae0 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,42 +1,26 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8740", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8737", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"cf_currFilt", - "label":"cf_currFilt", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "cf_currFilt", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", - "off", - "inf" + "id", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -44,79 +28,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8742", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8734", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"id", - "label":"id", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "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" + "iq", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -124,7 +61,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Goto", "masktype":"" } }, @@ -222,21 +159,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8736", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8733", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "id_raw", - "local", "Tag" ], "tabs":[ @@ -250,26 +185,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8735", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8731", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "iq_raw", - "local", + "id", "Tag" ], "tabs":[ @@ -283,16 +216,129 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8734", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8729", + "className":"Simulink.Demux", + "icon":"WebViewIcon3", + "name":"Demux1", + "label":"Demux1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "Outputs", + "DisplayOption", + "BusSelectionMode" + ], + "values":[ + "2", + "bar", + "off" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Demux", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8740", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_currFilt", + "label":"cf_currFilt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_currFilt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8739", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux2", + "label":"Mux2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "2", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8736", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -301,14 +347,112 @@ "IconDisplay" ], "values":[ - "iq", + "id_raw", "local", "Tag" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "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:8728", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"id_raw", + "label":"id_raw", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "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 + "tabs_idx":[ + 0, + 2, + 11 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -316,7 +460,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Inport", "masktype":"" } }, @@ -352,11 +496,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8741", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8742", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"iq", - "label":"iq", + "name":"id", + "label":"id", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -385,7 +529,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -432,104 +576,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8731", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8739", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux2", - "label":"Mux2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "2", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8730", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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":[ @@ -538,7 +589,7 @@ "IconDisplay" ], "values":[ - "id", + "iq_raw", "local", "Tag" ], @@ -558,42 +609,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8733", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_raw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8728", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8741", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"id_raw", - "label":"id_raw", + "name":"iq", + "label":"iq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -609,14 +629,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", "[]", "[]", @@ -628,10 +654,17 @@ "-1", "auto", "off", - "", - "on", "off", + "0", + "off", + "reset", "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -651,40 +684,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8729", - "className":"Simulink.Demux", - "icon":"WebViewIcon3", - "name":"Demux1", - "label":"Demux1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "Outputs", - "DisplayOption", - "BusSelectionMode" - ], - "values":[ - "2", - "bar", - "off" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Demux", + "blocktype":"Outport", "masktype":"" } }, @@ -756,20 +756,20 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9714", - "className":"Simulink.ActionPort", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8730", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "GotoTag", + "IconDisplay" ], "values":[ - "reset", - "Only when execution is resumed" + "iq", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -782,7 +782,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"From", "masktype":"" } }, 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 a19b77f..5578673 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 3adbd1d..7b6ea4f 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 @@ -13,59 +13,29 @@ - - - + + + - - + + - + - - cf_currFilt + + [id] - - - - - - - - - - - - - - - - - cf_currFilt - - - - - - - - - - - - - - - ufix16_En16 + + @@ -76,44 +46,29 @@ - - - + + + - - + + - - + + - - 2 + + [iq] - - - - - - - - - - - - - - - - - id + + @@ -126,7 +81,7 @@ - + @@ -134,195 +89,195 @@ - + - + u - + - + coef - + - + y - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + coef @@ -340,11 +295,11 @@ - + - + Low_Pass_Filter @@ -355,11 +310,11 @@ - + - + sfix16_En4 @@ -367,29 +322,29 @@ - + - + - + - + - + - + @@ -403,95 +358,44 @@ - - - + + + - - + + - - + + - + [id_raw] - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_raw] + + - - - + + + - - - - - - - - - - - - - - - - - - - - + + - - [iq] - - - - - - - + + sfix16_En4 @@ -502,43 +406,43 @@ - - + + - + - + - - [iq_raw] + + [id] - + - + - - + + - + sfix16_En4 @@ -550,44 +454,59 @@ - - - + + + - - + + - - + + - - 1 + + - - + + - - - + + + - - + + - - iq + + sfix16_En4 + + + + + + + + + + + + + + + sfix16_En4 @@ -598,44 +517,59 @@ - - - + + + - - + + - - + + - - [id] + + cf_currFilt - - + + + + + + + + + + + + + + + + + cf_currFilt - - + + - - + + - - sfix16_En4 + + ufix16_En16 @@ -656,11 +590,11 @@ - + - + @@ -678,11 +612,11 @@ - + - + sfix16_En4 @@ -694,44 +628,77 @@ - - - + + + - - + + - - + + - - [iq] + + [id_raw] - - + + - - - + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + Action Port @@ -742,29 +709,59 @@ - - - + + + - - + + - - + + - - [id] + + 2 - - + + + + + + + + + + + + + + + + + id_raw + + + + + + + + + + + + + + + sfix16_En4 @@ -775,11 +772,11 @@ - - + + - + @@ -789,29 +786,29 @@ - - [id_raw] + + [iq_raw] - + - + - + - + sfix16_En4 @@ -823,11 +820,11 @@ - - + + - + @@ -837,45 +834,30 @@ - + 2 - + - - + + - - - - - id_raw - - - - - - - - - - - + - - sfix16_En4 + + id @@ -886,59 +868,77 @@ - - - + + + - - + + - - + + - - + + [iq_raw] - - + + - - - - + + + + + + + + + + + + + + + - + - - sfix16_En4 + + 1 - - - + + + + + + + + + + - + - - sfix16_En4 + + iq @@ -1012,44 +1012,44 @@ - - - + + + - - + + - + - - if { } + + [iq] - - + + - - - + + + - + - - Action Port + + sfix16_En4 @@ -1214,5 +1214,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.json index 2c71ba1..84cf778 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,41 +1,62 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2405", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2407", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Sum5", - "label":"Sum5", + "name":"y", + "label":"y", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "rectangular", - "+-", - "on", - "Inherit: Same as first input", + "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", @@ -45,7 +66,7 @@ "tabs_idx":[ 0, 2, - 10 + 11 ] }, "viewer":{ @@ -54,7 +75,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Outport", "masktype":"" } }, @@ -109,11 +130,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2404", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2405", "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", + "name":"Sum5", + "label":"Sum5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", "inspector":{ "params":[ @@ -133,12 +154,12 @@ ], "values":[ "rectangular", - "++", + "+-", "on", - "Inherit: Inherit via internal rule", + "Inherit: Same as first input", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: Same as first input", "off", "Simplest", "off", @@ -168,112 +189,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2401", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2404", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Constant1", - "label":"Constant1", + "name":"Sum1", + "label":"Sum1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "1", + "rectangular", + "++", "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: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: Inherit via internal rule", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", "[]", + "fixdt(1,16,4)", "off", - "held", + "Simplest", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -283,7 +234,7 @@ "tabs_idx":[ 0, 2, - 11 + 10 ] }, "viewer":{ @@ -292,16 +243,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2403", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2402", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", + "name":"Divide1", + "label":"Divide1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", "inspector":{ "params":[ @@ -421,11 +372,60 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738:2402", + "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", + "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:8738:2403", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", + "name":"Divide2", + "label":"Divide2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8738", "inspector":{ "params":[ 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 3ad0390..00f990d 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 @@ -13,60 +13,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - + - - + + 1 - - + + - - - + + + - - + + - - ufix16_En16 + + y @@ -79,7 +63,7 @@ - + @@ -87,35 +71,35 @@ - + - + - + - + - + - + - + - + @@ -141,11 +125,11 @@ - + - + sfix16_En4 @@ -157,68 +141,60 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - + + - - sfix16_En4 + + ufix16_En16 @@ -229,92 +205,68 @@ - - - + + + - - + + - - + + - - 1 - - - - - - - + + - - - - - - + + + + + + + - - + + - - ufix16_En16 + + - - - - - - - - - - - - - - - - - - - - + + - - 1 + + - - + + - - - + + + - - + + - - y + + sfix16_En4 @@ -325,51 +277,51 @@ - - - + + + - + - - + + - - + + - - + + - - + + - + - + - - + + - + sfix16_En4 @@ -391,11 +343,11 @@ - + - + 2 @@ -413,11 +365,11 @@ - + - + coef @@ -428,11 +380,11 @@ - + - + ufix16_En16 @@ -444,51 +396,99 @@ - - - + + + - + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + 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 893359d..45955ba 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 @@ -1,53 +1,4 @@ [ - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8761", - "className":"Simulink.Annotation", - "icon":"WebViewIcon2", - "name":"

Field Weakening map as a function of Input target

", - "label":"

Field Weakening map as a function of Input target

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

Field Weakening map as a function of Input target

", - "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:8762", "className":"Simulink.Annotation", @@ -97,55 +48,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8763", - "className":"Simulink.Annotation", - "icon":"WebViewIcon2", - "name":"

FOC Field weakening

", - "label":"

FOC Field weakening

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

FOC Field weakening

", - "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:8764", "className":"Simulink.Annotation", @@ -196,11 +98,11 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8760", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8757", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"id_TgtAbs", - "label":"id_TgtAbs", + "name":"r_sin", + "label":"r_sin", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ @@ -229,7 +131,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "4", + "1", "Port number", "[]", "[]", @@ -276,73 +178,74 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8759", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8755", + "className":"Simulink.Interpolation_nD", "icon":"WebViewIcon3", - "name":"id_Tgt", - "label":"id_Tgt", + "name":"r_sin_M1", + "label":"r_sin_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":[ - "3", - "Port number", + "1", + "off", + "Explicit values", + "Dialog", + "r_sin_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":{ @@ -351,282 +254,62 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Interpolation_n-D", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8757", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8754", + "className":"Simulink.Interpolation_nD", "icon":"WebViewIcon3", - "name":"r_sin", - "label":"r_sin", + "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":[ "1", - "Port number", + "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)", + "[]", "[]", - "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:8756", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"toNegative", - "label":"toNegative", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "fixdt(1,16,4)", - "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:8755", - "className":"Simulink.Interpolation_nD", - "icon":"WebViewIcon3", - "name":"r_sin_M1", - "label":"r_sin_M1", - "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" - ], - "values":[ - "1", - "off", - "Explicit values", - "Dialog", - "r_sin_M1", - "Flat", - "Error", - "on", - "0", - "on", - "Inherit: Same as output", - "[]", - "[]", - "fixdt(1,16,14)", - "[]", - "[]", - "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:8754", - "className":"Simulink.Interpolation_nD", - "icon":"WebViewIcon3", - "name":"r_cos_M1", - "label":"r_cos_M1", - "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" - ], - "values":[ - "1", - "off", - "Explicit values", - "Dialog", - "r_cos_M1", - "Flat", - "Error", - "on", - "0", - "on", - "Inherit: Same as output", - "[]", - "[]", - "fixdt(1,16,14)", - "[]", - "[]", - "Speed", + "Speed", "off", "Simplest", "off", @@ -657,11 +340,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8753", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8748", "className":"Simulink.PreLookup", "icon":"WebViewIcon3", - "name":"r_fieldWeak_XA", - "label":"r_fieldWeak_XA", + "name":"a_elecAngle_XA", + "label":"a_elecAngle_XA", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ @@ -671,48 +354,48 @@ "OutputSelection", "IndexSearchMethod", "ExtrapMethod", - "UseLastBreakpoint", "DiagnosticForOutOfRangeInput", "RemoveProtectionInput", "BreakpointDataTypeStr", "BreakpointMin", "BreakpointMax", "IndexDataTypeStr", - "FractionDataTypeStr", "LockScale", - "RndMeth", "BeginIndexSearchUsingPreviousIndexResult", "BreakpointObject", "BreakpointsFirstPoint", "BreakpointsNumPoints", "BreakpointsSpacing", + "FractionDataTypeStr", "OutputBusDataTypeStr", - "SampleTime" + "RndMeth", + "SampleTime", + "UseLastBreakpoint" ], "values":[ "Explicit values", "Dialog", - "r_fieldWeak_XA", - "Index and fraction", + "a_elecAngle_XA", + "Index only", "Evenly spaced points", "Clip", - "off", - "Error", + "None", "off", "Inherit: Same as input", "[]", "[]", "uint8", - "fixdt(0,8,6)", "off", - "Simplest", "on", "", "10", "11", "10", + "fixdt(0,16,14)", "Inherit: auto", - "-1" + "Simplest", + "-1", + "off" ], "tabs":[ "Main", @@ -721,8 +404,8 @@ ], "tabs_idx":[ 0, - 9, - 16 + 8, + 13 ] }, "viewer":{ @@ -736,122 +419,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8749", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9646", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"a_elecPeriod1", - "label":"a_elecPeriod1", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "r_cos", + "local", + "Tag" ], "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:8748", - "className":"Simulink.PreLookup", - "icon":"WebViewIcon3", - "name":"a_elecAngle_XA", - "label":"a_elecAngle_XA", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "BreakpointsSpecification", - "BreakpointsDataSource", - "BreakpointsData", - "OutputSelection", - "IndexSearchMethod", - "ExtrapMethod", - "UseLastBreakpoint", - "DiagnosticForOutOfRangeInput", - "RemoveProtectionInput", - "BreakpointDataTypeStr", - "BreakpointMin", - "BreakpointMax", - "IndexDataTypeStr", - "FractionDataTypeStr", - "LockScale", - "RndMeth", - "BeginIndexSearchUsingPreviousIndexResult", - "BreakpointObject", - "BreakpointsFirstPoint", - "BreakpointsNumPoints", - "BreakpointsSpacing", - "OutputBusDataTypeStr", - "SampleTime" - ], - "values":[ - "Explicit values", - "Dialog", - "a_elecAngle_XA", - "Index only", - "Evenly spaced points", - "Clip", - "off", - "Error", - "off", - "Inherit: Same as input", - "[]", - "[]", - "uint8", - "fixdt(0,16,14)", - "off", - "Simplest", - "on", - "", - "10", - "11", - "10", - "Inherit: auto", - "-1" - ], - "tabs":[ - "Main", - "Data Types", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 9, - 16 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -859,56 +447,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"PreLookup", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8747", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9643", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "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" + "r_sin", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 1, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -916,80 +478,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8752", - "className":"Simulink.Interpolation_nD", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9640", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"id_fieldWeak_M1", - "label":"id_fieldWeak_M1", + "name":"From", + "label":"From", "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", + "IconDisplay" ], "values":[ - "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" + "a_elecAngle", + "Tag" ], "tabs":[ - "Main", - "Data Types", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 10, - 20 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -997,7 +509,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Interpolation_n-D", + "blocktype":"From", "masktype":"" } }, @@ -1035,27 +547,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9650", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10676", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Constant", + "label":"Constant", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "id_TgtAbs", - "local", - "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" @@ -1063,1673 +591,142 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8758", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_cos", - "label":"r_cos", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "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:9646", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_cos", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8751", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"b_fieldWeakEna", - "label":"b_fieldWeakEna", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "b_fieldWeakEna", - "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:9645", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_cos", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:9647", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_Tgt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9643", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_sin", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9652", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:9648", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_TgtAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8750", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"a_elecPeriod3", - "label":"a_elecPeriod3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "uint8", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9641", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:9640", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9638", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:9651", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:8745", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"n_motAbs", - "label":"n_motAbs", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:9649", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_Tgt", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9644", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_sin", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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", - "-Other" - ], - "tabs_idx":[ - 0, - 5, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Relay", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8744", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"a_elecAngle", - "label":"a_elecAngle", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:9654", - "className":"Simulink.Abs", - "icon":"WebViewIcon3", - "name":"Abs5", - "label":"Abs5", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime", - "ZeroCross" - ], - "values":[ - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "-1", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Abs", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9636", - "className":"Simulink.Logic", - "icon":"WebViewIcon3", - "name":"Logical Operator2", - "label":"Logical Operator2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "Operator", - "Inputs", - "IconShape", - "AllPortsSameDT", - "OutDataTypeStr", - "SampleTime" - ], - "values":[ - "AND", - "2", - "rectangular", - "off", - "boolean", - "-1" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 5 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Logic", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8748#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:8750#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:8753#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:8753#out:2", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:8749#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:8747#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:8752#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:8744#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:9640#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:8745#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:8751#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:9636#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "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:9643#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9644", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" + "r_sin", + "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:8755#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9645", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" + "GotoTag", + "IconDisplay" ], "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" + "r_cos", + "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:9645#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8758", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_cos", + "label":"r_cos", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "inspector":{ "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", "StorageClass", - "Description", - "documentLink" + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "", + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", "off", + "[]", "off", + "held", "off", - "Simulink", - "Auto", + "0", "", - "" + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ - "Parameter Attributes", - "Logging and Accessibility", - "Code Generation", - "Documentation" + "Main", + "Signal Attributes", + "-Other" ], "tabs_idx":[ 0, - 3, - 5, - 7 + 2, + 11 ] }, "viewer":{ @@ -2737,50 +734,66 @@ }, "obj_viewer":[ ], - "finder":[ - ] + "finder":{ + "blocktype":"Outport", + "masktype":"" + } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8754#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8744", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"a_elecAngle", + "label":"a_elecAngle", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8743", "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":{ @@ -2788,11 +801,13 @@ }, "obj_viewer":[ ], - "finder":[ - ] + "finder":{ + "blocktype":"Inport", + "masktype":"" + } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9648#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8748#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2843,7 +858,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9647#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10676#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2894,7 +909,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8756#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8744#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2945,7 +960,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9651#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9640#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2996,7 +1011,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9654#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9643#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3047,7 +1062,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9657#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8755#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3098,7 +1113,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9641#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9645#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3149,7 +1164,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9653#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8754#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_8743_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.png index 2118a1b..ada685a 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 f8dfe23..fa37b7c 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 @@ -1,55 +1,36 @@ - + - + - - - - - - - - - - - - - - Field Weakening map as a function of Input target - - - - - - + - + - + Note: The Sine and Cosine maps are shifted in phase by - + - + 30 deg to align with the Hall sensors position. @@ -57,37 +38,18 @@ - - - - - - - - - - - - - FOC Field weakening - - - - - - - + - - + + - + Sine/Cosine Look-up Tables @@ -97,44 +59,44 @@ - - + + - + - + - - 4 + + 1 - + - - + + - - + + - - id_TgtAbs + + r_sin @@ -145,873 +107,729 @@ - - - + + + - - + + - - + + - - 3 + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - id_Tgt + + - - - - - - - - - - - - - - - - - - - - + + - - 1 + + - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - r_sin + + - - - - - - - - - - - - - - - - - - - - + + - - -1 + + - - - - - - + + + + + + + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - sfix16_En4 + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + 1-D T(k,f) - + - - + + k1 - + - - + + f1 + + + + + + + + + + + + + + - + - - + + r_sin_M1 - - - - - - - + + + + + + - - + + - - + + sfix16_En14 + + + + + + + + + + + + + + + + + + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - 1-D T(k,f) + + - + - - k1 + + - + - - f1 - - - - - - - - - - - - - - + + - + - - r_sin_M1 - - - - - - - + + - + - - sfix16_En14 + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 1-D T(k,f) - + - + k1 - + - + f1 - + - + - - + + - + r_cos_M1 - + - - + + - + sfix16_En14 @@ -1023,183 +841,95 @@ - - - + + + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - - + + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - @@ -1212,53 +942,71 @@ - + - - + + - - + + - - r_fieldWeak_XA + + a_elecAngle_XA - - + + - - + + - - ufix8_En6 + + uint8 - - - - + + + + + + + + + + + + + + + - - + + - - uint8 + + [r_cos] + + + + + + + @@ -1269,44 +1017,44 @@ - - - + + + - - + + - - + + - - 0 + + [r_sin] - - + + - - + + - - + + - - sfix16_En4 + + sfix16_En14 @@ -1317,1141 +1065,44 @@ - - - + + + - - + + - + - - + + - - + + [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - a_elecAngle_XA - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1-D T(k,f) - - - - - - - - k1 - - - - - - - - f1 - - - - - - - - - - - - - - - - - - - - - - id_fieldWeak_M1 - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_TgtAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - r_cos - - - - - - - - - - - - - - - - - - - - - - - - - - [r_cos] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - b_fieldWeakEna - - - - - - - - - - - - - - - - - - - - - - b_fieldWeakEna - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [r_cos] - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_Tgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_sin] - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_TgtAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - + + + + + + - + - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - + + - - ufix16_En6 + + sfix16_En6 @@ -2462,28 +1113,28 @@ - - + + - + - - + + - - [n_motAbs] + + [a_elecAngle] - + @@ -2495,155 +1146,44 @@ - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - r_inpTgtSca - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - + + + - - + + - - + + - - 3 + + 0 - - - - - - - - - - - - - - - - - n_motAbs + + - - - - - - - - - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - [id_Tgt] - - - - - - - + + uint8 @@ -2655,27 +1195,27 @@ - + - + - + - + [r_sin] - + @@ -2687,170 +1227,44 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - n_fieldWeakAuth - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - + + + - - + + - - + + - - 1 - - - - - - - + + [r_cos] - - - - - - - - - - - a_elecAngle + + + - - + + - - + + - - ufix16_En6 + + sfix16_En14 @@ -2861,76 +1275,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + 2 - - - - - - - - - - + + - - - + + + - - + + - - sfix16_En4 + + r_cos @@ -2941,60 +1323,59 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 1 - - - - - - + + - + + + + + + + + + + + a_elecAngle + - - + + - - + + - - boolean + + sfix16_En6 @@ -3007,168 +1388,78 @@ - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - + - + - + - - - - + - + - - - - - - - - - - - - - - - + - + @@ -3178,53 +1469,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -3234,11 +1483,11 @@ - + - + @@ -3248,11 +1497,11 @@ - + - + @@ -3262,11 +1511,11 @@ - + - + @@ -3276,123 +1525,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -3401,5 +1538,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.json index 7f5c3f6..8a5de1a 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 @@ -164,86 +164,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8882", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"V_phaB", - "label":"V_phaB", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", - "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:8867", "className":"Simulink.Inport", @@ -315,8 +235,8 @@ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8881", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"V_phaA", - "label":"V_phaA", + "name":"V_phaABC_FOC", + "label":"V_phaABC_FOC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ @@ -392,63 +312,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8883", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8879", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"V_phaC", - "label":"V_phaC", + "name":"Sum2", + "label":"Sum2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "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":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", + "rectangular", + "--", "off", + "Inherit: Inherit via internal rule", "[]", + "[]", + "Inherit: Same as first input", "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "Simplest", + "on", + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -458,7 +357,7 @@ "tabs_idx":[ 0, 2, - 11 + 10 ] }, "viewer":{ @@ -467,7 +366,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Sum", "masktype":"" } }, @@ -503,64 +402,11 @@ } }, { - "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:8874", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8875", "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Gain3", - "label":"Gain3", + "name":"Gain4", + "label":"Gain4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ @@ -578,13 +424,13 @@ "SampleTime" ], "values":[ - "1/2", + "2/sqrt(3)", "Element-wise(K.*u)", "[]", "[]", "Inherit: Same as input", "off", - "Zero", + "Floor", "off", "[]", "[]", @@ -615,11 +461,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8873", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8874", "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Gain2", - "label":"Gain2", + "name":"Gain3", + "label":"Gain3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ @@ -637,13 +483,13 @@ "SampleTime" ], "values":[ - "0.5", + "1/2", "Element-wise(K.*u)", "[]", "[]", "Inherit: Same as input", "off", - "Floor", + "Zero", "off", "[]", "[]", @@ -674,111 +520,46 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8875", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8877", + "className":"Simulink.MinMax", "icon":"WebViewIcon3", - "name":"Gain4", - "label":"Gain4", + "name":"MinMax2", + "label":"MinMax2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "2/sqrt(3)", - "Element-wise(K.*u)", - "[]", - "[]", - "fixdt(1,16,0)", - "off", - "Floor", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8880", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum6", - "label":"Sum6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", - "inspector":{ - "params":[ - "IconShape", - "Inputs", + "Function", "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", + "Inputs", "LockScale", + "OutMax", + "OutMin", "RndMeth", + "SampleTime", "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "ZeroCross" ], "values":[ - "rectangular", - "-+", - "off", "Inherit: Inherit via internal rule", + "max", + "on", + "1", + "off", "[]", "[]", - "Inherit: Same as first input", + "Floor", + "-1", "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "on" ], "tabs":[ - "Main", "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 10 + 1 ] }, "viewer":{ @@ -787,110 +568,57 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"MinMax", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8879", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8873", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", + "name":"Gain2", + "label":"Gain2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", + "Gain", + "Multiplication", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", "SampleTime" ], "values":[ - "rectangular", - "--", - "off", - "Inherit: Inherit via internal rule", + "0.5", + "Element-wise(K.*u)", "[]", "[]", - "Inherit: Same as first input", + "Inherit: Same as 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: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":{ @@ -899,32 +627,58 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"MinMax", + "blocktype":"Gain", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8871", - "className":"Simulink.Demux", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8880", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Demux", - "label":"Demux", + "name":"Sum6", + "label":"Sum6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ - "Outputs", - "DisplayOption", - "BusSelectionMode" + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "3", - "bar", - "off" + "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" @@ -932,7 +686,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Demux", + "blocktype":"Sum", "masktype":"" } }, @@ -995,6 +749,59 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8876", + "className":"Simulink.MinMax", + "icon":"WebViewIcon3", + "name":"MinMax1", + "label":"MinMax1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", + "inspector":{ + "params":[ + "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" + ], + "values":[ + "Inherit: Inherit via internal rule", + "min", + "on", + "1", + "off", + "[]", + "[]", + "Floor", + "-1", + "off", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"MinMax", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8870", "className":"Simulink.Sum", @@ -1572,108 +1379,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8871#out:3", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", - "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:8871#out:2", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", - "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:8873#out:1", "className":"Simulink.Line", @@ -1725,57 +1430,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8871#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8866", - "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:8877#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.png index cdac7cd..dad0285 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.png differ 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 ed65c12..bc2ba81 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 @@ -1,10 +1,10 @@ - + - + @@ -19,7 +19,7 @@ - + @@ -38,7 +38,7 @@ - + @@ -46,7 +46,7 @@ - + @@ -54,7 +54,7 @@ - + @@ -62,7 +62,7 @@ - + @@ -70,7 +70,7 @@ - + @@ -78,7 +78,7 @@ - + @@ -124,7 +124,7 @@ - + @@ -139,7 +139,7 @@ - + @@ -152,54 +152,6 @@ - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - V_phaB - - - - - - - - @@ -212,11 +164,11 @@ - + - + 1 @@ -234,11 +186,11 @@ - - + + - + V_alpha @@ -249,11 +201,11 @@ - - + + - + sfix16_En4 @@ -266,43 +218,43 @@ - + - + - + - + 1 - + - - + + - - + + - - V_phaA + + V_phaABC_FOC @@ -313,44 +265,52 @@ - - - + + + - - + + - - + + - - 3 + + + + + + + + + + - - + + - - - + + + - - + + - - V_phaC + + sfix16_En4 @@ -371,11 +331,11 @@ - + - + @@ -393,11 +353,11 @@ - - + + - + sfix16_En4 @@ -409,59 +369,43 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 2/sqrt(3) - - - - - - - - - - + + - + - - + + - + sfix16_En4 @@ -483,11 +427,11 @@ - + - + 1/2 @@ -505,11 +449,11 @@ - - + + - + sfix16_En4 @@ -521,43 +465,59 @@ - - - + + + - - + + - + - - + + - - 0.5 + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -569,44 +529,44 @@ - - - + + + - - + + - - + + - - 2/sqrt(3) + + 0.5 - - + + - - + + - - + + - - int16 + + sfix16_En4 @@ -627,27 +587,27 @@ - + - + - + - + - + - + @@ -665,11 +625,11 @@ - - + + - + sfix16_En4 @@ -681,51 +641,43 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + sqrt(3)/2 - - + + - + - - + + - + sfix16_En4 @@ -737,30 +689,30 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + @@ -774,148 +726,22 @@ - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - sqrt(3)/2 - - - - - - - + + - + - - + + - + sfix16_En4 @@ -937,27 +763,27 @@ - + - + - + - + - + - + @@ -975,11 +801,11 @@ - - + + - + sfix16_En4 @@ -1001,35 +827,35 @@ - + - + - + - + - + - + - + - + @@ -1047,11 +873,11 @@ - - + + - + sfix16_En4 @@ -1147,11 +973,11 @@ - - + + - + alpha @@ -1215,11 +1041,11 @@ - - + + - + beta @@ -1269,34 +1095,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1311,20 +1109,6 @@ - - - - - - - - - - - - - - @@ -1384,10 +1168,10 @@ - + - + @@ -1396,11 +1180,11 @@ - + - + @@ -1409,5 +1193,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.json index 0d581f8..025ae4b 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 @@ -536,70 +536,11 @@ } }, { - "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:8904", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8905", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -608,7 +549,7 @@ "IconDisplay" ], "values":[ - "Vd", + "r_sin", "local", "Tag" ], @@ -628,11 +569,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8903", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8904", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -641,7 +582,7 @@ "IconDisplay" ], "values":[ - "Vq", + "Vd", "local", "Tag" ], @@ -661,11 +602,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8905", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8903", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -674,7 +615,7 @@ "IconDisplay" ], "values":[ - "r_sin", + "Vq", "local", "Tag" ], @@ -818,11 +759,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":[ @@ -830,7 +771,7 @@ "IconDisplay" ], "values":[ - "r_cos", + "Vq", "Tag" ], "tabs":[ @@ -849,19 +790,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8895", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8906", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_sin", + "r_cos", + "local", "Tag" ], "tabs":[ @@ -875,32 +818,56 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8906", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8894", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Divide4", + "label":"Divide4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "r_cos", - "local", - "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" @@ -908,16 +875,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8897", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8895", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -925,7 +892,7 @@ "IconDisplay" ], "values":[ - "Vq", + "r_sin", "Tag" ], "tabs":[ @@ -944,11 +911,11 @@ } }, { - "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":[ @@ -1001,17 +968,18 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8893", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8907", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Divide3", - "label":"Divide3", + "name":"Sum1", + "label":"Sum1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ + "IconShape", "Inputs", - "Multiplication", "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", @@ -1023,15 +991,16 @@ "SampleTime" ], "values":[ - "**", - "Element-wise(.*)", + "rectangular", + "++", "off", + "Inherit: Inherit via internal rule", "[]", "[]", "Inherit: Same as first input", "off", "Simplest", - "off", + "on", "1", "All dimensions", "-1" @@ -1044,7 +1013,7 @@ "tabs_idx":[ 0, 2, - 9 + 10 ] }, "viewer":{ @@ -1053,7 +1022,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Sum", "masktype":"" } }, @@ -1089,11 +1058,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8892", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8891", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", + "name":"Divide1", + "label":"Divide1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -1146,11 +1115,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8894", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8892", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", + "name":"Divide2", + "label":"Divide2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -1202,6 +1171,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8896", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8886", + "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: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 1125780..9626a61 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 @@ -476,68 +476,29 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + [r_sin] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -558,11 +519,11 @@ - + - + [Vd] @@ -591,11 +552,11 @@ - + - + [Vq] @@ -612,39 +573,6 @@ - - - - - - - - - - - - - - - - - - [r_sin] - - - - - - - - - - - - - - - @@ -657,11 +585,11 @@ - + - + [Vd] @@ -679,11 +607,11 @@ - + - + sfix16_En4 @@ -705,11 +633,11 @@ - + - + [r_sin] @@ -727,11 +655,11 @@ - + - + sfix16_En14 @@ -753,11 +681,11 @@ - + - + [Vq] @@ -775,11 +703,11 @@ - + - + sfix16_En4 @@ -801,11 +729,11 @@ - + - + [r_cos] @@ -823,11 +751,11 @@ - + - + sfix16_En14 @@ -839,44 +767,44 @@ - - + + - + - + - - [r_cos] + + [Vq] - + - - + + - - + + - - sfix16_En14 + + sfix16_En4 @@ -887,44 +815,29 @@ - - - + + + - - + + - - + + - - [r_sin] + + [r_cos] - - - - - - - - - - - - - - - - - sfix16_En14 + + @@ -935,29 +848,52 @@ - - - + + + - - + + - - + + - - [r_cos] + + + + + + + + + + - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -968,44 +904,44 @@ - - + + - + - + - - [Vq] + + [r_sin] - + - - + + - - + + - - sfix16_En4 + + sfix16_En14 @@ -1016,51 +952,51 @@ - - + + - + - - + + - - + + - - + + - - + + - + - + - - + + - + sfix16_En4 @@ -1072,51 +1008,67 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -1138,11 +1090,11 @@ - + - + [Vd] @@ -1160,11 +1112,67 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1186,19 +1194,19 @@ - + - + - + - + @@ -1216,11 +1224,11 @@ - + - + sfix16_En4 @@ -1232,52 +1240,44 @@ - - - + + + - - + + - - - - - - - - - + - - + + [r_cos] - - + + - - + + - + - - 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 6baee2f..dcf86c7 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 @@ -150,8 +150,8 @@ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9021", "className":"Simulink.Annotation", "icon":"WebViewIcon2", - "name":"

Current Circle limitations with priority on i_d (Flux current):

iq_maxSca = sqrt(1 - idSca^2) (unit circle)

iq_max = iq_maxSca * i_max

where,

idSca = id / i_max,


The id_Tgt is used instead of measured id, because the target is a more clean signal.


", - "label":"

Current Circle limitations with priority on i_d (Flux current):

iq_maxSca = sqrt(1 - idSca^2) (unit circle)

iq_max = iq_maxSca * i_max

where,

idSca = id / i_max,


The id_Tgt is used instead of measured id, because the target is a more clean signal.


", + "name":"

Current Circle limitations with priority on i_d (Flux current):

iq_maxSca = sqrt(1 - idSca^2) (unit circle)

iq_max = iq_maxSca * i_max


where, idSca = id / i_max,


The id_Tgt is used instead of measured id, because the target is a more clean signal.


", + "label":"

Current Circle limitations with priority on i_d (Flux current):

iq_maxSca = sqrt(1 - idSca^2) (unit circle)

iq_max = iq_maxSca * i_max


where, idSca = id / i_max,


The id_Tgt is used instead of measured id, because the target is a more clean signal.


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

Current Circle limitations with priority on i_d (Flux current):

\n

iq_maxSca \t= sqrt(1 - idSca^2) \t(unit circle)

\n

iq_max \t\t= iq_maxSca * i_max

\n

where,

\n

idSca \t\t= id / i_max,

\n


\n

The id_Tgt is used instead of measured id, because the target is a more clean signal.

\n


", + "\n\n

Current Circle limitations with priority on i_d (Flux current):

\n

iq_maxSca \t= sqrt(1 - idSca^2) \t(unit circle)

\n

iq_max \t\t= iq_maxSca * i_max

\n


\n

where, idSca\t= id / i_max,

\n


\n

The id_Tgt is used instead of measured id, because the target is a more clean signal.

\n


", "off", "rich", "auto", @@ -248,8 +248,8 @@ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9017", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"n_limProt", - "label":"n_limProt", + "name":"Vq_nLimProtMax", + "label":"Vq_nLimProtMax", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -278,7 +278,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "10", + "12", "Port number", "[]", "[]", @@ -291,9 +291,9 @@ "auto", "off", "off", - "V_min", + "[]", "off", - "reset", + "held", "off", "0", "", @@ -325,11 +325,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9012", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9014", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"iq_max", - "label":"iq_max", + "name":"iq_limProtErr", + "label":"iq_limProtErr", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -358,7 +358,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "7", + "11", "Port number", "[]", "[]", @@ -371,9 +371,9 @@ "auto", "off", "off", - "V_max", + "[]", "off", - "reset", + "held", "off", "0", "", @@ -405,11 +405,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9010", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10711", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"id_max", - "label":"id_max", + "name":"r_iqLimProtMax", + "label":"r_iqLimProtMax", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -438,7 +438,87 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "5", + "9", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9012", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"iq_max", + "label":"iq_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "7", "Port number", "[]", "[]", @@ -451,9 +531,9 @@ "auto", "off", "off", - "V_max", + "750", "off", - "reset", + "held", "off", "0", "", @@ -531,9 +611,9 @@ "auto", "off", "off", - "V_min", + "-900", "off", - "reset", + "held", "off", "0", "", @@ -565,32 +645,63 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9005", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10712", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"n_max1", - "label":"n_max1", + "name":"r_nLimProtMax", + "label":"r_nLimProtMax", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "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":[ - "n_max", - "on", - "inf", + "10", + "Port number", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -599,8 +710,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -609,7 +720,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Outport", "masktype":"" } }, @@ -628,23 +739,23 @@ "OutputSelection", "IndexSearchMethod", "ExtrapMethod", - "UseLastBreakpoint", "DiagnosticForOutOfRangeInput", "RemoveProtectionInput", "BreakpointDataTypeStr", "BreakpointMin", "BreakpointMax", "IndexDataTypeStr", - "FractionDataTypeStr", "LockScale", - "RndMeth", "BeginIndexSearchUsingPreviousIndexResult", "BreakpointObject", "BreakpointsFirstPoint", "BreakpointsNumPoints", "BreakpointsSpacing", + "FractionDataTypeStr", "OutputBusDataTypeStr", - "SampleTime" + "RndMeth", + "SampleTime", + "UseLastBreakpoint" ], "values":[ "Explicit values", @@ -653,23 +764,23 @@ "Index only", "Evenly spaced points", "Clip", - "off", "Error", "off", "Inherit: Same as input", "[]", "[]", "uint8", - "fixdt(0,8,6)", "off", - "Simplest", "on", "", "10", "11", "10", + "fixdt(0,8,6)", "Inherit: auto", - "-1" + "Simplest", + "-1", + "off" ], "tabs":[ "Main", @@ -678,8 +789,8 @@ ], "tabs_idx":[ 0, - 9, - 16 + 8, + 13 ] }, "viewer":{ @@ -773,55 +884,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9000", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"a_elecPeriod1", - "label":"a_elecPeriod1", - "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:8999", "className":"Simulink.PreLookup", @@ -837,23 +899,23 @@ "OutputSelection", "IndexSearchMethod", "ExtrapMethod", - "UseLastBreakpoint", "DiagnosticForOutOfRangeInput", "RemoveProtectionInput", "BreakpointDataTypeStr", "BreakpointMin", "BreakpointMax", "IndexDataTypeStr", - "FractionDataTypeStr", "LockScale", - "RndMeth", "BeginIndexSearchUsingPreviousIndexResult", "BreakpointObject", "BreakpointsFirstPoint", "BreakpointsNumPoints", "BreakpointsSpacing", + "FractionDataTypeStr", "OutputBusDataTypeStr", - "SampleTime" + "RndMeth", + "SampleTime", + "UseLastBreakpoint" ], "values":[ "Explicit values", @@ -862,23 +924,23 @@ "Index only", "Evenly spaced points", "Clip", - "off", "Error", "off", "Inherit: Same as input", "[]", "[]", "uint8", - "fixdt(0,8,6)", "off", - "Simplest", "on", "", "10", "11", "10", + "fixdt(0,8,6)", "Inherit: auto", - "-1" + "Simplest", + "-1", + "off" ], "tabs":[ "Main", @@ -887,8 +949,8 @@ ], "tabs_idx":[ 0, - 9, - 16 + 8, + 13 ] }, "viewer":{ @@ -902,65 +964,16 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8997", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9010", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Vd_max1", - "label":"Vd_max1", + "name":"id_max", + "label":"id_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "Vd_max", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9007", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"Vd_min", - "label":"Vd_min", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", @@ -984,7 +997,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "2", + "5", "Port number", "[]", "[]", @@ -997,9 +1010,9 @@ "auto", "off", "off", - "V_min", + "750", "off", - "reset", + "held", "off", "0", "", @@ -1031,11 +1044,141 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8998", + "className":"Simulink.Interpolation_nD", + "icon":"WebViewIcon3", + "name":"Vq_max_M1", + "label":"Vq_max_M1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "NumberOfTableDimensions", + "RequireIndexFractionAsBus", + "TableSpecification", + "TableSource", + "Table", + "InterpMethod", + "DiagnosticForOutOfRangeInput", + "ValidIndexMayReachLast", + "NumSelectionDims", + "RemoveProtectionIndex", + "TableDataTypeStr", + "TableMin", + "TableMax", + "OutDataTypeStr", + "OutMin", + "OutMax", + "InternalRulePriority", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ExtrapMethod", + "IntermediateResultsDataTypeStr", + "LookupTableObject", + "SampleTime" + ], + "values":[ + "1", + "off", + "Explicit values", + "Dialog", + "Vq_max_M1", + "Flat", + "Error", + "on", + "0", + "on", + "Inherit: Same as output", + "[]", + "[]", + "fixdt(1,16,4)", + "[]", + "[]", + "Speed", + "off", + "Simplest", + "off", + "Clip", + "Inherit: Same as output", + "", + "-1" + ], + "tabs":[ + "Main", + "Data Types", + "-Other" + ], + "tabs_idx":[ + 0, + 10, + 20 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Interpolation_n-D", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8997", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Vd_max1", + "label":"Vd_max1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "Vd_max", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10566", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Speed_Limit_Protection", - "label":"Speed_Limit_Protection", + "name":"Voltage_Mode_Protection", + "label":"Voltage_Mode_Protection", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1128,38 +1271,73 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8986", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9011", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Relational Operator4", - "label":"Relational Operator4", + "name":"id_min", + "label":"id_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "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":[ - "==", + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", - "boolean", - "Simplest", + "inherit", "-1", - "on" + "Inherit", + "-1", + "auto", + "off", + "off", + "-750", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", - "Data Type", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 4 + 2, + 11 ] }, "viewer":{ @@ -1168,183 +1346,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9002", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8974", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"i_max", - "label":"i_max", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "i_max", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" + "iq_min", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8984", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "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:8983", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator1", - "label":"Relational Operator1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "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:8985", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator3", - "label":"Relational Operator3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1352,48 +1379,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9001", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8973", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"a_elecPeriod2", - "label":"a_elecPeriod2", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "uint8", - "off", - "inf" + "iq_max", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1401,42 +1412,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8978", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8971", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "1", - "u1 ~= 0", - "", - "off", - "-1", - "on" + "Vd_min", + "local", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1444,80 +1445,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8998", - "className":"Simulink.Interpolation_nD", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10718", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Vq_max_M1", - "label":"Vq_max_M1", + "name":"Goto22", + "label":"Goto22", "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", + "TagVisibility", + "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" + "r_iqLimProtMax", + "local", + "Tag" ], "tabs":[ - "Main", - "Data Types", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 10, - 20 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1525,16 +1478,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Interpolation_n-D", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8976", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10713", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", + "name":"Goto20", + "label":"Goto20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1543,7 +1496,7 @@ "IconDisplay" ], "values":[ - "iq", + "iq_limProtErr", "local", "Tag" ], @@ -1563,11 +1516,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8973", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8970", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1576,7 +1529,7 @@ "IconDisplay" ], "values":[ - "iq_max", + "id_TgtAbs", "local", "Tag" ], @@ -1596,11 +1549,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8972", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10705", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto19", + "label":"Goto19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1609,7 +1562,7 @@ "IconDisplay" ], "values":[ - "id_max", + "r_inpTgtScaAbs", "local", "Tag" ], @@ -1629,27 +1582,74 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8971", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9008", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "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":[ - "Vd_min", - "local", - "Tag" + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "900", + "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" @@ -1657,16 +1657,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8969", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10694", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto16", - "label":"Goto16", + "name":"Goto17", + "label":"Goto17", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1675,7 +1675,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "n_motAbs", "local", "Tag" ], @@ -1695,11 +1695,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8968", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8969", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", + "name":"Goto16", + "label":"Goto16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1708,7 +1708,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "z_ctrlMod", "local", "Tag" ], @@ -1728,11 +1728,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8967", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8962", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1741,7 +1741,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "VdPrev", "local", "Tag" ], @@ -1761,11 +1761,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8961", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8972", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1774,7 +1774,7 @@ "IconDisplay" ], "values":[ - "Vd_max", + "id_max", "local", "Tag" ], @@ -1794,11 +1794,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8960", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8959", "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Gain6", - "label":"Gain6", + "name":"Gain5", + "label":"Gain5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1853,11 +1853,44 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8959", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10715", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto21", + "label":"Goto21", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_nLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8957", "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Gain5", - "label":"Gain5", + "name":"Gain3", + "label":"Gain3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1912,11 +1945,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8958", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8956", "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Gain4", - "label":"Gain4", + "name":"Gain1", + "label":"Gain1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1971,74 +2004,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9014", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8955", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"iq_limProt", - "label":"iq_limProt", + "name":"From9", + "label":"From9", "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" + "GotoTag", + "IconDisplay" ], "values":[ - "9", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "V_min", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "iq_min", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2046,7 +2030,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8954", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From8", + "label":"From8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", "masktype":"" } }, @@ -2082,53 +2097,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8957", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8950", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Gain3", - "label":"Gain3", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" + "Vd_min", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2136,16 +2123,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8952", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10710", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From31", + "label":"From31", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2153,7 +2140,7 @@ "IconDisplay" ], "values":[ - "id_TgtAbs", + "r_nLimProtMax", "Tag" ], "tabs":[ @@ -2172,11 +2159,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8951", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10709", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From30", + "label":"From30", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2184,7 +2171,7 @@ "IconDisplay" ], "values":[ - "id_max", + "r_iqLimProtMax", "Tag" ], "tabs":[ @@ -2203,11 +2190,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8947", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10700", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From28", + "label":"From28", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2215,7 +2202,69 @@ "IconDisplay" ], "values":[ - "Vq_min", + "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:10684", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From25", + "label":"From25", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10683", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From24", + "label":"From24", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq", "Tag" ], "tabs":[ @@ -2265,21 +2314,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8966", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8939", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_limProtErr", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10816", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"From11", + "label":"From11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_limProt", - "local", + "Vq_max", "Tag" ], "tabs":[ @@ -2293,16 +2371,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8944", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10699", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", + "name":"From27", + "label":"From27", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2310,7 +2388,7 @@ "IconDisplay" ], "values":[ - "n_limProt", + "iqAbs", "Tag" ], "tabs":[ @@ -2329,11 +2407,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8948", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8952", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From36", - "label":"From36", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2341,7 +2419,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "id_TgtAbs", "Tag" ], "tabs":[ @@ -2360,11 +2438,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8949", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8935", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From37", - "label":"From37", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2372,7 +2450,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "Vq_max", "Tag" ], "tabs":[ @@ -2391,11 +2469,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8943", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8944", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From17", - "label":"From17", + "name":"From18", + "label":"From18", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2403,7 +2481,7 @@ "IconDisplay" ], "values":[ - "n_min", + "Vq_nLimProtMax", "Tag" ], "tabs":[ @@ -2422,11 +2500,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8942", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8934", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2434,7 +2512,7 @@ "IconDisplay" ], "values":[ - "n_mot", + "VdPrev", "Tag" ], "tabs":[ @@ -2453,11 +2531,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8955", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10780", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"From10", + "label":"From10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2465,7 +2543,7 @@ "IconDisplay" ], "values":[ - "iq_min", + "n_motAbs", "Tag" ], "tabs":[ @@ -2484,25 +2562,51 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8938", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9732", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", + "name":"Divide4", + "label":"Divide4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "iq", - "Tag" + "*/", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 9 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2510,24 +2614,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8937", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10727", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"Goto23", + "label":"Goto23", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "iq_min", + "r_nLimProtMax", + "local", "Tag" ], "tabs":[ @@ -2541,30 +2647,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8935", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10565", + "className":"Simulink.SwitchCase", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"Switch Case", + "label":"Switch Case", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "CaseConditions", + "ShowDefaultCase", + "SampleTime", + "ZeroCross" ], "values":[ - "Vq_max", - "Tag" + "{VLT_MODE, SPD_MODE, TRQ_MODE}", + "off", + "-1", + "on" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2572,32 +2686,79 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"SwitchCase", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8975", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9013", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"iq_min", + "label":"iq_min", "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":[ - "id_min", - "local", - "Tag" + "8", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "-750", + "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" @@ -2605,24 +2766,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8934", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8967", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"Goto14", + "label":"Goto14", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "Vd", + "Vq_max", + "local", "Tag" ], "tabs":[ @@ -2636,16 +2799,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8970", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8968", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2654,7 +2817,7 @@ "IconDisplay" ], "values":[ - "id_TgtAbs", + "Vq_min", "local", "Tag" ], @@ -2674,11 +2837,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9006", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9007", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Vd_max", - "label":"Vd_max", + "name":"Vd_min", + "label":"Vd_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2707,7 +2870,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -2720,9 +2883,9 @@ "auto", "off", "off", - "V_max", + "-900", "off", - "reset", + "held", "off", "0", "", @@ -2754,97 +2917,129 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9732", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Torque_Mode_Protection", + "label":"Torque_Mode_Protection", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "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":[ - "*/", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(0,16,16)", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "Simplest", "on", - "1", - "All dimensions", - "-1" + "", + "", + "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", - "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 9 + 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9733", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10675", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", + "name":"Constant1", + "label":"Constant1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "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", + "uint8", "off", - "1", - "All dimensions", - "-1" + "inf" ], "tabs":[ "Main", @@ -2853,8 +3048,8 @@ ], "tabs_idx":[ 0, - 2, - 9 + 3, + 7 ] }, "viewer":{ @@ -2863,16 +3058,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8964", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8961", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2881,7 +3076,7 @@ "IconDisplay" ], "values":[ - "n_min", + "Vd_max", "local", "Tag" ], @@ -2901,52 +3096,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8956", - "className":"Simulink.Gain", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9005", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Gain1", - "label":"Gain1", + "name":"n_max1", + "label":"n_max1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Gain", - "Multiplication", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" + "FramePeriod" ], "values":[ - "-1", - "Element-wise(K.*u)", + "n_max", + "on", + "inf", "[]", "[]", - "Inherit: Same as input", - "off", - "Zero", + "fixdt(1,16,4)", "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" + "inf" ], "tabs":[ "Main", "Signal Attributes", - "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 8, - 11 + 3, + 7 ] }, "viewer":{ @@ -2955,37 +3140,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8923", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9733", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"CTRL_COMM3", - "label":"CTRL_COMM3", + "name":"Divide1", + "label":"Divide1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Inputs", + "Multiplication", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "TRQ_MODE", - "on", - "inf", + "**", + "Element-wise(.*)", + "off", "[]", "[]", - "Inherit: Inherit via back propagation", + "fixdt(1,16,4)", "off", - "inf" + "Simplest", + "off", + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -2994,8 +3187,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 9 ] }, "viewer":{ @@ -3004,121 +3197,57 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8924", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Current_Limit_Protection", - "label":"Current_Limit_Protection", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10680", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From20", + "label":"From20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" + "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", - "" + "n_max", + "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:8954", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8976", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "iq_max", + "iq", + "local", "Tag" ], "tabs":[ @@ -3132,30 +3261,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8939", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10674", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", + "name":"Constant", + "label":"Constant", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "iq_limProt", - "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" @@ -3163,16 +3310,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8950", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10564", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From23", + "label":"From23", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3180,7 +3327,7 @@ "IconDisplay" ], "values":[ - "Vd_min", + "z_ctrlMod", "Tag" ], "tabs":[ @@ -3199,50 +3346,32 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8918", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9002", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", + "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", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "FramePeriod" ], "values":[ - "5", - "Port number", + "i_max", + "on", + "inf", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", + "fixdt(1,16,4)", "off", - "off" + "inf" ], "tabs":[ "Main", @@ -3251,8 +3380,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -3261,7 +3390,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Constant", "masktype":"" } }, @@ -3313,21 +3442,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8974", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10708", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"From29", + "label":"From29", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "iq_min", - "local", + "r_inpTgtScaAbs", "Tag" ], "tabs":[ @@ -3341,48 +3468,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8920", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8975", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"CTRL_COMM", - "label":"CTRL_COMM", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "VLT_MODE", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "id_min", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -3390,16 +3501,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8917", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10693", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq", - "label":"iq", + "name":"n_motAbs", + "label":"n_motAbs", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3422,7 +3533,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "7", "Port number", "[]", "[]", @@ -3462,44 +3573,11 @@ } }, { - "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" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9013", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9006", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"iq_min", - "label":"iq_min", + "name":"Vd_max", + "label":"Vd_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3528,7 +3606,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "8", + "1", "Port number", "[]", "[]", @@ -3541,9 +3619,9 @@ "auto", "off", "off", - "V_min", + "900", "off", - "reset", + "held", "off", "0", "", @@ -3554,15 +3632,77 @@ "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:10685", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From26", + "label":"From26", + "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:8951", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -3570,16 +3710,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8916", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10695", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"id_TgtAbs", - "label":"id_TgtAbs", + "name":"iqAbs", + "label":"iqAbs", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3602,7 +3742,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "6", "Port number", "[]", "[]", @@ -3642,21 +3782,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8965", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8947", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", + "name":"From3", + "label":"From3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_mot", - "local", + "Vq_min", "Tag" ], "tabs":[ @@ -3670,7 +3808,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -3708,11 +3846,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8945", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10361", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "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:10681", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", + "name":"From21", + "label":"From21", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3720,7 +3889,7 @@ "IconDisplay" ], "values":[ - "n_max", + "iq_max", "Tag" ], "tabs":[ @@ -3739,11 +3908,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8915", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8917", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vd", - "label":"Vd", + "name":"iq", + "label":"iq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3766,7 +3935,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "5", "Port number", "[]", "[]", @@ -3806,25 +3975,61 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8936", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8916", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"id_TgtAbs", + "label":"id_TgtAbs", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "iq_max", - "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" @@ -3832,16 +4037,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9011", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8915", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"id_min", - "label":"id_min", + "name":"VdPrev", + "label":"VdPrev", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3857,20 +4062,14 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "6", + "3", "Port number", "[]", "[]", @@ -3882,17 +4081,10 @@ "-1", "auto", "off", + "", + "on", "off", - "V_min", - "off", - "reset", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", "off" ], "tabs":[ @@ -3912,48 +4104,129 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8922", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM2", - "label":"CTRL_COMM2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10584", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Speed_Mode_Protection", + "label":"Speed_Mode_Protection", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10696", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto18", + "label":"Goto18", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "VLT_MODE", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "iqAbs", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -3961,77 +4234,56 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9008", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8958", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Vq_max", - "label":"Vq_max", + "name":"Gain4", + "label":"Gain4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Gain", + "Multiplication", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" ], "values":[ - "3", - "Port number", + "-1", + "Element-wise(K.*u)", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "V_max", + "Inherit: Same as input", "off", - "reset", + "Zero", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "[]", + "[]", + "Inherit: Same as input", + "-1" ], "tabs":[ "Main", "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, 2, + 8, 11 ] }, @@ -4041,26 +4293,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Gain", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8977", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10682", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"From22", + "label":"From22", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "iq_limProt", - "local", + "iq_min", "Tag" ], "tabs":[ @@ -4074,16 +4324,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8914", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10704", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlMod", - "label":"z_ctrlMod", + "name":"r_inpTgtScaAbs", + "label":"r_inpTgtScaAbs", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -4106,7 +4356,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", "[]", "[]", @@ -4146,175 +4396,60 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8921", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8914", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"CTRL_COMM1", - "label":"CTRL_COMM1", + "name":"z_ctrlMod", + "label":"z_ctrlMod", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" - ], - "values":[ - "SPD_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:8979", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ "1", - "u1 ~= 0", - "", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", + "inherit", "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8980", - "className":"Simulink.Logic", - "icon":"WebViewIcon3", - "name":"Logical Operator1", - "label":"Logical Operator1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Operator", - "Inputs", - "IconShape", - "AllPortsSameDT", - "OutDataTypeStr", - "SampleTime" - ], - "values":[ - "OR", - "2", - "rectangular", + "Inherit", + "-1", + "auto", "off", - "boolean", - "-1" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 5 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Logic", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8981", - "className":"Simulink.Logic", - "icon":"WebViewIcon3", - "name":"Logical Operator2", - "label":"Logical Operator2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Operator", - "Inputs", - "IconShape", - "AllPortsSameDT", - "OutDataTypeStr", - "SampleTime" - ], - "values":[ - "OR", - "2", - "rectangular", + "", + "on", "off", - "boolean", - "-1" + "off", + "off" ], "tabs":[ "Main", - "Data Type", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 5 + 2, + 11 ] }, "viewer":{ @@ -4323,7 +4458,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Logic", + "blocktype":"Inport", "masktype":"" } }, @@ -5501,7 +5636,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8960#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8944#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5552,7 +5687,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8918#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8914#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5603,7 +5738,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8944#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8998#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5654,7 +5789,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8914#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8919#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5705,7 +5840,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8983#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8952#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5756,7 +5891,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8948#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9732#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5807,7 +5942,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8981#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9003#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5858,7 +5993,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8984#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10564#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5909,7 +6044,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8920#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10565#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -5960,7 +6095,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8921#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10565#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6011,7 +6146,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8923#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10565#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6062,7 +6197,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8922#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10674#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6113,7 +6248,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8986#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10675#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6164,7 +6299,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8980#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10680#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6215,7 +6350,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8949#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10683#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6266,7 +6401,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8985#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10682#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6317,7 +6452,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8936#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10681#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6368,7 +6503,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8938#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10684#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6419,7 +6554,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8937#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10685#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6470,7 +6605,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8924#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10693#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6521,7 +6656,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8945#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10695#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6572,7 +6707,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8942#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10699#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6623,7 +6758,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8943#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10700#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6674,7 +6809,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8987#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10704#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6725,7 +6860,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8978#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10708#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6776,7 +6911,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8979#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10710#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6827,7 +6962,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9000#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10709#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6878,7 +7013,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8998#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10584#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6929,7 +7064,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9001#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10602#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -6980,7 +7115,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8919#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10566#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7031,7 +7166,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8952#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10566#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7082,7 +7217,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9732#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10780#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -7133,7 +7268,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9003#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10816#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_8913_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.png index 2e5bbe3..1b3b3b9 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 d77e499..1d2d640 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 @@ -1,10 +1,10 @@ - + - + @@ -14,7 +14,7 @@ - + @@ -22,7 +22,7 @@ - + Speed protection @@ -30,7 +30,7 @@ - + for cases in which the speed is not directly controlled, i.e., @@ -38,7 +38,7 @@ - + VOLTAGE_MODE and TORQUE_MODE @@ -49,7 +49,7 @@ - + @@ -57,7 +57,7 @@ - + Current protection @@ -65,7 +65,7 @@ - + for cases in which the current is not directly controlled, i.e., @@ -73,7 +73,7 @@ - + VOLTAGE_MODE and SPEED_MODE @@ -84,15 +84,15 @@ - - + + - + - + Speed limitations @@ -160,7 +160,7 @@ - where, + where, idSca @@ -168,22 +168,14 @@ - idSca - - - - - - - = id / i_max, - + - + The id_Tgt is used instead of measured id, because the target is a more clean signal. @@ -198,43 +190,43 @@ - + - + Voltage Circle limitations with priority on i_d (Flux current): - + - + Vq_max - + - + = sqrt(Vd_max^2 - Vd^2) - + - + Vq_min - + - + = -Vq_max @@ -245,43 +237,43 @@ - + - + - + - - 10 + + 12 - + - - + + - - + + - - n_limProt + + Vq_nLimProtMax @@ -292,44 +284,92 @@ - - + + - + - + - - 7 + + 11 - + - - + + + + + + + + + iq_limProtErr + + + + + + + + + + + + + + + + + + + - + - - iq_max + + 9 + + + + + + + + + + + + + + + + + + + + + + r_iqLimProtMax @@ -340,44 +380,44 @@ - - + + - + - + - - 5 + + 7 - + - + - - + + - - id_max + + iq_max @@ -398,11 +438,11 @@ - + - + 4 @@ -420,11 +460,11 @@ - - + + - + Vq_min @@ -436,44 +476,44 @@ - - - + + + - - + + - - + + - - n_max + + 10 - - + + - - - + + + - - + + - - sfix16_En4 + + r_nLimProtMax @@ -486,7 +526,7 @@ - + @@ -494,83 +534,83 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -596,11 +636,11 @@ - - + + - + iq_maxSca_XA @@ -611,11 +651,11 @@ - - + + - + uint8 @@ -629,36 +669,28 @@ - + - - - - - - - - - + - - + + @@ -666,7 +698,7 @@ - + @@ -674,7 +706,7 @@ - + @@ -682,7 +714,7 @@ - + @@ -690,7 +722,7 @@ - + @@ -698,7 +730,7 @@ - + @@ -706,7 +738,7 @@ - + @@ -714,7 +746,7 @@ - + @@ -722,7 +754,7 @@ - + @@ -730,7 +762,7 @@ - + @@ -738,7 +770,7 @@ - + @@ -746,7 +778,7 @@ - + @@ -754,7 +786,7 @@ - + @@ -762,7 +794,7 @@ - + @@ -770,7 +802,7 @@ - + @@ -778,7 +810,7 @@ - + @@ -786,7 +818,7 @@ - + @@ -794,7 +826,7 @@ - + @@ -802,7 +834,7 @@ - + @@ -810,7 +842,7 @@ - + @@ -818,7 +850,7 @@ - + @@ -826,7 +858,7 @@ - + @@ -834,7 +866,7 @@ - + @@ -842,7 +874,7 @@ - + @@ -850,7 +882,7 @@ - + @@ -858,7 +890,7 @@ - + @@ -866,7 +898,7 @@ - + @@ -874,7 +906,7 @@ - + @@ -882,7 +914,7 @@ - + @@ -890,7 +922,7 @@ - + @@ -898,7 +930,7 @@ - + @@ -906,7 +938,7 @@ - + @@ -914,7 +946,7 @@ - + @@ -922,30 +954,38 @@ - + + + + + + + + + - + 1-D T(k,f) - + - + k1 - + - + f1 @@ -963,11 +1003,11 @@ - - + + - + iq_maxSca_M1 @@ -978,11 +1018,11 @@ - - + + - + ufix16_En16 @@ -994,141 +1034,93 @@ - - - + + + - - + + - + - - + + - - 0 - - - - - - - - - - - - - - + + - - + + - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1154,11 +1146,11 @@ - - + + - + Vq_max_XA @@ -1169,11 +1161,11 @@ - - + + - + uint8 @@ -1185,44 +1177,44 @@ - - - + + + - - + + - - + + - - Vd_max + + 5 - - + + - - - + + + - - + + - - sfix16_En4 + + id_max @@ -1233,574 +1225,363 @@ - - - + + + - - + + - - + + - - 2 + + - - - - - - + + + + + + + - - - - - - + + + + + + + - + - - Vd_min + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - n_mot + + - + - - n_max + + - + - - n_min + + - + - - n_limProt + + - + - - if { } + + - - - - - - - - + + + - - + + - - - - - - - - + + + - - + + - - + + - - Speed_Limit_Protection + + - - - - - - - - + + + - - + + - - + + - - sfix16_En4 + + - - - - - - - - + + + - - + + - - + + - - action + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - i_max - - - - - - - - - - - - - - + + - - + + - - sfix16_En4 + + - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - - - - + + - - - - - - + + + + + + + - - + + - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - + + - - + + - - + + - - - - - - - - - - - - - - + + + + + + + - - - - - - + + + + + + + - - + + - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - + + 1-D T(k,f) - - + + - - + + k1 - - + + - - + + f1 - - - - - - - - - - + + - - - + + + - - + + - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - + + Vq_max_M1 - - + + - - + + - - uint8 + + sfix16_En4 @@ -1811,52 +1592,44 @@ - - - + + + - - + + - - - - - - u1 - - - - + + - - if(u1 ~= 0) + + Vd_max - - + + - - + + - - + + - - action + + sfix16_En4 @@ -1867,363 +1640,433 @@ - - - + + + - - + + + + + + + + - - + + - - + + r_inpTgtScaAbs - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + iqAbs - - + + - - + + iq_max - - + + - - + + n_motAbs - - + + - - + + n_max - - + + - - + + r_iqLimProtMax - - + + - - + + r_nLimProtMax - - + + - - + + case: { } + + + + - - - + + + + - - + + + + + + - - - + + + + - - + + - - + + - - + + Voltage_Mode_Protection + + + + - - - + + + + - - + + - - + + - - + + sfix16_En4 + + + + - - - + + + + - - + + - - + + - - + + action + + + + - - - + + + + - - + + - - + + - - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + 6 - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + id_min + + + + + + + + + + + + + + + + + + - - + + - - + + [iq_min] - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + [iq_max] - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - 1-D T(k,f) + + [Vd_min] - - - - - - - k1 + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - f1 + + [r_iqLimProtMax] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - Vq_max_M1 + + [iq_limProtErr] - - - + + + + + + + + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + [id_TgtAbs] + + + + + + + @@ -2234,28 +2077,28 @@ - - + + - + - - + + - - [iq] + + [r_inpTgtScaAbs] - + @@ -2267,29 +2110,44 @@ - - - + + + - - + + - - + + - - [iq_max] + + 3 - - + + + + + + + + + + + + + + + + + Vq_max @@ -2300,28 +2158,28 @@ - - + + - + - - + + - - [id_max] + + [n_motAbs] - + @@ -2333,28 +2191,28 @@ - - + + - + - - - + + + - - [Vd_min] + + [z_ctrlMod] - + @@ -2366,28 +2224,28 @@ - - + + - + - - + + - - [z_ctrlMod] + + [VdPrev] - + @@ -2399,28 +2257,28 @@ - - + + - + - + - - [Vq_min] + + [id_max] - + @@ -2432,29 +2290,44 @@ - - - + + + - - + + - - + + - - [Vq_max] + + -1 - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -2465,28 +2338,28 @@ - - + + - + - + - - [Vd_max] + + [Vq_nLimProtMax] - + @@ -2498,43 +2371,43 @@ - - + + - + - + - + -1 - + - + - - + + - + sfix16_En4 @@ -2546,43 +2419,43 @@ - - + + - + - + - + -1 - + - + - - + + - + sfix16_En4 @@ -2594,43 +2467,43 @@ - - - + + + - - + + - - + + - - -1 + + [iq_min] - - + + - + - - + + - + sfix16_En4 @@ -2642,44 +2515,44 @@ - - - + + + - - + + - - + + - - 9 + + [iq_max] - - + + - - - + + + - - + + - - iq_limProt + + sfix16_En4 @@ -2700,11 +2573,11 @@ - + - + [id_min] @@ -2722,11 +2595,11 @@ - - + + - + sfix16_En4 @@ -2738,43 +2611,43 @@ - - - + + + - - + + - - + + - - -1 + + [Vd_min] - - + + - + - - + + - + sfix16_En4 @@ -2786,43 +2659,43 @@ - - + + - + - + - - [id_TgtAbs] + + [r_nLimProtMax] - + - + - - + + - + sfix16_En4 @@ -2834,43 +2707,43 @@ - - + + - + - + - - [id_max] + + [r_iqLimProtMax] - + - + - - + + - + sfix16_En4 @@ -2882,43 +2755,43 @@ - - + + - + - + - - [Vq_min] + + [n_motAbs] - + - + - - + + - + sfix16_En4 @@ -2930,43 +2803,43 @@ - - + + - + - + - - [Vd_max] + + [n_max] - + - + - - + + - + sfix16_En4 @@ -2978,29 +2851,92 @@ - - - + + + - - + + - - + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + - - [n_limProt] + + [Vd_max] + + + + + + + - - - + + + + + + + + + + + sfix16_En4 @@ -3011,44 +2947,44 @@ - - + + - + - + - - [n_limProt] + + [iq_limProtErr] - + - - + + - - + + - - sfix16_En4 + + sfix32_En20 @@ -3059,44 +2995,44 @@ - - + + - + - + - - [z_ctrlMod] + + [Vq_max] - + - - + + - - + + - - uint8 + + sfix16_En4 @@ -3107,44 +3043,44 @@ - - + + - + - + - - [z_ctrlMod] + + [iqAbs] - + - - + + - - + + - - uint8 + + sfix16_En4 @@ -3155,43 +3091,43 @@ - - + + - + - + - - [n_min] + + [id_TgtAbs] - + - + - - + + - + sfix16_En4 @@ -3203,43 +3139,43 @@ - - + + - + - + - - [n_mot] + + [Vq_max] - + - + - - + + - + sfix16_En4 @@ -3251,43 +3187,43 @@ - - + + - + - + - - [iq_min] + + [Vq_nLimProtMax] - + - + - - + + - + sfix16_En4 @@ -3299,43 +3235,43 @@ - - + + - + - + - - [iq] + + [VdPrev] - + - + - - + + - + sfix16_En4 @@ -3347,43 +3283,43 @@ - - + + - + - + - - [iq_min] + + [n_motAbs] - + - + - - + + - + sfix16_En4 @@ -3395,44 +3331,69 @@ - - - + + + - - + + - - + + - - [Vq_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - sfix16_En4 + + ufix16_En16 @@ -3443,28 +3404,28 @@ - - + + - + - + - - [id_min] + + [r_nLimProtMax] - + @@ -3476,44 +3437,179 @@ - - - + + + - - + + - - + + + + + + u1 + + + + + + + + case [ 1 ]: + + + + + + + + case [ 2 ]: + + + + - - [Vd] + + case [ 3 ]: - - + + - - + + - - + + - - sfix16_En4 + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + + + + + + + + + + + + + + + + + + + + + + iq_min + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + @@ -3524,28 +3620,28 @@ - - + + - + - + - - [id_TgtAbs] + + [Vq_min] - + @@ -3557,44 +3653,44 @@ - - + + - + - + - - 1 + + 2 - + - - + + - - + + - - Vd_max + + Vd_min @@ -3605,124 +3701,135 @@ - - - + + + - - + + + + + + + + - - + + - - + + n_motAbs - - + + - - + + n_max - - + + - - + + Vq_max - - + + - - - + + Vq_nLimProtMax + + + + + + + + case: { } - - + + + + + + + + - - - + + + + + + + + + - - + + - - ufix16_En16 + + Torque_Mode_Protection - - - - - - - - - - - - - - - + - - - + + + + - - + + - - + + - - - - - - - - - + + action - + + + + + + + - - + + - + sfix16_En4 @@ -3734,29 +3841,50 @@ - - - + + + + + + + + + - - + + - - + + - - [n_min] + + 0 - - + + + + + + + + + + + + + + + + + uint8 @@ -3767,44 +3895,29 @@ - - - + + + - - + + - - + + - - -1 + + [Vd_max] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -3815,44 +3928,44 @@ - - - + + + - - + + - - + + - - TRQ_MODE + + n_max - - + + - - + + - - + + - - uint8 + + sfix16_En4 @@ -3863,135 +3976,51 @@ - - - - - - - - - - - - - - - - - - - - - - iq - - - - - - - - iq_max - - - - - - - - iq_min - - - - - - - - iq_limProt - - - - - - - - if { } - - + + + - - - - - - - - - - - - + + - - - - - - + + + + + - - + + - - + + - - Current_Limit_Protection + + - - - - - - - - - - - - - - - - - action + + + - - - - - - - + - - + + - + sfix16_En4 @@ -4003,49 +4032,43 @@ - - - - - - - - + + - + - + - - [iq_max] + + [n_max] - + - + - - + + - + sfix16_En4 @@ -4057,44 +4080,77 @@ - - - + + + - - + + - - + + - - [iq_limProt] + + [iq] - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + - - + + - - + + - - sfix16_En4 + + uint8 @@ -4105,44 +4161,44 @@ - - + + - + - + - - [Vd_min] + + [z_ctrlMod] - + - - + + - - + + - - sfix16_En4 + + uint8 @@ -4153,58 +4209,43 @@ - - - + + + - - + + - - + + - - 5 + + i_max - - - - - - - - - - - - - - - - - n_mot + + - + - - + + - + sfix16_En4 @@ -4218,7 +4259,7 @@ - + @@ -4226,35 +4267,35 @@ - + - + - + - + - + - + - + - + @@ -4280,11 +4321,11 @@ - - + + - + sfix16_En4 @@ -4296,28 +4337,76 @@ - - + + + + + + + + + + + + + + + + [r_inpTgtScaAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + - + - + - - [iq_min] + + [id_min] - + @@ -4329,44 +4418,59 @@ - - - + + + - - + + - - + + - - VLT_MODE + + 7 - - + + + + + + + + + + + + + + + + + n_motAbs - - + + - - + + - - uint8 + + sfix16_En4 @@ -4377,58 +4481,91 @@ - - + + - + - + - - 4 + + 1 - + - - + + - - + + - - iq + + Vd_max + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + - + - - + + - + sfix16_En4 @@ -4440,29 +4577,44 @@ - - - + + + - - + + - - + + - - [Vd] + + [id_max] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -4473,44 +4625,59 @@ - - + + - + - + - - 8 + + 6 - + - - + + - - + + - - iq_min + + iqAbs + + + + + + + + + + + + + + + sfix16_En4 @@ -4521,58 +4688,43 @@ - - - + + + - - + + - - + + - - 3 + + [Vq_min] - - - - - - - - - - - - - - - - - id_TgtAbs + + - + - - + + - + sfix16_En4 @@ -4584,28 +4736,28 @@ - - + + - + - + - - [n_mot] + + [n_max] - + @@ -4617,29 +4769,44 @@ - - - + + + - - + + - - + + - - [n_max] + + if { } - - + + + + + + + + + + + + + + + + + Action Port @@ -4650,43 +4817,43 @@ - - + + - + - + - - [n_max] + + [iq_max] - + - + - - + + - + sfix16_En4 @@ -4698,58 +4865,58 @@ - - + + - + - + - - 2 + + 5 - + - - + + - - + + - - Vd + + iq - + - - + + - + sfix16_En4 @@ -4761,43 +4928,58 @@ - - - + + + - - + + - - + + - - [iq_max] + + 4 - - + + + + + + + + + + + + + + + + + id_TgtAbs - + - - + + - + sfix16_En4 @@ -4809,44 +4991,59 @@ - - + + - + - + - - 6 + + 3 - + - - + + - - + + - - id_min + + VdPrev + + + + + + + + + + + + + + + sfix16_En4 @@ -4857,125 +5054,136 @@ - - - + + + - - + + + + + + + + - - + + - - VLT_MODE + + iq - - - - - - + + + + + + + iq_max - - - - - - + + + + + + + iq_min - - + + - - uint8 + + iq_limProtErr - - - - - - - - - - - - - - - - - - - - + + - - 3 + + case: { } - - + + + + + + + + - - + + + + + + + + - - + + - - Vq_max + + Speed_Mode_Protection - - - - - - - - - - - - - - - + - - + + + + + + + + + + + - - [iq_limProt] + + sfix32_En20 - - - + + + + + + + + + + + + + + + + + action @@ -4986,59 +5194,35 @@ - - - + + + + + + + + + - - + + - - + + - - 1 + + [iqAbs] - - - - - - - - - - - - - - - - - z_ctrlMod - - - - - - - - - - - - - - - uint8 + + @@ -5049,44 +5233,44 @@ - - - + + + - - + + - - + + - - SPD_MODE + + -1 - - + + - - + + - - + + - - uint8 + + sfix16_En4 @@ -5097,52 +5281,44 @@ - - - + + + - - + + - - - - - - u1 - - - - + + - - if(u1 ~= 0) + + [iq_min] - - + + - - + + - - + + - - action + + sfix16_En4 @@ -5153,60 +5329,59 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 2 - - - - - - + + - + + + + + + + + + + + r_inpTgtScaAbs + - - + + - - + + - - boolean + + sfix16_En4 @@ -5217,61 +5392,60 @@ - - - + + + - - + + - - - - - - - - - + - - + + - - + + 1 - + + + + - - - + + + - - + + - - boolean + + z_ctrlMod - - - + + + + + + + + + + + uint8 - - - - @@ -5386,11 +5560,11 @@ - + - + @@ -5400,11 +5574,11 @@ - + - + @@ -5529,13 +5703,13 @@ - + - + @@ -5662,11 +5836,11 @@ - + - + @@ -5676,11 +5850,11 @@ - + - + @@ -5690,553 +5864,493 @@ - - - - - - - - - - - - - - - - - - + - + - - - - + - + - + - + - + - + - + - - - - + - - - - - + - + - - - - - + - + + + + - - - - - - - - - - - - - - - - - - + - + - + - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - - + + - + - + - - + + - + - + - + - - - - - - - - + - + - + + + + + - + - + - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - - + + - + - + - + - - - - - - - - + - + - + + + + + - + - + - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -6245,5 +6359,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.png deleted file mode 100644 index 1a1009f..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.png and /dev/null differ 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 deleted file mode 100644 index 9a4c121..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.png and /dev/null differ 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 4ab90af..c45d5d1 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 @@ -3,8 +3,8 @@ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9044", "className":"Simulink.Annotation", "icon":"WebViewIcon2", - "name":"

This will reduce the control command to 0 with a predefined rate.

", - "label":"

This will reduce the control command to 0 with a predefined rate.

", + "name":"

Just copy the target which will be reduced to 0 in the Input_Target_Sythesis function.

", + "label":"

Just copy the target which will be reduced to 0 in the Input_Target_Sythesis function.

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

This will reduce the control command to 0 with a predefined rate.

", + "\n\n

Just copy the target which will be reduced to 0 in the Input_Target_Sythesis function.

", "off", "rich", "auto", @@ -48,6 +48,37 @@ "finder":[ ] }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9031", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9043", "className":"Simulink.Outport", @@ -129,369 +160,60 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon9", - "name":"Rate_Limiter", - "label":"Rate_Limiter", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "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", - "Auto", - "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:9041", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9030", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"dV_openRate", - "label":"dV_openRate", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "dV_openRate", - "on", - "inf", + "1", + "Port number", "[]", "[]", - "fixdt(1,28,16)", + "Inherit: auto", "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:9037", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain3", - "label":"Gain3", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ + "inherit", "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", + "Inherit", + "-1", + "auto", "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: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: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", - "" + "off" ], "tabs":[ "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Rising edge init" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9034", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 + 2, + 11 ] }, "viewer":{ @@ -500,298 +222,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", - "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:9039", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_prev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "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", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9032", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Constant23", - "label":"Constant23", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9031", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "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:9030", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Vq_prev", - "label":"Vq_prev", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "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: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", + "blocktype":"Inport", "masktype":"" } }, @@ -845,464 +276,5 @@ ], "finder":[ ] - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9032#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "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:9042#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "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:9037#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "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:9041#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "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:9034#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "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:9036#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "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:9040#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "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:9035#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "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:9033#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "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_9029_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.png index 2e87bb3..6b9146d 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.png differ 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 ef53976..0605bca 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 @@ -1,10 +1,10 @@ - + - + @@ -14,703 +14,24 @@ - - + + - - + + - - This will reduce the control command to 0 with a predefined rate. + + Just copy the target which will be reduced to 0 in - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - Vq_Open - - - - - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - initVal - - - - - - - - init - - - - - - - - inc - - - - - - - - dec - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Rate_Limiter - - - - - - - - - - - - - - - sfix28_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dV_openRate - - - - - - - - - - - - - - - - - - - - - - dV_openRate - - - - - - - - - - - - - - - sfix28_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - sfix28_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_Open] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_prev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_prev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix28_En16 - - + + + + + + + the Input_Target_Sythesis function. @@ -719,44 +40,44 @@ - - - + + + - - + + - - + + - - 0 + + default: { } - - + + - - - + + + - - + + - - sfix28_En16 + + Action Port @@ -767,44 +88,44 @@ - - - + + + - - + + - - + + - - default: { } + + 1 - - + + - - + + - - + + - - Action Port + + Vq_Open @@ -816,57 +137,57 @@ - + - + - + - + 1 - + - - + + - - + + - - Vq_prev + + r_inpTgtSca - + - - + + - + sfix16_En4 @@ -876,193 +197,14 @@ - - - - - - - - - - - - - - - - - - [Vq_Open] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -1071,5 +213,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.json index ecaf992..18405d8 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.json @@ -476,65 +476,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9066", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9064", "className":"Simulink.Goto", @@ -602,19 +543,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9061", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9062", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_sin", + "r_cos", + "local", "Tag" ], "tabs":[ @@ -628,30 +571,58 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9060", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9066", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"Sum1", + "label":"Sum1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "i_beta", - "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" @@ -659,16 +630,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9059", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9061", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -676,7 +647,7 @@ "IconDisplay" ], "values":[ - "r_cos", + "r_sin", "Tag" ], "tabs":[ @@ -695,25 +666,53 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9058", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9067", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"Sum6", + "label":"Sum6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "i_apha", - "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" @@ -721,16 +720,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9057", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9059", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -738,7 +737,7 @@ "IconDisplay" ], "values":[ - "i_beta", + "r_cos", "Tag" ], "tabs":[ @@ -757,11 +756,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9055", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9058", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -769,7 +768,7 @@ "IconDisplay" ], "values":[ - "r_cos", + "i_apha", "Tag" ], "tabs":[ @@ -788,25 +787,51 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9054", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9053", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"Divide4", + "label":"Divide4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "r_sin", - "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" @@ -814,24 +839,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9056", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9065", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "i_apha", + "i_beta", + "local", "Tag" ], "tabs":[ @@ -845,26 +872,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "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":[ @@ -878,16 +903,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9051", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9052", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", + "name":"Divide3", + "label":"Divide3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -940,21 +965,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":[ @@ -968,16 +991,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9050", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9051", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", + "name":"Divide2", + "label":"Divide2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -1030,11 +1053,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9052", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9056", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_apha", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9050", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide3", - "label":"Divide3", + "name":"Divide1", + "label":"Divide1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ @@ -1087,53 +1141,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9067", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9055", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Sum6", - "label":"Sum6", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "rectangular", - "-+", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "r_cos", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 10 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1141,56 +1167,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9053", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9060", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", + "name":"From6", + "label":"From6", "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_beta", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1198,7 +1198,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"From", "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 19e5a70..6b9aab2 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 @@ -412,68 +412,62 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + [r_sin] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + [i_apha] + + + + + + + @@ -484,28 +478,28 @@ - - + + - + - + - - [r_sin] + + [r_cos] - + @@ -517,29 +511,68 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + - + - - [i_apha] + + + + + + + + + + - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -560,11 +593,11 @@ - + - + [r_sin] @@ -582,11 +615,11 @@ - + - + sfix16_En14 @@ -598,43 +631,59 @@ - - - + + + - - + + - - + + - - [i_beta] + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -656,11 +705,11 @@ - + - + [r_cos] @@ -678,11 +727,11 @@ - + - + sfix16_En14 @@ -704,11 +753,11 @@ - + - + [i_apha] @@ -726,11 +775,11 @@ - + - + sfix16_En4 @@ -742,43 +791,51 @@ - - - + + + - - + + - - + + - - [i_beta] + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -790,44 +847,29 @@ - - - + + + - - + + - - + + - - [r_cos] + + [i_beta] - - - - - - - - - - - - - - - - - sfix16_En14 + + @@ -838,44 +880,44 @@ - - + + - + - + - - [r_sin] + + [i_beta] - + - - + + - - + + - - sfix16_En14 + + sfix16_En4 @@ -886,43 +928,51 @@ - - - + + + - - + + - - + + - - [i_apha] + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -934,29 +984,44 @@ - - - + + + - - + + - - + + - - [r_cos] + + [r_sin] - - + + + + + + + + + + + + + + + + + sfix16_En14 @@ -977,19 +1042,19 @@ - + - + - + - + @@ -1007,11 +1072,11 @@ - + - + sfix16_En4 @@ -1023,84 +1088,43 @@ - - - - - - - - - - - - - - - - [i_beta] - - - - - - - - - - - - - - - - - - - - + + + - - + + - - - - - - - - - - + + - - + + [i_apha] - - + + - + - - + + - + sfix16_En4 @@ -1112,51 +1136,51 @@ - - + + - + - - + + - - + + - - + + - - + + - + - + - - + + - + sfix16_En4 @@ -1168,60 +1192,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - + + - - + + [r_cos] - - + + - - + + - - + + - - sfix16_En4 + + sfix16_En14 @@ -1232,51 +1240,43 @@ - - - + + + - - + + - - - - - - - - - + - - + + [i_beta] - - + + - + - + - + sfix16_En4 @@ -1540,5 +1540,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.json index 94bcc5c..3afdfa9 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 @@ -49,44 +49,73 @@ ] }, { - "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

", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9106", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vq_Spd", + "label":"Vq_Spd", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "Text", - "DropShadow", - "Interpreter", - "FontName", - "FontWeight", - "FontSize", - "FontAngle", - "ForegroundColor", - "BackgroundColor", - "HorizontalAlignment", - "UseDisplayTextAsClickCallback", - "ClickFcn" + "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\n

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

", + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", - "rich", - "auto", - "auto", - -1, + "inherit", + "-1", + "Inherit", + "-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":{ @@ -94,15 +123,17 @@ }, "obj_viewer":[ ], - "finder":[ - ] + "finder":{ + "blocktype":"Outport", + "masktype":"" + } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9104", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9105", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"cf_nKi", - "label":"cf_nKi", + "name":"cf_nKp", + "label":"cf_nKp", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -116,12 +147,12 @@ "FramePeriod" ], "values":[ - "cf_nKi", - "off", + "cf_nKp", + "on", "inf", "[]", "[]", - "fixdt(0,16,16)", + "fixdt(0,16,12)", "off", "inf" ], @@ -206,22 +237,22 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9100", - "className":"Simulink.SignalConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9093", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Signal Conversion2", - "label":"Signal Conversion2", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "ConversionOutput", - "OutDataTypeStr", - "OverrideOpt" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "Signal copy", - "Inherit: auto", - "off" + "Vq_min", + "local", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -234,109 +265,49 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"SignalConversion", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon9", - "name":"PI_clamp_fixdt_n", - "label":"PI_clamp_fixdt_n", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9092", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", "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" + "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" + "r_inpTgtSca", + "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:9094", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9091", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -345,7 +316,7 @@ "IconDisplay" ], "values":[ - "n_mot", + "Vq_max", "local", "Tag" ], @@ -365,11 +336,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9093", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9095", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto31", + "label":"Goto31", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -378,7 +349,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "iq_limProtErr", "local", "Tag" ], @@ -398,21 +369,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9092", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9090", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"From45", + "label":"From45", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "r_inpTgtSca", - "local", + "Vq_min", "Tag" ], "tabs":[ @@ -426,26 +395,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9091", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9089", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"From38", + "label":"From38", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "Vq_max", - "local", "Tag" ], "tabs":[ @@ -459,16 +426,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9089", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9087", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From38", - "label":"From38", + "name":"From36", + "label":"From36", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -476,7 +443,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "n_mot", "Tag" ], "tabs":[ @@ -495,11 +462,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9087", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10714", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From36", - "label":"From36", + "name":"From", + "label":"From", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -507,7 +474,7 @@ "IconDisplay" ], "values":[ - "n_mot", + "iq_limProtErr", "Tag" ], "tabs":[ @@ -526,43 +493,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9102", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9094", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"cf_iqKiLimProt", - "label":"cf_iqKiLimProt", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "cf_iqKiLimProt", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", - "off", - "inf" + "n_mot", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -570,16 +521,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9078", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9081", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", + "name":"iq_limProtErr", + "label":"iq_limProtErr", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -602,7 +553,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "5", "Port number", "[]", "[]", @@ -642,318 +593,125 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9083", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"PI_clamp_fixdt", + "label":"PI_clamp_fixdt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "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(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,10)", - "off", - "Simplest", + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", + "on", "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:9106", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"Vq_Spd", - "label":"Vq_Spd", - "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" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", "off", - "inherit", - "-1", - "Inherit", "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", + "Reusable function", + "Use subsystem name", "", - [ - ], - "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: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":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", + "", + "void_void", + "off", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", "off", "", - "on", + "", "off", "off", - "off" + "off", + "", + "", + "on" ], "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:9095", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto31", - "label":"Goto31", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_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: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" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9077", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9104", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Vq_min", - "label":"Vq_min", + "name":"cf_nKi", + "label":"cf_nKi", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "FramePeriod" ], "values":[ - "3", - "Port number", + "cf_nKi", + "off", + "inf", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", + "fixdt(0,16,16)", "off", - "off" + "inf" ], "tabs":[ "Main", @@ -962,8 +720,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -972,47 +730,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9082", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "reset", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9076", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9078", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vq_max", - "label":"Vq_max", + "name":"n_mot", + "label":"n_mot", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -1035,7 +762,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "4", "Port number", "[]", "[]", @@ -1106,32 +833,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9105", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9076", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"cf_nKp", - "label":"cf_nKp", + "name":"Vq_max", + "label":"Vq_max", "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_nKp", - "on", - "inf", + "2", + "Port number", "[]", "[]", - "fixdt(0,16,12)", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", @@ -1140,8 +885,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -1150,25 +895,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9090", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9082", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"From45", - "label":"From45", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "Vq_min", - "Tag" + "held", + "Only when execution is resumed" ], "tabs":[ "Parameter Attributes" @@ -1181,7 +926,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"ActionPort", "masktype":"" } }, @@ -1253,148 +998,60 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9087#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "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:9075#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9077", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vq_min", + "label":"Vq_min", "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":[ - "", - "off", - "off", + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "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:9076#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" - ], - "values":[ "", + "on", "off", "off", - "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":{ @@ -1402,11 +1059,13 @@ }, "obj_viewer":[ ], - "finder":[ - ] + "finder":{ + "blocktype":"Inport", + "masktype":"" + } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9077#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9087#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1457,7 +1116,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9078#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9075#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1508,7 +1167,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9081#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9076#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1559,7 +1218,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9102#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9077#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1610,7 +1269,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9084#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9078#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1661,7 +1320,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9100#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9081#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1763,7 +1422,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9105#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9101#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1814,7 +1473,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9101#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9105#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2018,7 +1677,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9083#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2069,7 +1728,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10714#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 d69de82..5ac1e7d 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 31e0191..5e9498e 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,10 +1,10 @@ - + - + @@ -14,15 +14,15 @@ - + - + - + The input is scaled, so already between [n_min, n_max] @@ -30,73 +30,46 @@ - - - - - - - - - - - - - This product is necessary because the value is an - - - - - - - - input to the Integral part of the PI controller - - - - - - - - - + + + - - + + - - + + - - cf_nKi + + 1 - - + + - - - + + + - - + + - - ufix16_En16 + + Vq_Spd @@ -107,236 +80,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + cf_nKp - - - - - - - - - - + + - - + + - - + + - - sfix16_En4 + + ufix16_En12 @@ -347,179 +128,92 @@ - - - + + + - - + + - - - - - - err - - - - - - - - P - - - - - - - - I - - - - - - - - satMax - - - - + + - - satMin + + - - + + - - ext_limProt + + - - + + - - out - - - - - - - - PI(z) + + - - - - - - - - - - - - - - - - - PI_clamp_fixdt_n + + - + - - + + - + sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - + - - [n_mot] + + [Vq_min] - + @@ -531,28 +225,28 @@ - - + + - + - + - - [Vq_min] + + [r_inpTgtSca] - + @@ -564,28 +258,28 @@ - - + + - + - + - - [r_inpTgtSca] + + [Vq_max] - + @@ -597,28 +291,28 @@ - - + + - + - + - - [Vq_max] + + [iq_limProtErr] - + @@ -630,43 +324,43 @@ - - + + - + - + - - [Vq_max] + + [Vq_min] - + - + - - + + - + sfix16_En4 @@ -678,43 +372,43 @@ - - + + - + - + - - [n_mot] + + [Vq_max] - + - + - - + + - + sfix16_En4 @@ -726,59 +420,44 @@ - - - + + + - - + + - - + + - - cf_iqKiLimProt + + [n_mot] - - - - - - - - - - - - - - - - - cf_iqKiLimProt + + - - + + - - + + - - ufix16_En16 + + sfix16_En4 @@ -789,59 +468,44 @@ - - - + + + - - + + - - + + - - 4 + + [iq_limProtErr] - - - - - - - - - - - - - - - - - n_mot + + - - + + - - + + - - sfix16_En4 + + sfix32_En20 @@ -852,52 +516,29 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + [n_mot] - - - - - - - - - - - - - - - - - sfix16_En10 + + @@ -908,44 +549,59 @@ - - + + - + - + - - 1 + + 5 - + - - - + + + + + + + + + + + iq_limProtErr + + + + + + + - - + + - - Vq_Spd + + sfix32_En20 @@ -956,92 +612,147 @@ - - - + + + - - + + - - + + - - 5 + + err + + + + + + + + P + + + + + + + + I + + + + + + + + satMax + + + + + + + + satMin + + + + + + + + ext_limProt + + + + + + + + out + + + + + + + + PI(z) - - + + - - + + - - + + - - iq_limProt + + PI_clamp_fixdt - + - - + + - + sfix16_En4 - - - - - - - - - - - - - - - + - - + + - - [iq_limProt] + + - - - - - + + + + + + + + + + + + + + + + + + @@ -1052,44 +763,44 @@ - - - + + + - - + + - - + + - - [iq_limProt] + + cf_nKi - - + + - - + + - - + + - - sfix16_En4 + + ufix16_En16 @@ -1100,58 +811,58 @@ - - + + - + - + - - 3 + + 4 - + - - + + - - + + - - Vq_min + + n_mot - + - - + + - + sfix16_En4 @@ -1163,44 +874,44 @@ - - - + + + - - + + - - + + - - case: { } + + [r_inpTgtSca] - - + + - - - + + + - - + + - - Action Port + + sfix16_En4 @@ -1212,57 +923,57 @@ - + - + - + - + 2 - + - + - - + + - + Vq_max - + - - + + - + sfix16_En4 @@ -1274,44 +985,44 @@ - - - + + + - - + + - - + + - - [r_inpTgtSca] + + case: { } - - + + - - - + + + - - + + - - sfix16_En4 + + Action Port @@ -1322,91 +1033,58 @@ - - - + + + - - + + - - + + - - cf_nKp + + 1 - - + + - - - - - - - - - - - ufix16_En12 + + + - - - - - - - - - - - - - - - - - - - - + + - - [Vq_min] - - - - - - - + + r_inpTgtSca - + - - + + - + sfix16_En4 @@ -1418,58 +1096,58 @@ - - + + - + - + - - 1 + + 3 - + - - + + - - + + - - r_inpTgtSca + + Vq_min - + - - + + - + sfix16_En4 @@ -1482,11 +1160,11 @@ - + - + @@ -1496,11 +1174,11 @@ - + - + @@ -1510,11 +1188,11 @@ - + - + @@ -1524,11 +1202,11 @@ - + - + @@ -1538,11 +1216,11 @@ - + - + @@ -1552,53 +1230,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + @@ -1608,39 +1244,39 @@ - + - + - + - + - + - + - + - + @@ -1650,11 +1286,11 @@ - + - + @@ -1664,11 +1300,11 @@ - + - + @@ -1678,39 +1314,39 @@ - + - + - + - + - + - + - + - + @@ -1719,5 +1355,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.json index 00bf9b2..870e392 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,56 +80,7 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9140", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant", - "label":"constant", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9136", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10831", "className":"Simulink.Sum", "icon":"WebViewIcon3", "name":"Sum2", @@ -152,8 +103,8 @@ "SampleTime" ], "values":[ - "rectangular", - "++", + "round", + "|+-", "off", "Inherit: Inherit via internal rule", "[]", @@ -188,11 +139,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9138", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10834", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"cf_iqKi", - "label":"cf_iqKi", + "name":"constant2", + "label":"constant2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -206,12 +157,12 @@ "FramePeriod" ], "values":[ - "cf_iqKi", + "0", "on", "inf", "[]", "[]", - "fixdt(0,16,16)", + "Inherit: Inherit via back propagation", "off", "inf" ], @@ -237,11 +188,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829", "className":"Saturation Dynamic", "icon":"WebViewIcon3", - "name":"Saturation Dynamic", - "label":"Saturation Dynamic", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -276,95 +227,35 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon9", - "name":"PI_clamp_fixdt_iq", - "label":"PI_clamp_fixdt_iq", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10844", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", "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" + "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" + "Vq_minTrq", + "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":"" } }, @@ -382,7 +273,7 @@ "IconDisplay" ], "values":[ - "n_limProt", + "Vq_nLimProtMax", "local", "Tag" ], @@ -402,11 +293,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9128", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9130", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -415,7 +306,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "iq", "local", "Tag" ], @@ -435,11 +326,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9126", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9127", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"Goto19", + "label":"Goto19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -448,7 +339,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "iq_max", "local", "Tag" ], @@ -468,25 +359,47 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9121", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10841", + "className":"Simulink.MinMax", "icon":"WebViewIcon3", - "name":"From34", - "label":"From34", + "name":"MinMax2", + "label":"MinMax2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" ], "values":[ - "r_inpTgtSca", - "Tag" + "Inherit: Inherit via internal rule", + "max", + "off", + "2", + "off", + "[]", + "[]", + "Floor", + "-1", + "off", + "on" ], "tabs":[ - "Parameter Attributes" + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 1 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -494,16 +407,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"MinMax", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9130", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9126", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -512,7 +425,7 @@ "IconDisplay" ], "values":[ - "iq", + "r_inpTgtSca", "local", "Tag" ], @@ -532,19 +445,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9120", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9125", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "iq_min", + "Vq_max", + "local", "Tag" ], "tabs":[ @@ -558,30 +473,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9119", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9138", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"cf_iqKi", + "label":"cf_iqKi", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "iq_max", - "Tag" + "cf_iqKi", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -589,26 +522,83 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9129", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10840", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"Goto29", - "label":"Goto29", + "name":"Gain4", + "label":"Gain4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "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:10821", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From9", + "label":"From9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" ], "values":[ "iq_min", - "local", "Tag" ], "tabs":[ @@ -622,12 +612,229 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10820", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10819", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9740", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10836", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From15", + "label":"From15", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10846", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_minTrq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10822", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10838", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From12", + "label":"From12", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10823", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10845", "className":"Simulink.From", "icon":"WebViewIcon3", "name":"From", @@ -639,7 +846,7 @@ "IconDisplay" ], "values":[ - "n_limProt", + "Vq_maxTrq", "Tag" ], "tabs":[ @@ -658,11 +865,60 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9116", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9139", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_iqKp", + "label":"cf_iqKp", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_iqKp", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,12)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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":[ @@ -685,33 +941,219 @@ "OutputFunctionCall" ], "values":[ - "7", + "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:9114", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq_max", + "label":"iq_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", "Port number", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", + "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:9129", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto29", + "label":"Goto29", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10843", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_maxTrq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10842", + "className":"Simulink.MinMax", + "icon":"WebViewIcon3", + "name":"MinMax1", + "label":"MinMax1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" + ], + "values":[ + "Inherit: Inherit via internal rule", + "min", + "off", + "2", + "off", + "[]", + "[]", + "Floor", "-1", - "auto", - "off", - "", - "on", "off", - "off", - "off" + "on" ], "tabs":[ - "Main", "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 1 ] }, "viewer":{ @@ -720,16 +1162,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"MinMax", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9115", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9111", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq_min", - "label":"iq_min", + "name":"Vq_max", + "label":"Vq_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -752,7 +1194,7 @@ "OutputFunctionCall" ], "values":[ - "6", + "2", "Port number", "[]", "[]", @@ -791,70 +1233,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9117", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "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:9125", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9113", "className":"Simulink.Inport", @@ -923,51 +1301,113 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9124", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From47", - "label":"From47", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"PI_clamp_fixdt", + "label":"PI_clamp_fixdt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "GotoTag", - "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":[ - "Vq_min", - "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":"From", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9123", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9117", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"From44", - "label":"From44", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "Vq_max", - "Tag" + "held", + "Only when execution is resumed" ], "tabs":[ "Parameter Attributes" @@ -980,16 +1420,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"ActionPort", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9114", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9110", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq_max", - "label":"iq_max", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -1012,82 +1452,23 @@ "OutputFunctionCall" ], "values":[ - "5", + "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: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", + "Inherit: auto", "off", - "Simplest", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", "on", - "1", - "All dimensions", - "-1" + "off", + "off", + "off" ], "tabs":[ "Main", @@ -1097,7 +1478,7 @@ "tabs_idx":[ 0, 2, - 10 + 11 ] }, "viewer":{ @@ -1106,16 +1487,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9127", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9128", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -1124,7 +1505,7 @@ "IconDisplay" ], "values":[ - "iq_max", + "Vq_min", "local", "Tag" ], @@ -1144,42 +1525,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9118", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9111", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9112", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vq_max", - "label":"Vq_max", + "name":"Vq_min", + "label":"Vq_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -1202,7 +1552,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -1242,11 +1592,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9110", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9116", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", + "name":"Vq_nLimProtMax", + "label":"Vq_nLimProtMax", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -1269,7 +1619,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "7", "Port number", "[]", "[]", @@ -1309,41 +1659,45 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9139", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_iqKp", - "label":"cf_iqKp", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9111#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "cf_iqKp", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,12)", + "", "off", - "inf" + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" ], "tabs_idx":[ 0, 3, + 5, 7 ] }, @@ -1352,66 +1706,50 @@ }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9112", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Vq_min", - "label":"Vq_min", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9110#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "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" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", + "", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", "off", - "", - "on", "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":{ @@ -1419,46 +1757,62 @@ }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9134", - "className":"Simulink.SignalConversion", - "icon":"WebViewIcon3", - "name":"Signal Conversion2", - "label":"Signal Conversion2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9112#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "ConversionOutput", - "OutDataTypeStr", - "OverrideOpt" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "Signal copy", - "Inherit: auto", - "off" + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":{ - "blocktype":"SignalConversion", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9118#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9113#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1509,7 +1863,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9111#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9115#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1560,7 +1914,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9110#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9114#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1611,7 +1965,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9112#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9116#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1662,7 +2016,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9113#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10834#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1713,7 +2067,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9115#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1764,7 +2118,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9114#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10820#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1815,7 +2169,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9120#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10821#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1866,7 +2220,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9119#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10831#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1917,7 +2271,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9116#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10819#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1968,7 +2322,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9134#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2019,7 +2373,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10836#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2070,7 +2424,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9124#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10838#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2121,7 +2475,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9123#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10840#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2172,7 +2526,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9139#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10823#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2223,7 +2577,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9138#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10822#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2274,7 +2628,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9135#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10842#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2325,7 +2679,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10841#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2376,7 +2730,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9140#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10845#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2427,7 +2781,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9740#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10846#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2478,7 +2832,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9121#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9138#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2529,7 +2883,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9136#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9139#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 9da53b0..df9575a 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 b9d5852..a6e88b0 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,115 +61,59 @@ - - - + + + - - + + - + - - 0 - - - - - - - - - - - - - - + + - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + - - + + - - + + - + - - + + - + sfix16_En4 @@ -181,44 +125,44 @@ - - - + + + - - + + - - + + - - cf_iqKi + + 0 - - + + - - + + - - + + - - ufix16_En16 + + sfix32_En20 @@ -229,45 +173,45 @@ - - - + + + - + - + - + - + - + - + - + - + - + @@ -279,57 +223,57 @@ - + - + up - + - + u - + - + lo - + - + y - + - + - - + + - + sfix16_En4 @@ -341,147 +285,29 @@ - - - + + + - - + + - - - - - - err - - - - - - - - P - - - - - - - - I - - - - - - - - satMax - - - - - - - - satMin - - - - - - - - ext_limProt - - - - - - - - out - - - - + + - - PI(z) + + [Vq_minTrq] - - - - - - - - - - - - - - - - - PI_clamp_fixdt_iq - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -493,27 +319,27 @@ - + - + - - + + - - [n_limProt] + + [Vq_nLimProtMax] - + @@ -525,28 +351,28 @@ - - + + - + - - + + - - [Vq_min] + + [iq] - + @@ -558,28 +384,28 @@ - - + + - + - - + + - - [r_inpTgtSca] + + [iq_max] - + @@ -591,43 +417,59 @@ - - - + + + - - + + - + - - + + - - [r_inpTgtSca] + + + + + + + + + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -639,28 +481,28 @@ - - + + - + - - + + - - [iq] + + [r_inpTgtSca] - + @@ -672,44 +514,29 @@ - - - + + + - - + + - - + + - - [iq_min] + + [Vq_max] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -720,44 +547,44 @@ - - - + + + - - + + - + - - [iq_max] + + cf_iqKi - - + + - - + + - + - - sfix16_En4 + + ufix16_En16 @@ -768,76 +595,91 @@ - - - + + + - - + + - + - - [iq_min] + + -1 - - + + - - - - - - - - + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + - + - + - - [n_limProt] + + [iq_min] - + - + - - + + - + sfix16_En4 @@ -849,58 +691,43 @@ - - - + + + - - + + - - + + - - 7 + + [iq_max] - - - - - - - - - - - - - - - - - n_limProt + + - + - + - + sfix16_En4 @@ -912,58 +739,91 @@ - - - + + + - - + + - + - - 6 + + [iq] - - + + - - - + + + - + - - iq_min + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + - + - - + + - + sfix16_En4 @@ -975,44 +835,44 @@ - - - + + + - - + + - - + + - - case: { } + + [Vq_minTrq] - - + + - - - + + + - - + + - - Action Port + + sfix16_En4 @@ -1023,29 +883,44 @@ - - - + + + - - + + - - + + - + [Vq_max] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1056,58 +931,91 @@ - - - + + + - - + + - - + + - - 4 + + [Vq_nLimProtMax] - - + + - - - + + + - - + + - - iq + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + - + - - + + - + sfix16_En4 @@ -1119,43 +1027,43 @@ - - + + - + - + - - [Vq_min] + + [Vq_maxTrq] - + - + - - + + - + sfix16_En4 @@ -1167,43 +1075,106 @@ - - - + + + - - + + - - + + - - [Vq_max] + + cf_iqKp - - + + - + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + iq_min + + + + + + - - + + - + sfix16_En4 @@ -1216,57 +1187,57 @@ - + - + - + - + 5 - + - + - - + + - + iq_max - + - - + + - + sfix16_En4 @@ -1278,59 +1249,125 @@ - - - + + + - - + + - - + + - - + + [iq_min] + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + [Vq_maxTrq] + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + - - + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -1342,29 +1379,59 @@ - - - + + + - - + + - - + + - - [iq_max] + + 2 - - + + + + + + + + + + + + + + + + + Vq_max + + + + + + + + + + + + + + + sfix16_En4 @@ -1375,107 +1442,258 @@ - - - + + + - - + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + iq + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + - - + + + + + + err + + + + + + + + P + + + + + + + + I + + + + + + + + satMax + + + + + + + + satMin + + + + + + + + ext_limProt + + + + - - [iq] + + out + + + + + + + + PI(z) - - + + + + + + + + + + + + + + + + + PI_clamp_fixdt - + - - + + - + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + - - + + - - + + - - 2 + + case: { } - - + + - - - - - - - - - - Vq_max - - - - - - - + + - - + + - - sfix16_En4 + + Action Port @@ -1487,57 +1705,57 @@ - + - + - + - + 1 - + - + - - + + - + r_inpTgtSca - + - - + + - + sfix16_En4 @@ -1549,44 +1767,29 @@ - - - + + + - - + + - - + + - - cf_iqKp + + [Vq_min] - - - - - - - - - - - - - - - - - ufix16_En12 + + @@ -1598,57 +1801,57 @@ - + - + - + - + 3 - + - + - - + + - + Vq_min - + - - + + - + sfix16_En4 @@ -1660,171 +1863,58 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + 7 - - - - - + + + + - - - + + + + + + + + + + + Vq_nLimProtMax - + - - + + - + sfix16_En4 @@ -1834,308 +1924,370 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -2144,5 +2296,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.json index 04c2685..162c609 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,32 +59,63 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9726", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9170", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"constant1", - "label":"constant1", + "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":[ - "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", @@ -93,8 +124,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -103,7 +134,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Outport", "masktype":"" } }, @@ -147,11 +178,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "className":"Simulink.SubSystem", "icon":"WebViewIcon9", - "name":"PI_clamp_fixdt_id", - "label":"PI_clamp_fixdt_id", + "name":"PI_clamp_fixdt", + "label":"PI_clamp_fixdt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -240,11 +271,60 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9160", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9726", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"constant1", + "label":"constant1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9161", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -253,7 +333,7 @@ "IconDisplay" ], "values":[ - "id_max", + "id", "local", "Tag" ], @@ -273,11 +353,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9157", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9159", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto18", + "label":"Goto18", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -286,7 +366,40 @@ "IconDisplay" ], "values":[ - "id_Tgt", + "Vd_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9158", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto17", + "label":"Goto17", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vd_max", "local", "Tag" ], @@ -368,74 +481,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9170", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9162", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Vd", - "label":"Vd", + "name":"Goto29", + "label":"Goto29", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "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" + "id_min", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -443,7 +509,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Goto", "masktype":"" } }, @@ -479,61 +545,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9149", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9157", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"id_min", - "label":"id_min", + "name":"Goto", + "label":"Goto", "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" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "id_Tgt", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -541,16 +573,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9156", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9151", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -558,7 +590,7 @@ "IconDisplay" ], "values":[ - "id_min", + "id_Tgt", "Tag" ], "tabs":[ @@ -577,21 +609,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9161", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9156", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"From6", + "label":"From6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "id", - "local", + "id_min", "Tag" ], "tabs":[ @@ -605,7 +635,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -622,7 +652,7 @@ "PropagateVarSize" ], "values":[ - "reset", + "held", "Only when execution is resumed" ], "tabs":[ @@ -641,11 +671,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9148", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9149", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"id_max", - "label":"id_max", + "name":"id_min", + "label":"id_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -668,7 +698,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "6", "Port number", "[]", "[]", @@ -708,11 +738,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9147", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9148", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vd_min", - "label":"Vd_min", + "name":"id_max", + "label":"id_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -735,7 +765,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "5", "Port number", "[]", "[]", @@ -775,27 +805,43 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9158", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9724", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", + "name":"cf_idKi1", + "label":"cf_idKi1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "Vd_max", - "local", - "Tag" + "cf_idKi", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -803,26 +849,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9159", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9723", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto18", - "label":"Goto18", + "name":"From8", + "label":"From8", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "Vd_min", - "local", "Tag" ], "tabs":[ @@ -836,7 +880,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -908,44 +952,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9162", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto29", - "label":"Goto29", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9146", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9147", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vd_max", - "label":"Vd_max", + "name":"Vd_min", + "label":"Vd_min", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -968,7 +979,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "4", "Port number", "[]", "[]", @@ -1008,11 +1019,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9144", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9146", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"id_Tgt", - "label":"id_Tgt", + "name":"Vd_max", + "label":"Vd_max", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -1035,7 +1046,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "3", "Port number", "[]", "[]", @@ -1075,19 +1086,21 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9723", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9160", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"Goto19", + "label":"Goto19", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "Vd_min", + "id_max", + "local", "Tag" ], "tabs":[ @@ -1101,37 +1114,55 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9725", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9144", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"cf_idKp1", - "label":"cf_idKp1", + "name":"id_Tgt", + "label":"id_Tgt", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "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_idKp", - "on", - "inf", + "1", + "Port number", "[]", "[]", - "fixdt(0,16,12)", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", @@ -1140,8 +1171,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -1150,47 +1181,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9151", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_Tgt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9724", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9725", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"cf_idKi1", - "label":"cf_idKi1", + "name":"cf_idKp1", + "label":"cf_idKp1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -1204,12 +1204,12 @@ "FramePeriod" ], "values":[ - "cf_idKi", + "cf_idKp", "on", "inf", "[]", "[]", - "fixdt(0,16,16)", + "fixdt(0,16,12)", "off", "inf" ], @@ -1796,7 +1796,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9723#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9165#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1847,7 +1847,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9726#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9724#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1949,7 +1949,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9724#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9725#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2000,7 +2000,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9725#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9726#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2051,7 +2051,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9165#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2102,7 +2102,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9723#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 faf9002..7388470 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 757a489..1b39100 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 @@ - + - + @@ -14,50 +14,50 @@ - + - + - + - + - + - + - + - + - + - + @@ -65,7 +65,7 @@ - + sfix16_En4 @@ -77,44 +77,44 @@ - - - + + + - - + + - + - - 0 + + 1 - - + + - - - + + + - + - - sfix32_En20 + + Vd @@ -126,10 +126,10 @@ - + - + @@ -139,7 +139,7 @@ - + @@ -147,7 +147,7 @@ - + @@ -155,7 +155,7 @@ - + @@ -163,7 +163,7 @@ - + @@ -179,7 +179,7 @@ - + up @@ -187,7 +187,7 @@ - + u @@ -195,7 +195,7 @@ - + lo @@ -203,21 +203,21 @@ - + y - + - + @@ -225,7 +225,7 @@ - + sfix16_En4 @@ -237,11 +237,11 @@ - - + + - + @@ -251,7 +251,7 @@ - + err @@ -259,7 +259,7 @@ - + P @@ -267,7 +267,7 @@ - + I @@ -275,7 +275,7 @@ - + satMax @@ -283,7 +283,7 @@ - + satMin @@ -291,7 +291,7 @@ - + ext_limProt @@ -299,7 +299,7 @@ - + out @@ -307,59 +307,74 @@ - + PI(z) - + - - + + - + - - PI_clamp_fixdt_id + + PI_clamp_fixdt + + + + + + + + + + + + + + + sfix16_En4 - + - + - + - + - + - + @@ -367,17 +382,50 @@ + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + - - + + - - + + - - sfix16_En4 + + sfix32_En20 @@ -388,28 +436,28 @@ - - + + - + - - + + - - [id_max] + + [id] - + @@ -421,28 +469,61 @@ - - + + - + - - + + - - [id_Tgt] + + [Vd_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_max] - + @@ -455,42 +536,42 @@ - + - + - + - + [Vd_max] - + - + - + - + sfix16_En4 @@ -503,42 +584,42 @@ - + - + - - + + - + [id_max] - + - + - + - + sfix16_En4 @@ -550,44 +631,29 @@ - - - + + + - - + + - - + + - - 1 + + [id_min] - - - - - - - - - - - - - - - - - Vd + + @@ -599,42 +665,42 @@ - + - + - + - + [id] - + - + - + - + sfix16_En4 @@ -646,59 +712,29 @@ - - - + + + - - + + - - + + - - 6 + + [id_Tgt] - - - - - - - - - - - - - - - - - id_min - - - - - - - - - - - - - - - sfix16_En4 + + @@ -709,43 +745,43 @@ - - + + - + - - + + - - [id_min] + + [id_Tgt] - + - + - - + + - + sfix16_En4 @@ -757,29 +793,44 @@ - - - + + + - - + + - - + + - - [id] + + [id_min] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -791,42 +842,42 @@ - + - + - + - + if { } - + - + - + - + Action Port @@ -838,58 +889,58 @@ - - + + - + - + - - 5 + + 6 - + - - + + - - + + - - id_max + + id_min - + - - + + - + sfix16_En4 @@ -901,58 +952,58 @@ - - + + - + - + - - 4 + + 5 - + - - + + - - + + - - Vd_min + + id_max - + - - + + - + sfix16_En4 @@ -964,29 +1015,44 @@ - - - + + + - - + + - - + + - - [Vd_max] + + cf_idKi - - + + + + + + + + + + + + + + + + + ufix16_En16 @@ -997,29 +1063,44 @@ - - - + + + - - + + - - + + - + [Vd_min] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1031,57 +1112,57 @@ - + - + - + - + 2 - + - + - + - + id - + - + - + sfix16_En4 @@ -1093,91 +1174,58 @@ - - - - - - - - - - - - - - - - [id_min] - - - - - - - - - - - - - - - - - - - + + - + - + - - 3 + + 4 - + - - + + - - + + - - Vd_max + + Vd_min - + - - + + - + sfix16_En4 @@ -1189,58 +1237,58 @@ - - + + - + - + - - 1 + + 3 - + - - + + - - + + - - id_Tgt + + Vd_max - + - - + + - + sfix16_En4 @@ -1252,44 +1300,29 @@ - - - + + + - - + + - - + + - - [Vd_min] + + [id_max] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -1300,91 +1333,58 @@ - - - + + + - - + + - - + + - - cf_idKp + + 1 - - + + - - - - - - - - - - - ufix16_En12 + + + - - - - - - - - - - - - - - - - - - - + - - [id_Tgt] - - - - - - - + + id_Tgt - + - + - + sfix16_En4 @@ -1396,11 +1396,11 @@ - - + + - + @@ -1410,30 +1410,30 @@ - - cf_idKi + + cf_idKp - + - + - + - - ufix16_En16 + + ufix16_En12 @@ -1445,11 +1445,11 @@ - + - + @@ -1459,11 +1459,11 @@ - + - + @@ -1473,11 +1473,11 @@ - + - + @@ -1487,11 +1487,11 @@ - + - + @@ -1501,11 +1501,11 @@ - + - + @@ -1515,11 +1515,11 @@ - + - + @@ -1529,11 +1529,11 @@ - + - + @@ -1543,11 +1543,11 @@ - + - + @@ -1557,11 +1557,11 @@ - + - + @@ -1571,11 +1571,11 @@ - + - + @@ -1585,39 +1585,39 @@ - + - + - + - + - + - + - + - + @@ -1627,67 +1627,67 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1696,5 +1696,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9164_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9164_d.svg index d78612b..e8db0d5 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 @@ -1012,15 +1012,15 @@ - - - + + +
@@ -1176,5 +1176,5 @@
- + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.json index e10f6af..517d4ba 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 @@ -80,22 +80,20 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9185", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10740", + "className":"Simulink.Signum", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"SignDeltaU2", + "label":"SignDeltaU2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "ZeroCross", + "SampleTime" ], "values":[ - "Vq_min", - "local", - "Tag" + "on", + "-1" ], "tabs":[ "Parameter Attributes" @@ -108,57 +106,65 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Signum", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9189", - "className":"Simulink.SignalConversion", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9188", + "className":"Saturation Dynamic", "icon":"WebViewIcon3", - "name":"Signal Conversion2", - "label":"Signal Conversion2", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "ConversionOutput", + "OutMin", + "OutMax", "OutDataTypeStr", - "OverrideOpt" + "LockScale", + "RndMeth", + "DoSatur" ], "values":[ - "Signal copy", - "Inherit: auto", + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", "off" ], "tabs":[ - "Parameter Attributes" ], - "tabs_idx":0 + "tabs_idx":[ + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SignalConversion", - "masktype":"" + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9182", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10737", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "n_limProt", + "r_inpTgtScaAbs", + "local", "Tag" ], "tabs":[ @@ -172,58 +178,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9190", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9189", + "className":"Simulink.SignalConversion", "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", + "name":"Signal Conversion2", + "label":"Signal Conversion2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", + "ConversionOutput", "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "OverrideOpt" ], "values":[ - "rectangular", - "+++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "Signal copy", + "Inherit: auto", + "off" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 10 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -231,24 +211,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"SignalConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9181", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9185", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "Vq_min", + "local", "Tag" ], "tabs":[ @@ -262,24 +244,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9180", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9183", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "iq_limProt", + "Vq_max", + "local", "Tag" ], "tabs":[ @@ -293,66 +277,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9176", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10733", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"n_limProt", - "label":"n_limProt", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "GotoTag", + "IconDisplay" ], "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "r_inpTgtSca", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -360,26 +308,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9187", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10731", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto31", - "label":"Goto31", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "iq_limProt", - "local", + "r_nLimProtMax", "Tag" ], "tabs":[ @@ -393,16 +339,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9178", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9181", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From20", + "label":"From20", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ @@ -410,7 +356,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "Vq_min", "Tag" ], "tabs":[ @@ -429,21 +375,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9183", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9179", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"From16", + "label":"From16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "Vq_max", - "local", "Tag" ], "tabs":[ @@ -457,25 +401,27 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9177", - "className":"Simulink.ActionPort", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9186", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "reset", - "Only when execution is resumed" + "r_nLimProtMax", + "local", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -488,26 +434,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9186", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10725", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_limProt", - "local", + "r_iqLimProtMax", "Tag" ], "tabs":[ @@ -521,51 +465,261 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9175", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10732", + "className":"Simulink.MinMax", "icon":"WebViewIcon3", - "name":"iq_limProt", - "label":"iq_limProt", + "name":"MinMax", + "label":"MinMax", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "OutMax", + "OutMin", + "RndMeth", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "SaturateOnIntegerOverflow", + "ZeroCross" ], "values":[ - "4", - "Port number", + "Inherit: Inherit via internal rule", + "min", + "off", + "3", + "off", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", + "Floor", "-1", - "auto", "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:9175", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_iqLimProtMax", + "label":"r_iqLimProtMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:10741", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide1", + "label":"Divide1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9184", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "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:9173", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vq_max", + "label":"Vq_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", "on", "off", "off", @@ -620,7 +774,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "4", "Port number", "[]", "[]", @@ -660,11 +814,243 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9184", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9176", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_nLimProtMax", + "label":"r_nLimProtMax", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:10736", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtScaAbs", + "label":"r_inpTgtScaAbs", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:10738", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9172", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:9187", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"Goto31", + "label":"Goto31", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ @@ -673,7 +1059,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "r_iqLimProtMax", "local", "Tag" ], @@ -693,99 +1079,128 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9188", - "className":"Saturation Dynamic", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9177", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "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:9172#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "[]", - "[]", - "Inherit: Same as second input", + "", "off", - "Floor", - "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/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9173", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Vq_max", - "label":"Vq_max", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9181#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", + "", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", "off", - "", - "on", "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":{ @@ -793,97 +1208,101 @@ }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9179", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9179#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "Vq_max", - "Tag" + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":{ - "blocktype":"From", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9172", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9173#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", + "", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", "off", - "", - "on", "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":{ @@ -891,13 +1310,11 @@ }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9172#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9174#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -948,7 +1365,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9181#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9175#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -999,7 +1416,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9179#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9176#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1050,7 +1467,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9173#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9189#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1101,7 +1518,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9174#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9188#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1152,7 +1569,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9175#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10731#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1203,7 +1620,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9176#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10725#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1254,7 +1671,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9190#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10736#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1305,7 +1722,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9178#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10738#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1356,7 +1773,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9189#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10733#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1407,7 +1824,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9182#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10732#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1458,7 +1875,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9188#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10741#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -1509,7 +1926,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9180#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10740#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..d478748 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 829e49c..daf0357 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 @@ -1,10 +1,10 @@ - + - + @@ -14,10 +14,10 @@ - + - + @@ -27,29 +27,29 @@ - + 1 - + - + - + - + Vq_Vlt @@ -61,28 +61,220 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + - + - - + + - - [Vq_min] + + [r_inpTgtScaAbs] - + @@ -95,140 +287,140 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -243,22 +435,22 @@ - + - + - - + + - + sfix16_En4 @@ -270,44 +462,62 @@ - - - + + + - - + + - - + + - - [n_limProt] + + [Vq_min] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - sfix16_En4 + + [Vq_max] + + + + + + + @@ -318,83 +528,91 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + [r_inpTgtSca] - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + sfix16_En4 + + + + + + + + + + + + + + + + + + - - + + - - + + [r_nLimProtMax] - - + + - + - - + + - + sfix16_En4 @@ -407,42 +625,42 @@ - + - + - + - + [Vq_min] - + - + - - + + - + sfix16_En4 @@ -454,43 +672,43 @@ - - + + - + - + - - [iq_limProt] + + [Vq_max] - + - + - - + + - + sfix16_En4 @@ -502,58 +720,140 @@ - - - + + + - - + + - - + + - - 5 + + [r_nLimProtMax] - - + + - - - + + + + + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + - - + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - n_limProt + + + + + + + + + + + + + + + + + - + - - + + - + sfix16_En4 @@ -565,29 +865,59 @@ - - - + + + - - + + - - + + - - [iq_limProt] + + 5 - - + + + + + + + + + + + + + + + + + r_iqLimProtMax + + + + + + + + + + + + + + + sfix16_En4 @@ -598,43 +928,51 @@ - - - + + + - - + + - - + + - - [r_inpTgtSca] + + + + + + + + + + - - + + - + - - + + - + sfix16_En4 @@ -646,28 +984,28 @@ - - + + - + - - + + - - [Vq_max] + + [r_inpTgtSca] - + @@ -679,77 +1017,59 @@ - - - + + + - - + + - - + + - - case: { } + + 3 - - + + - - + + - - + + - - Action Port + + Vq_max - - - - - - - - - - - - - - - + + + + - - + + - - [n_limProt] - - - - - - - + + sfix16_En4 @@ -760,58 +1080,58 @@ - - + + - + - + - + 4 - + - - + + - - + + - - iq_limProt + + Vq_min - + - - + + - + sfix16_En4 @@ -823,58 +1143,58 @@ - - + + - + - + - - 3 + + 6 - + - - + + - - + + - - Vq_min + + r_nLimProtMax - + - - + + - + sfix16_En4 @@ -886,140 +1206,106 @@ - - - + + + - - + + - - + + - - [r_inpTgtSca] + + 2 - - + + - - - - - - - - - - - - - - - - - - - - - - + + + - - + + - - + + r_inpTgtScaAbs - - - - - - - + + + + + + - - + + - - + + sfix16_En4 - - + + + + + + + + + + + + - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - + + - - y + + [r_inpTgtScaAbs] - - + + - + - - + + - + sfix16_En4 @@ -1031,58 +1317,58 @@ - - + + - + - + - - 2 + + 1 - + - - + + - - + + - - Vq_max + + r_inpTgtSca - + - - + + - + sfix16_En4 @@ -1094,44 +1380,29 @@ - - - + + + - - + + - - + + - - [Vq_max] + + [r_iqLimProtMax] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -1142,59 +1413,44 @@ - - - + + + - - + + - - + + - - 1 + + case: { } - - + + - - - - - - - - - - r_inpTgtSca - - - - - - - + + - - + + - - sfix16_En4 + + Action Port @@ -1206,11 +1462,11 @@ - + - + @@ -1220,11 +1476,11 @@ - + - + @@ -1234,11 +1490,11 @@ - + - + @@ -1248,11 +1504,11 @@ - + - + @@ -1262,11 +1518,11 @@ - + - + @@ -1276,11 +1532,11 @@ - + - + @@ -1290,95 +1546,151 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + @@ -1387,5 +1699,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9188_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9188_d.svg index 860cb68..67518a3 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9188_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9188_d.svg @@ -63,7 +63,7 @@ - + @@ -1012,13 +1012,13 @@ - + - + - + @@ -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_9198_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.json index 94e4b9d..6babced 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 @@ -27,7 +27,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -532,144 +532,22 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9232", - "className":"Simulink.Mux", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9208", + "className":"Simulink.Demux", "icon":"WebViewIcon3", - "name":"Mux2", - "label":"Mux2", + "name":"Demux", + "label":"Demux", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "Inputs", - "DisplayOption" + "Outputs", + "DisplayOption", + "BusSelectionMode" ], "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:9216", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From39", - "label":"From39", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_phaA", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9217", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From40", - "label":"From40", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_phaB", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9218", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From41", - "label":"From41", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_phaC", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9211", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_pos", - "Tag" + "bar", + "off" ], "tabs":[ "Parameter Attributes" @@ -682,45 +560,55 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Demux", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9234", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9202", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", + "name":"V_phaABC_FOC", + "label":"V_phaABC_FOC", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "Criteria", - "InputSameDT", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "Threshold", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "u2 ~= 0", - "off", + "4", + "Port number", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: auto", "off", - "Zero", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", "off", "off", - "-1", - "0", - "on" + "off" ], "tabs":[ "Main", @@ -729,8 +617,8 @@ ], "tabs_idx":[ 0, - 1, - 9 + 2, + 11 ] }, "viewer":{ @@ -739,52 +627,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9236", - "className":"Simulink.LookupNDDirect", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9228", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"z_commutMap_M1", - "label":"z_commutMap_M1", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "NumberOfTableDimensions", - "InputsSelectThisObjectFromTable", - "TableIsInput", - "Table", - "DiagnosticForOutOfRangeInput", - "TableMin", - "TableMax", - "TableDataTypeStr", - "LockScale", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "2", - "Column", - "off", - "z_commutMap_M1", - "None", - "[]", - "[]", - "int16", - "off", - "-1" + "V_phaABC_FOC", + "local", + "Tag" ], "tabs":[ - "Main", - "Table Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 5, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -792,27 +660,27 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"LookupNDDirect", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9208", - "className":"Simulink.Demux", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9231", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Demux", - "label":"Demux", + "name":"Goto9", + "label":"Goto9", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "Outputs", - "DisplayOption", - "BusSelectionMode" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "3", - "bar", - "off" + "Vq", + "local", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -825,16 +693,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Demux", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9202", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9205", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"r_phaA", - "label":"r_phaA", + "name":"Vq", + "label":"Vq", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -857,7 +725,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "5", "Port number", "[]", "[]", @@ -897,21 +765,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9228", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9213", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"From2", + "label":"From2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "r_phaA", - "local", + "Vq", "Tag" ], "tabs":[ @@ -925,16 +791,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9203", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9199", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"r_phaB", - "label":"r_phaB", + "name":"b_enaAdvCtrl", + "label":"b_enaAdvCtrl", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -957,7 +823,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "1", "Port number", "[]", "[]", @@ -997,11 +863,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9229", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9223", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"Goto10", + "label":"Goto10", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1010,7 +876,7 @@ "IconDisplay" ], "values":[ - "r_phaB", + "b_enaAdvCtrl", "local", "Tag" ], @@ -1030,11 +896,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9204", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9455", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"r_phaC", - "label":"r_phaC", + "name":"VqFinPrev", + "label":"VqFinPrev", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1050,14 +916,20 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "6", + "4", "Port number", "[]", "[]", @@ -1069,10 +941,17 @@ "-1", "auto", "off", - "", - "on", "off", + "0", + "off", + "reset", "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -1092,65 +971,44 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9230", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_phaC", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9231", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9233", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"Relational Operator6", + "label":"Relational Operator6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" ], "values":[ - "Vq", - "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" @@ -1158,65 +1016,43 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9205", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9840", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Vq", - "label":"Vq", + "name":"Relational Operator2", + "label":"Relational Operator2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", + "Operator", + "InputSameDT", "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "RndMeth", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "ZeroCross" ], "values":[ - "7", - "Port number", - "[]", - "[]", - "Inherit: auto", + "==", "off", - "inherit", - "-1", - "Inherit", + "boolean", + "Simplest", "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "on" ], "tabs":[ "Main", - "Signal Attributes", + "Data Type", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 1, + 4 ] }, "viewer":{ @@ -1225,30 +1061,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9213", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9914", + "className":"Simulink.Merge", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"Merge", + "label":"Merge", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets", + "Inputs" ], "values":[ - "Vq", - "Tag" + "[]", + "off", + "[]", + "3" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 1 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1256,21 +1100,20 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Merge", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9209", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9235", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", + "name":"Switch2", + "label":"Switch2", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "Inputs", - "Multiplication", + "Criteria", "InputSameDT", "OutMin", "OutMax", @@ -1278,23 +1121,24 @@ "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" ], "values":[ - "**", - "Element-wise(.*)", + "u2 ~= 0", "off", "[]", "[]", - "Inherit: Same as first input", + "Inherit: Inherit via back propagation", "off", - "Simplest", + "Zero", "off", - "1", - "All dimensions", - "-1" + "off", + "-1", + "0", + "on" ], "tabs":[ "Main", @@ -1303,7 +1147,7 @@ ], "tabs_idx":[ 0, - 2, + 1, 9 ] }, @@ -1313,66 +1157,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Switch", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9199", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9924", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"b_enaFOC", - "label":"b_enaFOC", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "z_dir", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1380,16 +1190,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9223", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9227", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1398,7 +1208,7 @@ "IconDisplay" ], "values":[ - "b_enaFOC", + "z_ctrlTypSel", "local", "Tag" ], @@ -1418,74 +1228,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9455", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9452", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"VqFinPrev", - "label":"VqFinPrev", + "name":"Goto12", + "label":"Goto12", "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" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "VqFinPrev", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1493,49 +1256,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9449", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9451", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"UnitDelay4", - "label":"UnitDelay4", + "name":"Goto11", + "label":"Goto11", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" + "VqFin", + "local", + "Tag" ], "tabs":[ - "Main", - "State Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1543,55 +1289,43 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9235", - "className":"Simulink.Switch", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9835", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", + "name":"Relational Operator1", + "label":"Relational Operator1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "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":{ @@ -1600,26 +1334,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9225", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9917", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From4", + "label":"From4", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "r_inpTgtSca", - "local", "Tag" ], "tabs":[ @@ -1633,61 +1365,113 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9233", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator6", - "label":"Relational Operator6", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"SIN_Method", + "label":"SIN_Method", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" + "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", - "boolean", - "Simplest", + "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", - "on" + "", + "off", + "" ], "tabs":[ "Main", - "Data Type", "-Other" ], "tabs_idx":[ 0, - 1, - 4 + 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9454", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9929", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From16", + "label":"From16", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1695,7 +1479,7 @@ "IconDisplay" ], "values":[ - "VqFinPrev", + "r_fieldWeak", "Tag" ], "tabs":[ @@ -1714,21 +1498,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9452", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9908", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", + "name":"From15", + "label":"From15", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "VqFinPrev", - "local", + "V_phaABC_FOC", "Tag" ], "tabs":[ @@ -1742,16 +1524,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9215", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9916", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From1", + "label":"From1", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1759,7 +1541,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "VqFin", "Tag" ], "tabs":[ @@ -1778,11 +1560,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9214", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9927", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From25", - "label":"From25", + "name":"From7", + "label":"From7", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1790,7 +1572,7 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "a_elecAngle", "Tag" ], "tabs":[ @@ -1809,11 +1591,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9453", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9454", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From5", + "label":"From5", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -1821,7 +1603,7 @@ "IconDisplay" ], "values":[ - "VqFin", + "VqFinPrev", "Tag" ], "tabs":[ @@ -1840,81 +1622,281 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9210", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9842", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"FOC_Method", + "label":"FOC_Method", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "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":[ - "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:9206", - "className":"Simulink.Inport", + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9833", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", + "name":"If", + "label":"If", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9831", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8216", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion6", + "label":"Data Type Conversion6", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "Port", - "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "8", - "Port number", "[]", "[]", - "Inherit: auto", + "int16", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "Real World Value (RWV)", + "Floor", "off", - "", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9214", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From25", + "label":"From25", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlTypSel", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9838", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM3", + "label":"CTRL_COMM3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "CTRL_SIN", "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", "off", - "off", - "off" + "inf" ], "tabs":[ "Main", @@ -1923,8 +1905,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -1933,79 +1915,1668 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9839", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlTypSel", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9227", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9915", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_pos", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9925", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto8", + "label":"Goto8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9904", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"COM_Method", + "label":"COM_Method", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9920", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9832", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From12", + "label":"From12", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlTypSel", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9922", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_dir", + "label":"z_dir", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "8", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9834", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM2", + "label":"CTRL_COMM2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "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/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9449", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay4", + "label":"UnitDelay4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9921", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"a_elecAngle", + "label":"a_elecAngle", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:9928", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From14", + "label":"From14", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9215", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9207", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM1", + "label":"CTRL_COMM1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "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/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9206", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:9923", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_fieldWeak", + "label":"r_fieldWeak", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "9", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9201", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlTypSel", + "label":"z_ctrlTypSel", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:9926", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9225", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9919", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"Logical Operator2", + "label":"Logical Operator2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "AND", + "2", + "rectangular", + "off", + "boolean", + "-1" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 5 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Logic", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9836", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"Logical Operator1", + "label":"Logical Operator1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "AND", + "2", + "rectangular", + "off", + "boolean", + "-1" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 5 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Logic", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9208#out:3", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9208#out:2", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9208#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9200#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9212#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9220#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9219#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9202#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9205#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9199#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9214#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9207#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "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:9233#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "z_ctrlTypSel", - "local", - "Tag" + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9207", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM1", - "label":"CTRL_COMM1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9206#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "CTRL_FOC", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", + "", "off", - "inf" + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" ], "tabs_idx":[ 0, 3, + 5, 7 ] }, @@ -2014,66 +3585,50 @@ }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9201", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_ctrlTypSel", - "label":"z_ctrlTypSel", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9201#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", + "", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", "off", - "", - "on", "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":{ @@ -2081,46 +3636,62 @@ }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9451", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9235#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" ], "values":[ - "VqFin", - "local", - "Tag" + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9208#out:3", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9449#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2171,7 +3742,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9208#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9454#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2222,7 +3793,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9208#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9213#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2273,7 +3844,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9200#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9215#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2324,7 +3895,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9212#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8216#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2375,7 +3946,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9220#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9834#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2426,7 +3997,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9219#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9832#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2477,7 +4048,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9211#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9835#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2528,7 +4099,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9234#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9831#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2579,7 +4150,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9202#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9839#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2630,7 +4201,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9203#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9838#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2681,7 +4252,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9204#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9908#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2732,7 +4303,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9205#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9833#out:3", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2783,7 +4354,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9216#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9904#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2834,7 +4405,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9217#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9914#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2885,7 +4456,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9218#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9915#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2936,7 +4507,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9236#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9916#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -2987,7 +4558,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9209#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9917#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3038,7 +4609,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9199#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9836#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3089,7 +4660,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9232#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9833#out:2", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3140,7 +4711,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9210#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9741#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3191,7 +4762,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9214#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9842#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3242,7 +4813,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9207#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9833#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3293,7 +4864,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9233#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9840#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3344,7 +4915,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9206#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9919#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3395,7 +4966,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9201#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9920#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3446,7 +5017,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9235#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9921#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3497,7 +5068,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9449#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9922#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3548,7 +5119,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9453#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9923#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3599,7 +5170,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9454#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9927#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3650,7 +5221,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9213#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9928#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", @@ -3701,7 +5272,7 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9215#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9929#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 7a55d5c..f8e1bff 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 413cbd6..37c96d6 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 @@ -1,10 +1,10 @@ - + - + @@ -14,10 +14,10 @@ - + - + @@ -27,44 +27,44 @@ - - 2 + + 3 - + - + - + - + z_pos - + - + - + int8 @@ -77,10 +77,10 @@ - + - + @@ -90,29 +90,29 @@ - + 3 - + - + - + - + DC_phaC @@ -125,10 +125,10 @@ - + - + @@ -138,14 +138,14 @@ - + [z_pos] - + @@ -158,10 +158,10 @@ - + - + @@ -171,29 +171,29 @@ - + 2 - + - + - + - + DC_phaB @@ -206,10 +206,10 @@ - + - + @@ -219,29 +219,29 @@ - + 1 - + - + - + - + DC_phaA @@ -254,10 +254,10 @@ - + - + @@ -267,14 +267,14 @@ - + [DC_phaA] - + @@ -287,10 +287,10 @@ - + - + @@ -300,14 +300,14 @@ - + [DC_phaB] - + @@ -320,10 +320,10 @@ - + - + @@ -333,14 +333,14 @@ - + [DC_phaC] - + @@ -353,10 +353,10 @@ - + - + @@ -366,29 +366,29 @@ - + [DC_phaA] - + - + - + - + int16 @@ -401,10 +401,10 @@ - + - + @@ -414,29 +414,29 @@ - + [DC_phaB] - + - + - + - + int16 @@ -449,10 +449,10 @@ - + - + @@ -462,29 +462,29 @@ - + [DC_phaC] - + - + - + - + int16 @@ -496,43 +496,73 @@ - - - + + + - - + + - + - + - - + + - + - + + + + + int16 + + + + + + + + + + + + + + + int16 + + + + + + + + + + + - + int16 @@ -544,44 +574,59 @@ - - - + + + - - + + - - + + - - [r_phaA] + + 4 - - + + + + + + + + + + + + + + + + + V_phaABC_FOC - - + + - - + + - - int16 + + sfix16_En4 @@ -592,44 +637,62 @@ - - - + + + - - + + - - + + - - [r_phaB] + + [V_phaABC_FOC] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - int16 + + [Vq] + + + + + + + @@ -640,44 +703,59 @@ - - - + + + - - + + - - + + - - [r_phaC] + + 5 - - + + + + + + + + + + + + + + + + + Vq - - + + - - + + - - int16 + + sfix16_En4 @@ -688,44 +766,44 @@ - - - + + + - - + + - - + + - - [z_pos] + + [Vq] - - + + - - + + - - + + - - int8 + + sfix16_En4 @@ -736,188 +814,92 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + 1 - - - - - - - + + + + + + - - - - - - - + + + + + + - + - - + + b_enaAdvCtrl - - - - - - - + + + + + + - - + + - - + + boolean + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - + - - F + + [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - int16 + + @@ -928,203 +910,1214 @@ - - - + + + - - + + - - + + - - + + 4 + + + + + + + + + + + + + + + + + + + + + + VqFinPrev + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFin] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + a_elecAngle + + + + + + + + z_dir + + + + + + + + r_fieldWeak + + + + + + + + V_phaABC_SIN + + + + + + + + elseif { } + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + SIN_Method + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + - - + + [V_phaABC_FOC] + + + + + + + + + + + + + + - - + + - - + + sfix16_En4 + + + + + + + + + + + + + + + + + + - - + + - - + + [VqFin] + + + + + + + + + + + + + + - - + + - - + + sfix16_En4 + + + + + + + + + + + + + + + + + + - - + + - - + + [a_elecAngle] - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + sfix16_En6 + + + + + + + + + + + + + + + + + + - - + + - - + + [VqFinPrev] - - - - - - - + + + + + + - - - - - - - + + + + + + - - + + - - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + V_phaABC_FOC_in - - + + - - + + V_phaABC_FOC - - + + - - + + if { } + + + + - - - + + + + - - + + + + + + - - - + + + + - - + + - - + + - - 2-D T[k] - - - - - - - + + FOC_Method - - - + + + + + + + + + - - + + - - z_commutMap_M1 + + sfix16_En4 - - + + + + + + + + - - + + - - int16 + + action @@ -1135,74 +2128,112 @@ - - - + + + + + + + + + - - + + - - + + + + + + u1 + + + + + + + + u2 + + + + - - + + if(u1 ~= 0) + + + + + + + + elseif(u2 ~= 0) + + + + + + + + else - - + + - - + + - - + + - - int16 + + action - - + + - - + + - - int16 + + action - - + + - - + + - - int16 + + action @@ -1213,59 +2244,44 @@ - - - + + + - - + + - - + + - - 4 + + [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - r_phaA + + - - + + - - + + - - int16 + + boolean @@ -1276,29 +2292,60 @@ - - - + + + - - + + - + - - + + + + + + + + + + - - [r_phaA] + + + + + + + + + + - - + + + + + + + + + + + + + + + + + int16 @@ -1309,59 +2356,44 @@ - - - + + + - - + + - - + + - - 5 + + [z_ctrlTypSel] - - - - - - - - - - - - - - - - - r_phaB + + - + - - + + - - int16 + + uint8 @@ -1372,29 +2404,44 @@ - - - + + + - - + + - - + + - - [r_phaB] + + CTRL_SIN - - + + + + + + + + + + + + + + + + + uint8 @@ -1405,59 +2452,44 @@ - - - + + + - - + + - - + + - - 6 + + [z_ctrlTypSel] - - - - - - - - - - - - - - - - - r_phaC + + - + - - + + - - int16 + + uint8 @@ -1468,29 +2500,44 @@ - - - + + + - - + + - - + + - - [r_phaC] + + [z_pos] - - + + + + + + + + + + + + + + + + + int8 @@ -1501,28 +2548,28 @@ - - + + - + - + - - [Vq] + + [r_fieldWeak] - + @@ -1534,59 +2581,128 @@ - - - + + + - - + + + + + + + + - - + + - - 7 + + VqFin + + + + + + + + z_pos + + + + + + + + V_phaABC_COM + + + + + + + + else { } - - + + + + + + + + - - + + + + + + + + - - + + - - Vq + + COM_Method - - + + + + + + + + - - + + - - int16 + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action @@ -1597,44 +2713,50 @@ - - - + + + + + + + + + - - + + - - + + - - [Vq] + + [b_enaAdvCtrl] - - + + - - + + - - + + - - int16 + + boolean @@ -1645,52 +2767,44 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + [z_ctrlTypSel] - - + + - + - - + + - - int16 + + uint8 @@ -1701,92 +2815,59 @@ - - + + - + - + - - 1 + + 8 - + - - + + - - + + - - b_enaFOC + + z_dir - - - - - - - - - - boolean + + - - - - - - - - - - - - - - - - - - - - + + - - [b_enaFOC] - - - - - - - + + int8 @@ -1797,44 +2878,44 @@ - - - + + + - - + + - - + + - - 4 + + CTRL_FOC - - + + - - - + + + - - + + - - VqFinPrev + + uint8 @@ -1846,44 +2927,44 @@ - - + + - + - + - + - + - + - + - + - + - + @@ -1898,37 +2979,37 @@ - + - - + + - - + + - - int16 + + sfix16_En4 - + - - + + - + Ini=0 @@ -1940,221 +3021,59 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - + + - - F + + 7 - - + + - - - + + + - - + + - - int16 + + a_elecAngle - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] + + + - - - - - - + + + + + + + sfix16_En6 @@ -2165,68 +3084,92 @@ - - - + + + - - + + - + - - + + - - + + [z_dir] - - - - - - - + + + + + + + + + + + + + - - + + - - + + int8 - - + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + - - + + - - + + - - + + - - boolean + + sfix16_En4 @@ -2237,44 +3180,44 @@ - - - + + + - - + + - - + + - - [VqFinPrev] + + CTRL_FOC - - + + - + - - + + - - int16 + + uint8 @@ -2285,29 +3228,59 @@ - - - + + + - - + + - - + + - - [VqFinPrev] + + 6 - - + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + + + + + + + + sfix16_En4 @@ -2318,44 +3291,59 @@ - - - + + + - - + + - - + + - - [r_inpTgtSca] + + 9 - - + + + + + + + + + + + + + + + + + r_fieldWeak - - + + - - + + - - int16 + + sfix16_En4 @@ -2366,43 +3354,58 @@ - - - + + + - - + + - - + + - - [z_ctrlTypSel] + + 2 - - + + + + + + + + + + + + + + + + + z_ctrlTypSel - + - - + + - + uint8 @@ -2414,44 +3417,62 @@ - - - + + + - - + + - - + + - - [VqFin] + + [a_elecAngle] - - + + - - - - + + + + + + + + + + + + + + + - - + + - - int16 + + [r_inpTgtSca] + + + + + + + @@ -2462,754 +3483,818 @@ - - - + + + - - + + - + - - + + + + + + + + + + - - [b_enaFOC] + + - - - - + - + - - + + - + boolean + + + + + + + + + + + - - - + + + - - + + - + - - + + - - 8 + + + + + + + + + + - - - - + - - - + + + - - + + - - r_inpTgtSca + + boolean - - - - - - - - - - - int16 + + + + + + + + + + + + + + + + + + + + + - + - - - + + + - - + + - - - - - - - - [z_ctrlTypSel] - - + + + + + + + + + - - - - - - + + - + - - - + + + - - + + - - - - - - - - CTRL_FOC - - + + + + + + + + + - - - - - - + + - - - - - - - - - - - uint8 - - + + + + + + + + + + + + - + - - - + + + - - + + - - - - - - - - 3 - - + + + + + + + + + - - - - - - + + - - - - - - - - - - - z_ctrlTypSel - - + + + + + + + + + - - - - - - - - - - - - uint8 - - + + - + - - - + + + - - + + - - - - - - - - [VqFin] - - + + + + + + + + + - - - - - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + - + - + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + - + + + + + - + - + + + + + - + - + - - + + + + + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -3218,5 +4303,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9292_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9292_d.svg index 6dbd90b..5f186b7 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 d06e523..7d3047f 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.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.png deleted file mode 100644 index b110242..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.png and /dev/null differ 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 deleted file mode 100644 index 77624a4..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.png and /dev/null differ 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 deleted file mode 100644 index 0d30a55..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9728_d.png and /dev/null differ 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 deleted file mode 100644 index 92c294c..0000000 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9729_d.png and /dev/null differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.json new file mode 100644 index 0000000..c3608b3 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.json @@ -0,0 +1,2173 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9786", + "className":"Simulink.Annotation", + "icon":"WebViewIcon2", + "name":"

Sinusoidal With 3rd Harmonic

", + "label":"

Sinusoidal With 3rd Harmonic

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

Sinusoidal With 3rd Harmonic

", + "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:9783", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"V_phaABC_SIN", + "label":"V_phaABC_SIN", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9780", + "className":"Simulink.Interpolation_nD", + "icon":"WebViewIcon3", + "name":"r_sin3PhaA_M1", + "label":"r_sin3PhaA_M1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "NumberOfTableDimensions", + "RequireIndexFractionAsBus", + "TableSpecification", + "TableSource", + "Table", + "InterpMethod", + "DiagnosticForOutOfRangeInput", + "ValidIndexMayReachLast", + "NumSelectionDims", + "RemoveProtectionIndex", + "TableDataTypeStr", + "TableMin", + "TableMax", + "OutDataTypeStr", + "OutMin", + "OutMax", + "InternalRulePriority", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ExtrapMethod", + "IntermediateResultsDataTypeStr", + "LookupTableObject", + "SampleTime" + ], + "values":[ + "1", + "off", + "Explicit values", + "Dialog", + "r_sin3PhaA_M1", + "Flat", + "None", + "on", + "0", + "on", + "Inherit: Same as output", + "[]", + "[]", + "fixdt(1,16,14)", + "[]", + "[]", + "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:9781", + "className":"Simulink.Interpolation_nD", + "icon":"WebViewIcon3", + "name":"r_sin3PhaB_M1", + "label":"r_sin3PhaB_M1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "NumberOfTableDimensions", + "RequireIndexFractionAsBus", + "TableSpecification", + "TableSource", + "Table", + "InterpMethod", + "DiagnosticForOutOfRangeInput", + "ValidIndexMayReachLast", + "NumSelectionDims", + "RemoveProtectionIndex", + "TableDataTypeStr", + "TableMin", + "TableMax", + "OutDataTypeStr", + "OutMin", + "OutMax", + "InternalRulePriority", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ExtrapMethod", + "IntermediateResultsDataTypeStr", + "LookupTableObject", + "SampleTime" + ], + "values":[ + "1", + "off", + "Explicit values", + "Dialog", + "r_sin3PhaB_M1", + "Flat", + "None", + "on", + "0", + "on", + "Inherit: Same as output", + "[]", + "[]", + "fixdt(1,16,14)", + "[]", + "[]", + "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:9782", + "className":"Simulink.Interpolation_nD", + "icon":"WebViewIcon3", + "name":"r_sin3PhaC_M1", + "label":"r_sin3PhaC_M1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "NumberOfTableDimensions", + "RequireIndexFractionAsBus", + "TableSpecification", + "TableSource", + "Table", + "InterpMethod", + "DiagnosticForOutOfRangeInput", + "ValidIndexMayReachLast", + "NumSelectionDims", + "RemoveProtectionIndex", + "TableDataTypeStr", + "TableMin", + "TableMax", + "OutDataTypeStr", + "OutMin", + "OutMax", + "InternalRulePriority", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ExtrapMethod", + "IntermediateResultsDataTypeStr", + "LookupTableObject", + "SampleTime" + ], + "values":[ + "1", + "off", + "Explicit values", + "Dialog", + "r_sin3PhaC_M1", + "Flat", + "None", + "on", + "0", + "on", + "Inherit: Same as output", + "[]", + "[]", + "fixdt(1,16,14)", + "[]", + "[]", + "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:9779", + "className":"Simulink.PreLookup", + "icon":"WebViewIcon3", + "name":"a_elecAngle_XA", + "label":"a_elecAngle_XA", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "BreakpointsSpecification", + "BreakpointsDataSource", + "BreakpointsData", + "OutputSelection", + "IndexSearchMethod", + "ExtrapMethod", + "DiagnosticForOutOfRangeInput", + "RemoveProtectionInput", + "BreakpointDataTypeStr", + "BreakpointMin", + "BreakpointMax", + "IndexDataTypeStr", + "LockScale", + "BeginIndexSearchUsingPreviousIndexResult", + "BreakpointObject", + "BreakpointsFirstPoint", + "BreakpointsNumPoints", + "BreakpointsSpacing", + "FractionDataTypeStr", + "OutputBusDataTypeStr", + "RndMeth", + "SampleTime", + "UseLastBreakpoint" + ], + "values":[ + "Explicit values", + "Dialog", + "a_elecAngle_XA", + "Index only", + "Evenly spaced points", + "Clip", + "None", + "off", + "Inherit: Same as input", + "[]", + "[]", + "uint8", + "off", + "on", + "", + "10", + "11", + "10", + "Inherit: Inherit via internal rule", + "Inherit: auto", + "Simplest", + "-1", + "off" + ], + "tabs":[ + "Main", + "Data Types", + "-Other" + ], + "tabs_idx":[ + 0, + 8, + 13 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"PreLookup", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9742", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9743", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Final_Phase_Advance_Calculation", + "label":"Final_Phase_Advance_Calculation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9802", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto8", + "label":"Goto8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9800", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9799", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9810", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "V_phaABC_SIN", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9805", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9803", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:10677", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant", + "label":"Constant", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9819", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux2", + "label":"Mux2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "3", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9806", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9820", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "V_phaABC_SIN", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9798", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_fieldWeak", + "label":"r_fieldWeak", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9795", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"a_elecAngle", + "label":"a_elecAngle", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9818", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9801", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9796", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9797", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_dir", + "label":"z_dir", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9816", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9779#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:10677#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9743#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9795#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9798#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9797#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9796#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9803#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9805#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9806#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9810#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9818#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9780#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9781#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9782#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9819#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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:9816#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "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_9741_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.png new file mode 100644 index 0000000..f03c19a Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.svg new file mode 100644 index 0000000..edff98c --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.svg @@ -0,0 +1,2917 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Sinusoidal With 3rd Harmonic + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + V_phaABC_SIN + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1-D T(k,f) + + + + + + + + k1 + + + + + + + + f1 + + + + + + + + + + + + + + + + + + + + + + r_sin3PhaA_M1 + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1-D T(k,f) + + + + + + + + k1 + + + + + + + + f1 + + + + + + + + + + + + + + + + + + + + + + r_sin3PhaB_M1 + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1-D T(k,f) + + + + + + + + k1 + + + + + + + + f1 + + + + + + + + + + + + + + + + + + + + + + r_sin3PhaC_M1 + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + a_elecAngle_XA + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + elseif { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + a_elecAngle + + + + + + + + z_dir + + + + + + + + r_fieldWeak + + + + + + + + a_elecAngleAdv + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Final_Phase_Advance_Calculation + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [V_phaABC_SIN] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [V_phaABC_SIN] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + r_fieldWeak + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + a_elecAngle + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + z_dir + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.json new file mode 100644 index 0000000..4c0c8ed --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.json @@ -0,0 +1,2048 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9778", + "className":"Simulink.Annotation", + "icon":"WebViewIcon2", + "name":"

Phase Advance / Field Weakening

", + "label":"

Phase Advance / Field Weakening

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

Phase Advance / Field Weakening

", + "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:9745", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_dir", + "label":"z_dir", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9757", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9776", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"a_elecAngleAdv", + "label":"a_elecAngleAdv", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9749", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "a_elecAngleAdv", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9768", + "className":"Simulink.Scope", + "icon":"WebViewIcon3", + "name":"Scope", + "label":"Scope", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":[ + ], + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Scope", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9765", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux", + "label":"Mux", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "2", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9752", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9753", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "a_elecAngleAdv", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9770", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch_PhaAdv", + "label":"Switch_PhaAdv", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9751", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From12", + "label":"From12", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9762", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto9", + "label":"Goto9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "a_elecAngleAdv", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9772", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"a_elecPeriod2", + "label":"a_elecPeriod2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "a_elecPeriod", + "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:9769", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9755", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9766", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Product2", + "label":"Product2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "2", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9756", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From9", + "label":"From9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9760", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9791", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"b_fieldWeakEna", + "label":"b_fieldWeakEna", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "b_fieldWeakEna", + "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:10035", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"Modulo_fixdt", + "label":"Modulo_fixdt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10175", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9794", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9758", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9746", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_fieldWeak", + "label":"r_fieldWeak", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9747", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"a_elecAngle", + "label":"a_elecAngle", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9756#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9745#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9765#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9749#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9746#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9747#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9769#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9772#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:10035#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9766#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9755#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9752#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9751#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9770#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9753#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9791#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:9794#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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:10175#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "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_9743_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.png new file mode 100644 index 0000000..7a4691e Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.svg new file mode 100644 index 0000000..d72bb4b --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.svg @@ -0,0 +1,1693 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Phase Advance / Field Weakening + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_dir + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + a_elecAngleAdv + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngleAdv] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngleAdv] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngleAdv] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + a_elecPeriod + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_fieldWeakEna + + + + + + + + + + + + + + + + + + + + + + b_fieldWeakEna + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + num + + + + + + + + div + + + + + + + + rem + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + r_fieldWeak + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + a_elecAngle + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.json new file mode 100644 index 0000000..14bc7bb --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.json @@ -0,0 +1,231 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9902", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"V_phaABC_FOC", + "label":"V_phaABC_FOC", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9842", + "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:9847", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9842", + "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:9843", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"V_phaABC_FOC_in", + "label":"V_phaABC_FOC_in", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9842", + "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:9843#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9842", + "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_9842_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.png new file mode 100644 index 0000000..fca5f90 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.svg new file mode 100644 index 0000000..5ef9e40 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.svg @@ -0,0 +1,175 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + V_phaABC_FOC + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + V_phaABC_FOC_in + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 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_9904_d.json similarity index 69% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.json index 089e87f..70b40f1 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_9904_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8996", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9907", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"n_limProt", - "label":"n_limProt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "name":"V_phaABC_COM", + "label":"V_phaABC_COM", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "inspector":{ "params":[ "Port", @@ -46,9 +46,9 @@ "auto", "off", "off", - "0", + "[]", "off", - "reset", + "held", "off", "0", "", @@ -80,43 +80,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8995", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9906", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"cf_nKpLimProt", - "label":"cf_nKpLimProt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "cf_nKpLimProt", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,8)", - "off", - "inf" + "held", + "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" @@ -124,58 +106,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"ActionPort", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8994", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9911", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "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", - "off", - "1", - "All dimensions", - "-1" + "z_pos", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 10 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -183,56 +139,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8992", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9211", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "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", - "on", - "1", - "All dimensions", - "-1" + "z_pos", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -240,25 +170,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8991", - "className":"Simulink.ActionPort", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9913", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "GotoTag", + "IconDisplay" ], "values":[ - "reset", - "Only when execution is resumed" + "V_phaABC_COM", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -271,66 +201,32 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8990", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9912", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"n_min", - "label":"n_min", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "name":"Goto8", + "label":"Goto8", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "VqFin", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -338,56 +234,138 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9453", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", + "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:9823", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "V_phaABC_COM", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993", - "className":"Saturation Dynamic", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9209", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "inspector":{ "params":[ + "Inputs", + "Multiplication", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", - "DoSatur" + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ + "**", + "Element-wise(.*)", + "off", "[]", "[]", - "Inherit: Same as second input", + "Inherit: Same as first input", "off", - "Floor", - "off" + "Simplest", + "off", + "1", + "All dimensions", + "-1" ], "tabs":[ + "Main", + "Signal Attributes", + "-Other" ], "tabs_idx":[ + 0, + 2, + 9 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "blocktype":"Product", + "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8989", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9910", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"n_max", - "label":"n_max", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "name":"z_pos", + "label":"z_pos", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "inspector":{ "params":[ "Port", @@ -449,12 +427,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8988", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9909", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "name":"VqFin", + "label":"VqFin", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "inspector":{ "params":[ "Port", @@ -516,12 +494,65 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9236", + "className":"Simulink.LookupNDDirect", + "icon":"WebViewIcon3", + "name":"z_commutMap_M1", + "label":"z_commutMap_M1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", + "inspector":{ + "params":[ + "NumberOfTableDimensions", + "InputsSelectThisObjectFromTable", + "TableIsInput", + "Table", + "DiagnosticForOutOfRangeInput", + "TableMin", + "TableMax", + "TableDataTypeStr", + "LockScale", + "SampleTime" + ], + "values":[ + "2", + "Column", + "off", + "z_commutMap_M1", + "None", + "[]", + "[]", + "int8", + "off", + "-1" + ], + "tabs":[ + "Main", + "Table Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 5, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"LookupNDDirect", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9209#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "inspector":{ "params":[ "SignalNameFromLabel", @@ -567,12 +598,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8990#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9211#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "inspector":{ "params":[ "SignalNameFromLabel", @@ -618,12 +649,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8994#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9236#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "inspector":{ "params":[ "SignalNameFromLabel", @@ -669,12 +700,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8989#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9453#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "inspector":{ "params":[ "SignalNameFromLabel", @@ -720,12 +751,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8995#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9909#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "inspector":{ "params":[ "SignalNameFromLabel", @@ -771,12 +802,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8988#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9910#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "inspector":{ "params":[ "SignalNameFromLabel", @@ -822,12 +853,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8992#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9913#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9904", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.png new file mode 100644 index 0000000..8cf73e6 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.svg similarity index 53% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.svg index 9221e8c..9adb3b2 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_9904_d.svg @@ -1,23 +1,23 @@ - + - + - + - - + + - + @@ -27,30 +27,30 @@ - + 1 - + - - + + - + - - n_limProt + + V_phaABC_COM @@ -61,59 +61,62 @@ - - - + + + - - + + - + - - cf_nKpLimProt + + else { } - - + + - - - - + + + + + + + + + + + + + + + - - + + - - cf_nKpLimProt + + [z_pos] - - - - - - - - - - - ufix16_En8 + + + @@ -124,60 +127,44 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - + - - + + [z_pos] - - + + - - + + - - + + - - sfix16_En4 + + int8 @@ -188,51 +175,43 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + [V_phaABC_COM] - - + + - + - - + + - + sfix16_En4 @@ -244,44 +223,29 @@ - - - + + + - - + + - - + + - - if { } + + [VqFin] - - - - - - - - - - - - - - - - - Action Port + + @@ -292,58 +256,43 @@ - - - + + + - - + + - - + + - - 3 + + [VqFin] - - - - - - - - - - - - - - - - - n_min + + - + - - + + - + sfix16_En4 @@ -355,107 +304,84 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - + + [V_phaABC_COM] - + + + + + + + + + + + + + + + + + + - - - - - - up - - - - - - - - u - - - - + + - - lo + + - - + + - - y + + - - + + - + - - + + - + sfix16_En4 @@ -467,59 +393,59 @@ - - + + - + - + - + 2 - + - - + + - - + + - - n_max + + z_pos - - + + - - + + - - sfix16_En4 + + int8 @@ -530,58 +456,58 @@ - - + + - + - + - + 1 - + - - + + - - + + - - n_mot + + VqFin - + - - + + - + sfix16_En4 @@ -591,118 +517,305 @@ - + - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2-D T[k] + + + + + + + + + + + + + + + + + + + + + + z_commutMap_M1 + + + + + + + + + + + + + + + int8 + + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - + - + + + + + - + - + - - - - + - + - + @@ -711,5 +824,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_9937_d.json similarity index 65% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.json index eb9ab2d..ebac8db 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_9937_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9373", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9952", "className":"Simulink.Annotation", "icon":"WebViewIcon2", - "name":"

Input Scaling [-1000,1000] → [min,max]

", - "label":"

Input Scaling [-1000,1000] → [min,max]

", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"

In case of OPEN_MODE request the input target command will be reduced to 0 with a predefined rate.

", + "label":"

In case of OPEN_MODE request the input target command will be reduced to 0 with a predefined rate.

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

Input Scaling [-1000,1000] → [min,max]

", + "\n\n

In case of OPEN_MODE request the input target command will be reduced to 0 with a predefined rate.

", "off", "rich", "auto", @@ -49,116 +49,139 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9372", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9950", + "className":"Rising edge init", + "icon":"WebViewIcon4", + "name":"rising_edge_init", + "label":"rising_edge_init", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "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":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", + "FromPortIcon", + "ReadWrite", + "", + "All", + "on", + "on", + "", + "", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "", + "void_void", "off", "off", - "0", "off", - "reset", + "", + "off", + "", + "off", "off", - "0", "", - [ - ], - "Dialog", "Auto", - "off" + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" ], "tabs":[ "Main", - "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", - "masktype":"" + "blocktype":"SubSystem", + "masktype":"Rising edge init" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9370", - "className":"Simulink.If", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9949", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"dV_openRate", + "label":"dV_openRate", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", + "Value", + "VectorParams1D", "SampleTime", - "ZeroCross" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "1", - "u1 == CTRL_FOC", - "", + "dV_openRate", "on", - "-1", - "on" + "inf", + "[]", + "[]", + "fixdt(1,28,16)", + "off", + "inf" ], "tabs":[ - "Parameter Attributes", + "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 4 + 3, + 7 ] }, "viewer":{ @@ -167,17 +190,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9368", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9947", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "GotoTag", @@ -185,7 +208,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "VqFinPrev", "local", "Tag" ], @@ -205,50 +228,112 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9365", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"Rate_Limiter", + "label":"Rate_Limiter", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ - "GotoTag", - "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":[ - "z_ctrlModReq", - "Tag" + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", + "on", + "off", + "off", + "-1", + "Auto", + "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":"From", + "blocktype":"SubSystem", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9364", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9944", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "GotoTag", "IconDisplay" ], "values":[ - "r_inpTgt", + "r_inpTgtScaOpen", "Tag" ], "tabs":[ @@ -267,51 +352,12 @@ } }, { - "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:9369", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10006", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "GotoTag", @@ -319,7 +365,7 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "r_inpTgtScaOpen", "local", "Tag" ], @@ -339,25 +385,41 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9362", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9941", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"Data Type Conversion", + "label":"Data Type Conversion", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "r_inpTgtSca", - "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" @@ -365,24 +427,24 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9361", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9943", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "GotoTag", "IconDisplay" ], "values":[ - "r_inpTgt", + "VqFinPrev", "Tag" ], "tabs":[ @@ -401,155 +463,102 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9363", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9945", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"Gain3", + "label":"Gain3", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "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: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", - "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" + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" ], "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", - "", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", "off", - "" + "Zero", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "-1" ], "tabs":[ "Main", + "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 6 + 2, + 8, + 11 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"Gain", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9366", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9940", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"Constant23", + "label":"Constant23", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "z_ctrlModReq", - "local", - "Tag" + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -557,65 +566,45 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9335", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9942", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"r_inpTgt", - "label":"r_inpTgt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ - "Port", - "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "3", - "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":{ @@ -624,27 +613,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9367", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9939", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "r_inpTgt", - "local", - "Tag" + "reset", + "Only when execution is resumed" ], "tabs":[ "Parameter Attributes" @@ -657,17 +644,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"ActionPort", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9336", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9951", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"z_ctrlModReq", - "label":"z_ctrlModReq", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"r_inpTgtScaOpen", + "label":"r_inpTgtScaOpen", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "Port", @@ -682,14 +669,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", "[]", "[]", @@ -701,10 +694,17 @@ "-1", "auto", "off", - "", - "on", "off", + "[]", "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -724,114 +724,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9337", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Commutation_Control_Type", - "label":"Commutation_Control_Type", - "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" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9334", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9938", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlTypSel", - "label":"z_ctrlTypSel", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"VqFinPrev", + "label":"VqFinPrev", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "Port", @@ -893,165 +796,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9364#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", - "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:9362#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", - "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:9334#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon5", - "name":"", - "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", - "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:9363#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9938#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1097,12 +847,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9361#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9940#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1148,12 +898,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9335#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9950#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1199,12 +949,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9371#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9945#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1250,12 +1000,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9365#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9949#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1301,12 +1051,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9336#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9944#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1352,12 +1102,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9341#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1403,12 +1153,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9370#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9943#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1454,12 +1204,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9337#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9941#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1505,12 +1255,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9370#out:2", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9942#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.png new file mode 100644 index 0000000..b2bd9f2 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.svg new file mode 100644 index 0000000..90139e0 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.svg @@ -0,0 +1,1083 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + In case of OPEN_MODE request the input target + + + + + + + + command will be reduced to 0 with a predefined rate. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dV_openRate + + + + + + + + + + + + + + + + + + + + + + dV_openRate + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + initVal + + + + + + + + init + + + + + + + + inc + + + + + + + + dec + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Rate_Limiter + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaOpen] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaOpen] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + -1 + + + + + + + + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtScaOpen + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + VqFinPrev + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2342_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2342_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2342_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2342_d.json index f74ff9c..41db5b6 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2342_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2342_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342:2337", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342:2337", "className":"Simulink.Switch", "icon":"WebViewIcon3", "name":"Switch1", "label":"Switch1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "inspector":{ "params":[ "Criteria", @@ -57,12 +57,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342:2335", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342:2335", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"initVal", "label":"initVal", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "inspector":{ "params":[ "Port", @@ -124,12 +124,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342:2339", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342:2339", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"y", "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "inspector":{ "params":[ "Port", @@ -204,12 +204,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342:2334", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342:2334", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"u", "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "inspector":{ "params":[ "Port", @@ -271,12 +271,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342:2340", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342:2340", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"init", "label":"init", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "inspector":{ "params":[ "Port", @@ -338,12 +338,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342:2341", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342:2341", "className":"Simulink.Switch", "icon":"WebViewIcon3", "name":"Switch2", "label":"Switch2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "inspector":{ "params":[ "Criteria", @@ -395,12 +395,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342:2512", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342:2512", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", "name":"UnitDelay", "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "inspector":{ "params":[ "InitialCondition", @@ -445,12 +445,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342:2335#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342:2335#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "inspector":{ "params":[ "SignalNameFromLabel", @@ -496,12 +496,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342:2334#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342:2334#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "inspector":{ "params":[ "SignalNameFromLabel", @@ -547,12 +547,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342:2341#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342:2341#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "inspector":{ "params":[ "SignalNameFromLabel", @@ -598,12 +598,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342:2340#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342:2340#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "inspector":{ "params":[ "SignalNameFromLabel", @@ -649,12 +649,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342:2337#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342:2337#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "inspector":{ "params":[ "SignalNameFromLabel", @@ -700,12 +700,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342:2512#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342:2512#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2342_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2342_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2342_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2342_d.png 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_9948_2342_d.svg similarity index 95% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2342_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2342_d.svg index fd72a09..74ed60b 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_9948_2342_d.svg @@ -9,13 +9,13 @@
- + - + - + @@ -205,7 +205,7 @@ - + @@ -268,7 +268,7 @@ - + @@ -316,7 +316,7 @@ - + @@ -379,7 +379,7 @@ - + @@ -442,9 +442,9 @@ - + - + @@ -634,7 +634,7 @@ - + @@ -693,32 +693,32 @@ - - - + + + - + - - Ini=initVal + + sfix28_En16 - - - + + + - + - - sfix28_En16 + + Ini=initVal @@ -727,7 +727,7 @@ - + @@ -761,7 +761,7 @@ - + @@ -775,7 +775,7 @@ - + @@ -789,7 +789,7 @@ - + @@ -823,7 +823,7 @@ - + @@ -837,7 +837,7 @@ - + @@ -853,5 +853,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.json new file mode 100644 index 0000000..f4e0b68 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.json @@ -0,0 +1,936 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395:10", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "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", + "OutMin", + "OutMax", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395:9", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"UpperRelop", + "label":"UpperRelop", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "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:9948:2395:8", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "OutMin", + "OutMax", + "Inherit: Inherit via back propagation", + "off", + "Floor", + "off", + "off", + "-1", + "0", + "off" + ], + "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:9948:2395:7", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch", + "label":"Switch", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Floor", + "off", + "off", + "-1", + "0", + "off" + ], + "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:9948:2395:6", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"LowerRelop1", + "label":"LowerRelop1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "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:9948:2395:5", + "className":"Simulink.SFunction", + "icon":"WebViewIcon3", + "name":"Data Type Propagation", + "label":"Data Type Propagation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "inspector":{ + "params":[ + "PropDataTypeMode", + "PropDataType", + "IfRefDouble", + "IfRefSingle", + "IsSigned", + "NumBitsBase", + "NumBitsMult", + "NumBitsAdd", + "NumBitsAllowFinal", + "PropScalingMode", + "PropScaling", + "ValuesUsedBestPrec", + "SlopeBase", + "SlopeMult", + "SlopeAdd", + "BiasBase", + "BiasMult", + "BiasAdd" + ], + "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" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"S-Function", + "masktype":"Data Type Propagation" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395:4", + "className":"Simulink.DataTypeDuplicate", + "icon":"WebViewIcon3", + "name":"Data Type Duplicate", + "label":"Data Type Duplicate", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "inspector":{ + "params":[ + "NumInputPorts" + ], + "values":[ + "2" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeDuplicate", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395:3", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"lo", + "label":"lo", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "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:9948:2395:2", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "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:9948:2395:1", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"up", + "label":"up", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395:1#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "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:9948:2395:2#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "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:9948:2395:3#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "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:9948:2395:7#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "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:9948:2395:8#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "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:9948:2395:6#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "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:9948:2395:9#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "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_9040_2395_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2395_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.png diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.svg new file mode 100644 index 0000000..cb657cf --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.svg @@ -0,0 +1,1180 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + UpperRelop + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + LowerRelop1 + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + Ref1 + + + + + + + + Ref2 + + + + + + + + Prop + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + lo + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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_9948_d.json similarity index 89% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.json index 3e1e3b8..cc5b14a 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_9948_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2353", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2353", "className":"Simulink.Annotation", "icon":"WebViewIcon2", "name":"

Rate Limiter

Note: The sample time must be included in the Increment and Decrement values.

", "label":"

Rate Limiter

Note: The sample time must be included in the Increment and Decrement values.

", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "Text", @@ -49,12 +49,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2343", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2343", "className":"Simulink.Sum", "icon":"WebViewIcon3", "name":"Sum2", "label":"Sum2", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "IconShape", @@ -108,63 +108,42 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2360", - "className":"Simulink.Outport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2346", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"y", - "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ - "Port", - "IconDisplay", + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", + "rectangular", + "+-", "off", + "Inherit: Inherit via internal rule", "[]", + "[]", + "Inherit: Same as first input", "off", - "held", + "Zero", "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -174,7 +153,7 @@ "tabs_idx":[ 0, 2, - 11 + 10 ] }, "viewer":{ @@ -183,56 +162,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Sum", "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:2342", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "className":"Simulink.SubSystem", "icon":"WebViewIcon4", "name":"Delay_Init1", "label":"Delay_Init1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "initVal" @@ -256,12 +196,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2358", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2358", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"dec", "label":"dec", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "Port", @@ -323,12 +263,51 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2356", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic", + "label":"Saturation Dynamic", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2357", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"init", - "label":"init", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "name":"inc", + "label":"inc", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "Port", @@ -350,7 +329,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "4", "Port number", "[]", "[]", @@ -390,12 +369,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2355", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2356", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"initVal", - "label":"initVal", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "name":"init", + "label":"init", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "Port", @@ -417,7 +396,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -457,42 +436,50 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2346", - "className":"Simulink.Sum", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2355", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "name":"initVal", + "label":"initVal", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "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", + "2", + "Port number", "[]", "[]", - "Inherit: Same as first input", + "Inherit: auto", "off", - "Zero", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", - "1", - "All dimensions", - "-1" + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", @@ -502,7 +489,7 @@ "tabs_idx":[ 0, 2, - 10 + 11 ] }, "viewer":{ @@ -511,17 +498,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Inport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2359", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2360", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"u", - "label":"u", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "name":"y", + "label":"y", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "Port", @@ -536,11 +523,17 @@ "SampleTime", "SignalType", "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ "1", @@ -555,10 +548,17 @@ "-1", "auto", "off", - "", - "on", "off", + "[]", "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", "off" ], "tabs":[ @@ -578,17 +578,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2357", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2359", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"inc", - "label":"inc", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "name":"u", + "label":"u", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "Port", @@ -610,7 +610,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "1", "Port number", "[]", "[]", @@ -650,12 +650,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2356#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2356#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "SignalNameFromLabel", @@ -701,12 +701,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "SignalNameFromLabel", @@ -752,12 +752,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2359#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2359#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "SignalNameFromLabel", @@ -803,12 +803,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2357#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2357#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "SignalNameFromLabel", @@ -854,12 +854,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2343#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2343#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "SignalNameFromLabel", @@ -905,12 +905,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2346#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2346#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "SignalNameFromLabel", @@ -956,12 +956,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2358#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2358#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1007,12 +1007,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2355#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2355#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1058,12 +1058,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "inspector":{ "params":[ "SignalNameFromLabel", 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_9948_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.png 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_9948_d.svg similarity index 92% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.svg index 05a1593..d3f2ba8 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_9948_d.svg @@ -9,11 +9,11 @@
- + - + @@ -48,7 +48,7 @@ - + @@ -120,155 +120,59 @@ - - - + + + - - + + - + - - 1 - - - - - - - - - - - - - - + + - - - - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - + - - lo + + - - + + - - y + + - - + + - + - - + + - + sfix28_En16 @@ -280,9 +184,9 @@ - + - + @@ -290,59 +194,59 @@ - + - + u - + - + initVal - + - + init - + - + y - + - + 1 - + - + z - + - + @@ -360,11 +264,11 @@ - + - + sfix28_En16 @@ -372,29 +276,29 @@ - + - + - + - + - + - + @@ -408,7 +312,7 @@ - + @@ -418,11 +322,11 @@ - + - + 5 @@ -440,11 +344,11 @@ - + - + dec @@ -455,11 +359,11 @@ - + - + sfix28_En16 @@ -471,59 +375,108 @@ - - - + + + - - + + - + - - + + - - 3 + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + - - - + + + + + + + + up - - + + - - init + + u + + + + + + + + lo + + + + + + + + y + + + + + + + - - + + - - + + - - boolean + + sfix28_En16 @@ -534,58 +487,58 @@ - - + + - + - + - - 2 + + 4 - + - - + + - - + + - - initVal + + inc - + - - + + - + sfix28_En16 @@ -597,59 +550,121 @@ - - - + + + - - + + - - + + - - + + 3 + + + + + + + + + + + + + + - - + + - - + + init + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + - + - - + + 2 - - + + + + + + + + + + + + + + + + + initVal - + - - + + - + sfix28_En16 @@ -661,59 +676,44 @@ - - + + - + - + - + 1 - + - - - - - - - - - - u - - - - - - - + + - + - - sfix28_En16 + + y @@ -724,11 +724,11 @@ - - + + - + @@ -738,44 +738,44 @@ - - 4 + + 1 - + - - + + - + - - inc + + u - + - + - + sfix28_En16 @@ -785,7 +785,7 @@ - + @@ -799,7 +799,7 @@ - + @@ -833,7 +833,7 @@ - + @@ -847,7 +847,7 @@ - + @@ -861,7 +861,7 @@ - + @@ -895,7 +895,7 @@ - + @@ -909,7 +909,7 @@ - + @@ -923,7 +923,7 @@ - + @@ -937,7 +937,7 @@ - + @@ -953,5 +953,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9042_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9950_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9042_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9950_d.json index 2f7add5..dde0dea 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9042_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9950_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9042:2364", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9950:2364", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"y", "label":"y", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9042", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9950", "inspector":{ "params":[ "Port", @@ -80,12 +80,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9042:2363", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9950:2363", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", "name":"UnitDelay", "label":"UnitDelay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9042", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9950", "inspector":{ "params":[ "InitialCondition", @@ -130,12 +130,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9042:2362", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9950:2362", "className":"Simulink.Constant", "icon":"WebViewIcon3", "name":"Constant", "label":"Constant", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9042", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9950", "inspector":{ "params":[ "Value", @@ -179,12 +179,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9042:2363#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9950:2363#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9042", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9950", "inspector":{ "params":[ "SignalNameFromLabel", @@ -230,12 +230,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9042:2362#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9950:2362#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9042", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9950", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9042_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9950_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9042_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9950_d.png 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_9950_d.svg similarity index 97% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9042_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9950_d.svg index e680bd9..e55f86a 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_9950_d.svg @@ -9,11 +9,11 @@ - + - + @@ -61,7 +61,7 @@ - + @@ -120,32 +120,32 @@ - - - + + + - + - - Ini=1 + + boolean - - - + + + - + - - boolean + + Ini=1 @@ -156,7 +156,7 @@ - + @@ -202,7 +202,7 @@ - + @@ -216,7 +216,7 @@ - + @@ -232,5 +232,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.json new file mode 100644 index 0000000..19fd313 --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.json @@ -0,0 +1,2823 @@ +[ + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9993", + "className":"Simulink.Annotation", + "icon":"WebViewIcon2", + "name":"

Input Scaling [-1000,1000] → [min,max]

", + "label":"

Input Scaling [-1000,1000] → [min,max]

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

Input Scaling [-1000,1000] → [min,max]

", + "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:10003", + "className":"Simulink.Annotation", + "icon":"WebViewIcon2", + "name":"

Final check if OPEN_MODE is requested

", + "label":"

Final check if OPEN_MODE is requested

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

Final check if OPEN_MODE is requested

", + "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:9992", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10449", + "className":"Simulink.Saturate", + "icon":"WebViewIcon3", + "name":"Saturation", + "label":"Saturation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "UpperLimit", + "LowerLimit", + "LinearizeAsGain", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1000", + "-1000", + "on", + "[]", + "[]", + "Inherit: Same as input", + "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:9937", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Open_Mode", + "label":"Open_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10013", + "className":"Simulink.Merge", + "icon":"WebViewIcon3", + "name":"Merge1", + "label":"Merge1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets", + "Inputs" + ], + "values":[ + "[]", + "off", + "[]", + "2" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Merge", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9999", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9981", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From9", + "label":"From9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:10004", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto12", + "label":"Goto12", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "VqFinPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9985", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9980", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From22", + "label":"From22", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9979", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From19", + "label":"From19", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:10002", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If2", + "label":"If2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 == OPEN_MODE", + "", + "on", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9978", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9982", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlModReq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9986", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If1", + "label":"If1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 == CTRL_FOC", + "", + "on", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9977", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10005", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "VqFinPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10000", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9984", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaRaw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10014", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9983", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgt", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10015", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10016", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"VqFinPrev", + "label":"VqFinPrev", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9988", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Default_Control_Type", + "label":"Default_Control_Type", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9956", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgt", + "label":"r_inpTgt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:10007", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Default_Mode", + "label":"Default_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9987", + "className":"Simulink.Merge", + "icon":"WebViewIcon3", + "name":"Merge", + "label":"Merge", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets", + "Inputs" + ], + "values":[ + "[]", + "off", + "[]", + "2" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Merge", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9998", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlMod", + "label":"z_ctrlMod", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:9955", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlModReq", + "label":"z_ctrlModReq", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9957", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"FOC_Control_Type", + "label":"FOC_Control_Type", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9954", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlTypSel", + "label":"z_ctrlTypSel", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "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:9957#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9980#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9978#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9986#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9954#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9979#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9988#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9977#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9956#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9987#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9986#out:2", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9981#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9955#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9998#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:10000#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:10002#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:10005#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:9937#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:10007#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:10013#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:10015#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:10002#out:2", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:10016#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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:10449#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "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_9953_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.png new file mode 100644 index 0000000..c7a44cb Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.svg new file mode 100644 index 0000000..467e3cf --- /dev/null +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.svg @@ -0,0 +1,2263 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + Input Scaling [-1000,1000] → [min,max] + + + + + + + + + + + + + + + + + + + Final check if OPEN_MODE is requested + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + VqFinPrev + + + + + + + + r_inpTgtScaOpen + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Open_Mode + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlMod] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 == OPEN_MODE) + + + + + + + + else + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 == CTRL_FOC) + + + + + + + + else + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlMod] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaRaw] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaRaw] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + VqFinPrev + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + r_inpTgt + + + + + + + + r_inpTgtScaDft + + + + + + + + else { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default_Control_Type + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + r_inpTgt + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + r_inpTgtScaRaw + + + + + + + + r_inpTgtScaDft + + + + + + + + else { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default_Mode + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + z_ctrlMod + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_ctrlModReq + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + r_inpTgt + + + + + + + + z_ctrlModReq + + + + + + + + r_inpTgtScaFOC + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + FOC_Control_Type + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + z_ctrlTypSel + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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_9957_d.json similarity index 86% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.json index ded4197..7eff028 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_9957_d.json @@ -1,11 +1,109 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9360", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9973", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"constant1", + "label":"constant1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9975", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"n_max", + "label":"n_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", + "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:9976", "className":"Simulink.Outport", "icon":"WebViewIcon3", "name":"r_inpTgtScaFOC", "label":"r_inpTgtScaFOC", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "Port", @@ -80,12 +178,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9359", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9972", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"n_max", - "label":"n_max", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "name":"constant", + "label":"constant", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "Value", @@ -98,12 +196,12 @@ "FramePeriod" ], "values":[ - "n_max", + "1000", "on", "inf", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: Inherit via back propagation", "off", "inf" ], @@ -129,43 +227,27 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9358", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9968", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"i_max", - "label":"i_max", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "i_max", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" + "r_inpTgt", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -173,47 +255,27 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9354", - "className":"Simulink.Selector", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9967", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Selector", - "label":"Selector", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ - "IndexMode", - "IndexOptionArray", - "IndexOptions", - "IndexParamArray", - "Indices", - "InputPortWidth", - "NumberOfDimensions", - "OutputSizeArray", - "OutputSizes", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "Zero-based", - [ - "Index vector (port)" - ], - "Index vector (port)", - [ - "[1 3]" - ], - "[1 3]", - "4", - "1", - [ - "1" - ], - "1", - "-1" + "z_ctrlModReq", + "local", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -226,17 +288,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Selector", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9352", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9966", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "GotoTag", @@ -244,7 +306,7 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "r_inpTgtScaFOC", "local", "Tag" ], @@ -264,21 +326,19 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9350", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9965", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "name":"From9", + "label":"From9", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "r_inpTgtScaFOC", - "local", + "z_ctrlModReq", "Tag" ], "tabs":[ @@ -292,25 +352,47 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9349", - "className":"Simulink.From", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9970", + "className":"Simulink.Selector", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "name":"Selector", + "label":"Selector", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "IndexMode", + "IndexOptionArray", + "IndexOptions", + "IndexParamArray", + "Indices", + "InputPortWidth", + "NumberOfDimensions", + "OutputSizeArray", + "OutputSizes", + "SampleTime" ], "values":[ - "z_ctrlModReq", - "Tag" + "Zero-based", + [ + "Index vector (port)" + ], + "Index vector (port)", + [ + "[1 3]" + ], + "[1 3]", + "4", + "1", + [ + "1" + ], + "1", + "-1" ], "tabs":[ "Parameter Attributes" @@ -323,17 +405,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Selector", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9348", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9964", "className":"Simulink.From", "icon":"WebViewIcon3", "name":"From22", "label":"From22", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "GotoTag", @@ -359,51 +441,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9346", - "className":"Simulink.Product", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9969", + "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "name":"Mux", + "label":"Mux", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "DisplayOption" ], "values":[ - "*/", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(0,16,12)", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "4", + "bar" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -411,17 +467,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Mux", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9357", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9971", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"constant1", - "label":"constant1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "name":"Vd_max", + "label":"Vd_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "Value", @@ -434,12 +490,12 @@ "FramePeriod" ], "values":[ - "0", + "Vd_max", "on", "inf", "[]", "[]", - "Inherit: Inherit via back propagation", + "fixdt(1,16,4)", "off", "inf" ], @@ -465,12 +521,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9345", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9961", "className":"Simulink.Product", "icon":"WebViewIcon3", "name":"Divide1", "label":"Divide1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "Inputs", @@ -522,43 +578,25 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9356", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9960", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"constant", - "label":"constant", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "1000", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "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" @@ -566,37 +604,55 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"ActionPort", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9355", - "className":"Simulink.Constant", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9959", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vd_max", - "label":"Vd_max", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "name":"z_ctrlModReq", + "label":"z_ctrlModReq", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "Vd_max", - "on", - "inf", + "2", + "Port number", "[]", "[]", - "fixdt(1,16,4)", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", @@ -605,8 +661,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -615,48 +671,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9344", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", - "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:9343", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9958", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlModReq", - "label":"z_ctrlModReq", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "name":"r_inpTgt", + "label":"r_inpTgt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "Port", @@ -678,7 +703,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -718,27 +743,51 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9351", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9962", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "name":"Divide4", + "label":"Divide4", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "z_ctrlModReq", - "local", - "Tag" + "*/", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(0,16,12)", + "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" @@ -746,17 +795,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Product", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9347", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9963", "className":"Simulink.From", "icon":"WebViewIcon3", "name":"From1", "label":"From1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "GotoTag", @@ -782,50 +831,32 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9342", - "className":"Simulink.Inport", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9974", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"r_inpTgt", - "label":"r_inpTgt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "name":"i_max", + "label":"i_max", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "FramePeriod" ], "values":[ - "1", - "Port number", + "i_max", + "on", + "inf", "[]", "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", + "fixdt(1,16,4)", "off", - "off" + "inf" ], "tabs":[ "Main", @@ -834,8 +865,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -844,48 +875,17 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", - "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", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9342#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9958#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "SignalNameFromLabel", @@ -931,12 +931,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9347#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9963#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "SignalNameFromLabel", @@ -982,12 +982,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9343#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9959#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1033,12 +1033,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9356#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9972#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1084,12 +1084,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9354#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9970#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1135,12 +1135,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9357#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9973#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1186,12 +1186,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9358#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9974#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1237,12 +1237,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9355#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9971#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1288,12 +1288,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9353#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9969#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1339,12 +1339,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9359#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9975#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1390,12 +1390,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9349#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9965#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1441,12 +1441,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9346#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9962#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1492,12 +1492,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9345#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9961#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "SignalNameFromLabel", @@ -1543,12 +1543,12 @@ ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9348#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9964#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "inspector":{ "params":[ "SignalNameFromLabel", 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_9957_d.png similarity index 100% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.png rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.png 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_9957_d.svg similarity index 92% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.svg index e150031..da0d565 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_9957_d.svg @@ -9,48 +9,48 @@
- + - - - + + + - - + + - + - - 1 + + 0 - - + + - - - + + + - + - - r_inpTgtScaFOC + + sfix16_En4 @@ -61,7 +61,7 @@ - + @@ -124,59 +124,44 @@ - - - + + + - - + + - + - - i_max + + 1 - - + + - - + + - - - - - i_max - - - - - - - - - - - + - - sfix16_En4 + + r_inpTgtScaFOC @@ -187,67 +172,43 @@ - - - + + + - - + + - - - - - - U - - - - - - - - Idx1 - - - - - - - - 0 - - - - + + - - Y + + 1000 - - + + - + - - + + - + sfix16_En4 @@ -259,7 +220,7 @@ - + @@ -269,11 +230,11 @@ - + - + [r_inpTgt] @@ -292,28 +253,28 @@ - - + + - + - + - - [r_inpTgtScaFOC] + + [z_ctrlModReq] - + @@ -325,44 +286,29 @@ - - - + + + - - + + - - + + - - [z_ctrlModReq] + + [r_inpTgtScaFOC] - - - - - - - - - - - - - - - - - uint8 + + @@ -373,44 +319,44 @@ - - + + - + - + - - [r_inpTgt] + + [z_ctrlModReq] - + - - + + - - + + - - sfix16_En4 + + uint8 @@ -421,69 +367,68 @@ - - - + + + - - + + - - + + - - + + U - - + + - - + + Idx1 - - + + - - + + 0 - - + + - - - + + Y - - + + - - + + - - + + - - ufix16_En12 + + sfix16_En4 @@ -494,43 +439,43 @@ - - - + + + - - + + - - + + - - 0 + + [r_inpTgt] - - + + - + - - + + - + sfix16_En4 @@ -542,51 +487,43 @@ - - - + + + - - + + - - - - - - - - - - + + - - + + - - + + - + - - + + - + sfix16_En4 @@ -598,43 +535,58 @@ - - - + + + - - + + - - + + - - 1000 + + Vd_max - - + + + + + + + + + + + + + + + + + Vd_max - + - - + + - + sfix16_En4 @@ -646,58 +598,51 @@ - - - + + + - - + + - - + + - - Vd_max + + - - - - - - + + + + + + + - - - - - - - - - - - Vd_max + + + - + - - + + - + sfix16_En4 @@ -709,9 +654,9 @@ - + - + @@ -719,11 +664,11 @@ - + - + if { } @@ -741,11 +686,11 @@ - + - + Action Port @@ -757,7 +702,7 @@ - + @@ -767,11 +712,11 @@ - + - + 2 @@ -789,11 +734,11 @@ - + - + z_ctrlModReq @@ -804,11 +749,11 @@ - + - + uint8 @@ -820,29 +765,59 @@ - - - + + + - - + + - - + + - - [z_ctrlModReq] + + 1 - - + + + + + + + + + + + + + + + + + r_inpTgt + + + + + + + + + + + + + + + sfix16_En4 @@ -853,44 +828,69 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - [r_inpTgtScaFOC] + + + - - + + - - + + - + - - sfix16_En4 + + ufix16_En12 @@ -901,58 +901,43 @@ - - - + + + - - + + - + - - 1 + + [r_inpTgtScaFOC] - - - - - - - - - - - - - - - - - r_inpTgt + + - + - - + + - + sfix16_En4 @@ -964,43 +949,58 @@ - - - + + + - - + + - - + + - - + + i_max - - + + + + + + + + + + + + + + + + + i_max - + - + - + sfix16_En4 @@ -1010,7 +1010,7 @@ - + @@ -1024,7 +1024,7 @@ - + @@ -1038,7 +1038,7 @@ - + @@ -1052,7 +1052,7 @@ - + @@ -1066,7 +1066,7 @@ - + @@ -1080,7 +1080,7 @@ - + @@ -1094,7 +1094,7 @@ - + @@ -1108,7 +1108,7 @@ - + @@ -1122,7 +1122,7 @@ - + @@ -1136,7 +1136,7 @@ - + @@ -1150,7 +1150,7 @@ - + @@ -1164,7 +1164,7 @@ - + @@ -1178,7 +1178,7 @@ - + @@ -1192,7 +1192,7 @@ - + @@ -1208,5 +1208,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.json similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.json rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.json index 5e16b69..20ed587 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.json @@ -1,11 +1,11 @@ [ { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9340", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9991", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"r_inpTgtScaCOM", - "label":"r_inpTgtScaCOM", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9337", + "name":"r_inpTgtScaDft", + "label":"r_inpTgtScaDft", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9988", "inspector":{ "params":[ "Port", @@ -80,12 +80,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9339", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9990", "className":"Simulink.ActionPort", "icon":"WebViewIcon3", "name":"Action Port", "label":"Action Port", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9337", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9988", "inspector":{ "params":[ "InitializeStates", @@ -111,12 +111,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9338", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9989", "className":"Simulink.Inport", "icon":"WebViewIcon3", "name":"r_inpTgt", "label":"r_inpTgt", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9337", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9988", "inspector":{ "params":[ "Port", @@ -178,12 +178,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9338#out:1", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9989#out:1", "className":"Simulink.Line", "icon":"WebViewIcon5", "name":"", "label":"", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9337", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9988", "inspector":{ "params":[ "SignalNameFromLabel", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.png new file mode 100644 index 0000000..9136748 Binary files /dev/null and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_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_9988_d.svg similarity index 87% rename from 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.svg rename to 01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.svg index 53e333b..d6c3a52 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_9988_d.svg @@ -1,19 +1,19 @@ - + - + - + - + @@ -42,15 +42,15 @@ - + - + - - r_inpTgtScaCOM + + r_inpTgtScaDft @@ -61,9 +61,9 @@ - + - + @@ -94,7 +94,7 @@ - + @@ -109,7 +109,7 @@ - + @@ -142,7 +142,7 @@ - + @@ -157,7 +157,7 @@ - + @@ -170,7 +170,7 @@ - + @@ -186,5 +186,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_h_1.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_h_1.json index d1506a7..3b46f01 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 @@ -20,12 +20,14 @@ "parent":1, "children":[ 3, - 15, - 26, - 29, - 68, - 69, - 70 + 12, + 23, + 35, + 38, + 83, + 89, + 90, + 91 ], "name":"BLDC_controller", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller", @@ -37,130 +39,140 @@ "elements":[ ":9309", ":9308", + ":10192", ":9307", ":9306", - ":9305", ":9304", - ":9298", - ":9297", - ":9669", - ":9294", - ":9291", + ":9303", ":9302", - ":9284", + ":10064", + ":9297", + ":9441", + ":10164", + ":10751", + ":9293", + ":10258", + ":9290", + ":9934", + ":9279", ":9289", - ":9287", - ":9303", + ":9286", ":9283", - ":9272", - ":9278", - ":9276", + ":10189", + ":9300", + ":10188", + ":10187", + ":9277", ":9275", - ":9456", - ":9271", - ":9270", - ":9269", - ":9392", + ":9274", + ":9278", + ":9437", + ":10159", ":9252", - ":9293", - ":9250", ":9251", - ":9241", - ":9263", + ":9250", + ":9262", + ":9269", + ":9418", + ":10692", + ":10355", + ":9268", + ":9284", ":9267", + ":9282", ":9265", ":9264", ":9261", - ":9281", + ":9287", ":9258", - ":9259", - ":9295", - ":9257", - ":9280", + ":10257", + ":10027", ":9253", - ":9388", + ":10026", + ":9935", + ":9248", + ":9241", + ":10356", ":9249", - ":9437", - ":9245", - ":9292", + ":9931", ":9244", + ":9263", + ":10259", + ":9720", ":9242", - ":9299", ":9198", - ":9290", - ":9441", - ":9277", - ":8658", - ":9260", - ":9448", + ":9259", + ":10025", + ":9276", + ":9266", + ":10066", + ":9930", + ":10191", ":9288", + ":9245", ":8469", - ":9418", + ":9298", ":9285", - ":9720", - ":9300", - ":8218", - ":9282", - ":9436", + ":10161", + ":8220", + ":8217", + ":9280", + ":10160", ":8215", ":8214", - ":8217", - ":9286", + ":9291", + ":9448", + ":9270", + ":9240", + ":9271", ":9301", - ":8213", - ":8209", ":8210", - ":8220", - ":9385", - ":9268", - ":8207", + ":10158", + ":10749", + ":10155", + ":9305", + ":9456", + ":10154", + ":10065", + ":8206", + ":8209", ":8205", + ":8658", ":8204", - ":9279", - ":9262", + ":10139", + ":10156", + ":8535", ":8203", ":8208", - ":8535", - ":9266", - ":8212", ":8202", - ":8206", + ":9299", + ":9436", + ":8207", + ":9292", + ":9260", ":8201", - ":8216", - ":9389", - ":9274", - ":9240", - ":9387", - ":8211", - ":9248", + ":9272", + ":9281", + ":10157", + ":10255", ":9268#out:1", ":8469#out:2", ":8215#out:1", ":8214#out:1", ":9290#out:1", - ":8208#out:1", ":9251#out:1", ":9260#out:1", - ":9294#out:1", ":8220#out:5", ":9242#out:1", - ":9297#out:1", - ":8211#out:1", ":9258#out:1", ":9291#out:1", ":9249#out:1", - ":9257#out:1", ":9265#out:1", ":9250#out:1", ":9248#out:1", ":9240#out:1", ":8210#out:1", - ":8218#out:1", - ":8658#out:2", ":9244#out:1", - ":8207#out:1", - ":8216#out:1", - ":8658#out:1", ":9245#out:1", ":9241#out:1", ":9267#out:1", @@ -169,47 +181,73 @@ ":8202#out:1", ":9198#out:1", ":8220#out:4", - ":8658#out:3", - ":8658#out:6", + ":8658#out:4", ":8220#out:6", ":9259#out:1", - ":8658#out:5", + ":8658#out:3", ":8217#out:1", ":9198#out:3", - ":9295#out:1", ":8205#out:1", - ":8212#out:1", ":8220#out:8", ":8469#out:1", - ":8213#out:1", ":8201#out:1", ":8206#out:1", ":9253#out:1", ":9264#out:1", - ":8220#out:2", + ":8220#out:1", ":8535#out:1", ":9252#out:1", ":8204#out:1", - ":8220#out:3", + ":8220#out:2", ":9298#out:1", ":9261#out:1", - ":9385#out:1", - ":9387#out:1", - ":9388#out:1", - ":8220#out:1", - ":9392#out:1", ":9418#out:1", ":9436#out:1", ":8220#out:7", ":8209#out:1", - ":8658#out:4", ":9198#out:4", ":9448#out:1", - ":8203#out:1", - ":9669#out:1", ":9263#out:1", ":9262#out:1", - ":9720#out:1" + ":9720#out:1", + ":8658#out:2", + ":8658#out:1", + ":9930#out:1", + ":9931#out:1", + ":8220#out:3", + ":9935#out:1", + ":10025#out:1", + ":10026#out:1", + ":10027#out:1", + ":8535#out:2", + ":8203#out:1", + ":10065#out:1", + ":10155#out:1", + ":10154#out:1", + ":10064#out:1", + ":10157#out:1", + ":10164#out:3", + ":10164#out:2", + ":10164#out:1", + ":9297#out:1", + ":10191#out:1", + ":10255#out:1", + ":10258#out:1", + ":10257#out:1", + ":10356#out:1", + ":10355#out:1", + ":10066#out:1", + ":10159#out:1", + ":10160#out:1", + ":10161#out:1", + ":10139#out:1", + ":10156#out:1", + ":10259#out:1", + ":10692#out:1", + ":8207#out:1", + ":10749#out:1", + ":10751#out:1", + ":8208#out:1" ], "sameAsElement":true }, @@ -220,11 +258,10 @@ "parent":2, "children":[ 4, + 5, + 6, 7, - 8, - 9, - 10, - 14 + 11 ], "name":"F01_Estimations", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations", @@ -263,45 +300,33 @@ ":8426", ":8428", ":8467", - ":8466", - ":8463", - ":9383", - ":8462", ":8468", + ":9933", + ":9433", + ":8463", ":8460", ":8458", - ":8457", - ":9377", - ":9379", - ":8451", - ":9433", - ":9431", - ":8436", - ":8434", ":9432", - ":8446", - ":9381", - ":9380", - ":8427", - ":8432", + ":8449", ":8461", + ":9431", ":8437", - ":8384", - ":9374", - ":8455", - ":8431", ":8435", - ":8424", - ":9333", + ":8432", ":8430", - ":9378", - ":8449", - ":9375", - ":8224", - ":8450", - ":9382", - ":9384", + ":8427", + ":8434", + ":8436", + ":8384", + ":8431", ":8429", + ":8446", + ":8451", + ":8466", + ":8457", + ":8450", + ":8462", + ":9932", ":8462#out:1", ":8440#out:1", ":8439#out:1", @@ -332,161 +357,29 @@ ":8436#out:1", ":8437#out:1", ":8263#out:6", - ":8424#out:1", ":8432#out:1", ":8427#out:1", ":8384#out:1", ":8263#out:2", ":8429#out:1", - ":8224#out:1", ":8235#out:1", ":8446#out:1", - ":9374#out:1", - ":9375#out:1", - ":9378#out:1", - ":9380#out:1", - ":9381#out:1", - ":9382#out:1", - ":9333#out:1", ":9431#out:1", - ":8263#out:5" + ":8263#out:5", + ":9932#out:1" ], "sameAsElement":true }, { "hid":4, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9333", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9333", - "parent":3, - "children":[ - 5, - 6 - ], - "name":"F01_01_Input_Scaling", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_01_Input_Scaling", - "label":"F01_01_Input_Scaling", - "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9333_d.json", - "elements":[ - ":9373", - ":9372", - ":9370", - ":9368", - ":9365", - ":9364", - ":9371", - ":9369", - ":9362", - ":9361", - ":9363", - ":9341", - ":9366", - ":9335", - ":9367", - ":9336", - ":9337", - ":9334", - ":9364#out:1", - ":9362#out:1", - ":9334#out:1", - ":9363#out:1", - ":9361#out:1", - ":9335#out:1", - ":9371#out:1", - ":9365#out:1", - ":9336#out:1", - ":9341#out:1", - ":9370#out:1", - ":9337#out:1", - ":9370#out:2" - ], - "sameAsElement":true - }, - { - "hid":5, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9337", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9337", - "parent":4, - "children":[ - ], - "name":"Commutation_Control_Type", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_01_Input_Scaling/Commutation_Control_Type", - "label":"Commutation_Control_Type", - "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9337_d.json", - "elements":[ - ":9340", - ":9339", - ":9338", - ":9338#out:1" - ], - "sameAsElement":true - }, - { - "hid":6, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9341", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9341", - "parent":4, - "children":[ - ], - "name":"FOC_Control_Type", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_01_Input_Scaling/FOC_Control_Type", - "label":"FOC_Control_Type", - "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9341_d.svg", - "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", - ":9354", - ":9352", - ":9350", - ":9349", - ":9348", - ":9346", - ":9357", - ":9345", - ":9356", - ":9355", - ":9344", - ":9343", - ":9351", - ":9347", - ":9342", - ":9353", - ":9342#out:1", - ":9347#out:1", - ":9343#out:1", - ":9356#out:1", - ":9354#out:1", - ":9357#out:1", - ":9358#out:1", - ":9355#out:1", - ":9353#out:1", - ":9359#out:1", - ":9349#out:1", - ":9346#out:1", - ":9345#out:1", - ":9348#out:1" - ], - "sameAsElement":true - }, - { - "hid":7, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8225", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8225", "parent":3, "children":[ ], - "name":"F01_02_Edge_Detector", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_02_Edge_Detector", - "label":"F01_02_Edge_Detector", + "name":"F01_01_Edge_Detector", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_01_Edge_Detector", + "label":"F01_01_Edge_Detector", "icon":"WebViewIcon1", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8225_d.svg", "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8225_d.png", @@ -496,9 +389,9 @@ ":8227", ":8228", ":8234", + ":8233", ":8232", ":8231", - ":8233", ":9634", ":8226#out:1", ":8228#out:1", @@ -511,15 +404,15 @@ "sameAsElement":true }, { - "hid":8, + "hid":5, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8235", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8235", "parent":3, "children":[ ], - "name":"F01_03_Position_Calculation", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_03_Position_Calculation", - "label":"F01_03_Position_Calculation", + "name":"F01_02_Position_Calculation", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_02_Position_Calculation", + "label":"F01_02_Position_Calculation", "icon":"WebViewIcon1", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8235_d.svg", "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8235_d.png", @@ -548,15 +441,15 @@ "sameAsElement":true }, { - "hid":9, + "hid":6, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8247", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8247", "parent":3, "children":[ ], - "name":"F01_04_Direction_Detection", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_04_Direction_Detection", - "label":"F01_04_Direction_Detection", + "name":"F01_03_Direction_Detection", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_03_Direction_Detection", + "label":"F01_03_Direction_Detection", "icon":"WebViewIcon1", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8247_d.svg", "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8247_d.png", @@ -573,10 +466,10 @@ ":8258", ":8251", ":8252", + ":8262", ":8259", ":8260", ":8249", - ":8262", ":8259#out:1", ":8255#out:1", ":8253#out:1", @@ -593,23 +486,22 @@ "sameAsElement":true }, { - "hid":10, + "hid":7, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "parent":3, "children":[ - 11, - 13 + 8, + 10 ], - "name":"F01_05_Speed_Estimation", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_05_Speed_Estimation", - "label":"F01_05_Speed_Estimation", + "name":"F01_04_Speed_Estimation", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_04_Speed_Estimation", + "label":"F01_04_Speed_Estimation", "icon":"WebViewIcon1", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.svg", "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8263_d.json", "elements":[ - ":8380", ":8381", ":8382", ":8383", @@ -629,61 +521,56 @@ ":8379", ":9430", ":8378", - ":8377", ":8373", ":9429", - ":8376", + ":8372", ":8371", ":8370", + ":8377", ":9428", ":8366", - ":8367", - ":8304", + ":8369", + ":8312", ":8311", + ":8306", + ":8305", + ":8374", ":8301", ":8299", - ":8297", + ":8298", ":9425", ":8294", - ":8293", + ":8308", ":8291", ":8289", - ":8288", + ":8293", + ":9427", ":8285", - ":8303", + ":8300", + ":8284", ":8283", + ":8376", ":8282", - ":8374", - ":8308", - ":8281", + ":8303", + ":8280", + ":8286", + ":8292", + ":8313", ":8278", - ":8369", - ":8298", ":8277", + ":8276", ":9426", - ":8305", - ":8312", - ":8286", - ":8272", - ":8284", ":8275", - ":8280", - ":8314", - ":8372", + ":8281", ":8270", - ":8300", + ":8272", + ":8314", + ":8267", ":9477", ":8268", - ":8306", - ":8267", - ":8292", - ":8264", - ":8313", - ":8276", - ":8269", - ":9427", - ":8309", + ":8297", ":8310", + ":8309", ":8293#out:1", ":8312#out:1", ":8290#out:1", @@ -704,7 +591,6 @@ ":8308#out:1", ":8280#out:1", ":8281#out:1", - ":8264#out:1", ":8277#out:1", ":8373#out:1", ":8270#out:1", @@ -718,13 +604,8 @@ ":8371#out:1", ":8283#out:1", ":8292#out:1", - ":8269#out:1", - ":8288#out:1", ":8286#out:1", ":8314#out:2", - ":8367#out:1", - ":8372#out:1", - ":8309#out:1", ":8310#out:1", ":8294#out:1", ":8374#out:1", @@ -735,20 +616,22 @@ ":9425#out:1", ":9429#out:1", ":9428#out:1", - ":9477#out:1" + ":9477#out:1", + ":8372#out:1", + ":8309#out:1" ], "sameAsElement":true }, { - "hid":11, + "hid":8, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8272", - "parent":10, + "parent":7, "children":[ - 12 + 9 ], "name":"Counter", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_05_Speed_Estimation/Counter", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_04_Speed_Estimation/Counter", "label":"Counter", "icon":"WebViewIcon4", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_d.svg", @@ -756,12 +639,12 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_d.json", "elements":[ ":8272:2418", - ":8272:2515", ":8272:2416", ":8272:2415", + ":8272:2413", ":8272:2414", ":8272:2412", - ":8272:2413", + ":8272:2515", ":8272:2515#out:1", ":8272:2415#out:1", ":8272:2413#out:1", @@ -772,14 +655,14 @@ "sameAsElement":true }, { - "hid":12, + "hid":9, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2515", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2515", - "parent":11, + "parent":8, "children":[ ], "name":"rst_Delay", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_05_Speed_Estimation/Counter/rst_Delay", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_04_Speed_Estimation/Counter/rst_Delay", "label":"rst_Delay", "icon":"WebViewIcon4", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8272_2515_d.svg", @@ -801,14 +684,14 @@ "sameAsElement":true }, { - "hid":13, + "hid":10, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "parent":10, + "parent":7, "children":[ ], "name":"Raw_Motor_Speed_Estimation", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_05_Speed_Estimation/Raw_Motor_Speed_Estimation", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_04_Speed_Estimation/Raw_Motor_Speed_Estimation", "label":"Raw_Motor_Speed_Estimation", "icon":"WebViewIcon1", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8314_d.svg", @@ -820,51 +703,51 @@ ":8363", ":8364", ":8365", - ":8358", - ":8360", - ":8356", - ":8351", + ":8357", ":8348", ":8347", + ":8351", + ":8352", + ":8359", + ":8342", + ":8349", ":8341", + ":8340", ":8339", + ":8338", ":8336", ":8332", - ":8346", - ":8330", + ":8331", ":8350", + ":8330", + ":8329", ":8328", - ":8327", - ":8354", - ":8326", - ":8357", - ":8324", - ":8335", - ":8344", ":8325", - ":8322", - ":8340", - ":8355", + ":8358", + ":8344", ":8323", - ":8359", - ":8353", - ":8319", - ":8352", - ":8349", - ":8318", - ":8334", ":8337", - ":8345", - ":8321", + ":8360", ":8333", + ":8334", + ":8321", + ":8322", + ":8320", + ":8326", + ":8319", + ":8355", + ":8335", + ":8356", + ":8318", + ":8346", + ":8354", + ":8353", ":8317", - ":8329", + ":8327", ":8316", - ":8331", + ":8324", ":8315", - ":8338", - ":8342", - ":8320", + ":8345", ":8343", ":8315#out:1", ":8316#out:1", @@ -905,15 +788,15 @@ "sameAsElement":true }, { - "hid":14, + "hid":11, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "parent":3, "children":[ ], - "name":"F01_06_Electrical_Angle_Estimation", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_06_Electrical_Angle_Estimation", - "label":"F01_06_Electrical_Angle_Estimation", + "name":"F01_05_Electrical_Angle_Estimation", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_05_Electrical_Angle_Estimation", + "label":"F01_05_Electrical_Angle_Estimation", "icon":"WebViewIcon1", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.svg", "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8384_d.png", @@ -940,28 +823,28 @@ ":8413", ":8416", ":8391", - ":8421", ":8420", ":8418", ":8417", ":9660", ":8412", - ":8411", - ":8405", + ":8404", ":8400", - ":9664", + ":8405", ":8398", - ":8396", - ":8393", - ":8392", - ":8410", - ":8395", - ":8389", ":8397", + ":9664", + ":8395", ":8394", ":8403", + ":8421", + ":8393", + ":8392", ":9665", - ":8404", + ":8389", + ":8396", + ":8410", + ":8411", ":8385#out:1", ":8386#out:1", ":8399#out:1", @@ -996,13 +879,13 @@ "sameAsElement":true }, { - "hid":15, + "hid":12, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "parent":2, "children":[ - 16, - 25 + 13, + 22 ], "name":"F02_Diagnostics", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics", @@ -1025,48 +908,48 @@ ":8499", ":8497", ":8527", - ":8520", - ":8524", - ":8517", + ":8515", ":9398", ":8514", ":8510", - ":8525", - ":8508", - ":9406", + ":8509", + ":8521", + ":9404", ":9395", + ":8524", + ":8508", ":9397", - ":8500", - ":8509", - ":8503", + ":8525", + ":9405", ":8491", - ":8504", - ":8492", - ":8487", + ":8494", ":9407", + ":9408", + ":8487", ":8486", + ":8484", + ":9400", + ":8483", + ":8503", + ":8504", + ":8500", + ":8482", + ":8492", ":9402", - ":8480", ":8479", - ":8478", - ":8521", ":8519", - ":9412", - ":9410", - ":9404", - ":8484", - ":9408", - ":8515", - ":9400", + ":8478", + ":9406", + ":8520", ":9403", - ":8474", + ":9412", + ":9396", ":9394", - ":8494", ":8493", - ":9396", - ":9405", - ":8483", - ":8482", + ":8517", + ":8480", + ":9410", + ":8474", ":9401", ":8497#out:1", ":8470#out:1", @@ -1110,15 +993,15 @@ "sameAsElement":true }, { - "hid":16, + "hid":13, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "parent":15, + "parent":12, "children":[ - 17, + 14, + 15, 18, - 21, - 24 + 21 ], "name":"Debounce_Filter", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter", @@ -1128,40 +1011,40 @@ "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:2507", ":8486:2509", - ":8486:2473", ":8486:2467", - ":8486:2466", ":8486:2465", - ":8486:2496", - ":8486:2464", - ":8486:2462", + ":8486:2463", ":8486:2461", - ":8486:2460", ":8486:2459", + ":8486:2464", + ":8486:2452", ":8486:2458", - ":8486:2472", - ":8486:2456", - ":8486:2455", ":8486:2454", - ":8486:2453", ":8486:2451", - ":8486:2450", - ":8486:2448", - ":8486:2463", ":8486:2449", - ":8486:2423", - ":8486:2452", + ":8486:2466", + ":8486:2448", + ":8486:2456", ":8486:2428", - ":8486:2421", + ":8486:2473", + ":8486:2457", + ":8486:2472", + ":8486:2460", + ":8486:2423", ":8486:2422", + ":8486:2455", + ":8486:2421", + ":8486:2453", + ":8486:2450", ":8486:2420", - ":8486:2457", - ":8486:2469", + ":8486:2462", ":8486:2468", - ":8486:2470", ":8486:2471", + ":8486:2470", + ":8486:2469", ":8486:2507#out:1", ":8486:2422#out:1", ":8486:2421#out:1", @@ -1195,10 +1078,10 @@ "sameAsElement":true }, { - "hid":17, + "hid":14, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2423", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2423", - "parent":16, + "parent":13, "children":[ ], "name":"Default", @@ -1218,12 +1101,12 @@ "sameAsElement":true }, { - "hid":18, + "hid":15, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", - "parent":16, + "parent":13, "children":[ - 19 + 16 ], "name":"Dequalification", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Dequalification", @@ -1234,24 +1117,24 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2428_d.json", "elements":[ ":8486:2447", + ":8486:2445", ":8486:2443", - ":8486:2442", - ":8486:2444", - ":8486:2440", + ":8486:2446", + ":8486:2441", ":8486:2439", - ":8486:2437", - ":8486:2438", - ":8486:2433", + ":8486:2436", + ":8486:2440", + ":8486:2435", + ":8486:2444", + ":8486:2442", ":8486:2432", ":8486:2431", - ":8486:2435", - ":8486:2436", - ":8486:2434", - ":8486:2430", - ":8486:2441", + ":8486:2437", + ":8486:2433", + ":8486:2438", ":8486:2429", - ":8486:2446", - ":8486:2445", + ":8486:2430", + ":8486:2434", ":8486:2438#out:1", ":8486:2429#out:1", ":8486:2430#out:1", @@ -1269,12 +1152,12 @@ "sameAsElement":true }, { - "hid":19, + "hid":16, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", - "parent":18, + "parent":15, "children":[ - 20 + 17 ], "name":"Counter", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Dequalification/Counter", @@ -1287,10 +1170,10 @@ ":8486:2435:2418", ":8486:2435:2515", ":8486:2435:2415", - ":8486:2435:2413", ":8486:2435:2414", - ":8486:2435:2412", + ":8486:2435:2413", ":8486:2435:2416", + ":8486:2435:2412", ":8486:2435:2515#out:1", ":8486:2435:2415#out:1", ":8486:2435:2413#out:1", @@ -1301,10 +1184,10 @@ "sameAsElement":true }, { - "hid":20, + "hid":17, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2515", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435:2515", - "parent":19, + "parent":16, "children":[ ], "name":"rst_Delay", @@ -1330,12 +1213,12 @@ "sameAsElement":true }, { - "hid":21, + "hid":18, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "parent":16, + "parent":13, "children":[ - 22 + 19 ], "name":"Qualification", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Qualification", @@ -1345,25 +1228,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:2490", ":8486:2489", - ":8486:2487", - ":8486:2492", - ":8486:2485", - ":8486:2484", - ":8486:2480", ":8486:2486", + ":8486:2485", + ":8486:2492", ":8486:2482", + ":8486:2487", + ":8486:2480", ":8486:2479", - ":8486:2483", ":8486:2478", ":8486:2477", + ":8486:2490", + ":8486:2481", + ":8486:2483", ":8486:2476", ":8486:2488", ":8486:2475", - ":8486:2481", ":8486:2474", + ":8486:2491", + ":8486:2484", ":8486:2480#out:1", ":8486:2491#out:1", ":8486:2481#out:1", @@ -1381,12 +1264,12 @@ "sameAsElement":true }, { - "hid":22, + "hid":19, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480", - "parent":21, + "parent":18, "children":[ - 23 + 20 ], "name":"Counter", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Qualification/Counter", @@ -1397,11 +1280,11 @@ "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8486_2480_d.json", "elements":[ ":8486:2480:2418", - ":8486:2480:2515", ":8486:2480:2416", ":8486:2480:2415", ":8486:2480:2414", ":8486:2480:2413", + ":8486:2480:2515", ":8486:2480:2412", ":8486:2480:2515#out:1", ":8486:2480:2415#out:1", @@ -1413,10 +1296,10 @@ "sameAsElement":true }, { - "hid":23, + "hid":20, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2515", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2515", - "parent":22, + "parent":19, "children":[ ], "name":"rst_Delay", @@ -1442,10 +1325,10 @@ "sameAsElement":true }, { - "hid":24, + "hid":21, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2507", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2507", - "parent":16, + "parent":13, "children":[ ], "name":"either_edge", @@ -1467,10 +1350,10 @@ "sameAsElement":true }, { - "hid":25, + "hid":22, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8519", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8519", - "parent":15, + "parent":12, "children":[ ], "name":"either_edge", @@ -1492,13 +1375,14 @@ "sameAsElement":true }, { - "hid":26, + "hid":23, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "parent":2, "children":[ - 27, - 28 + 24, + 25, + 26 ], "name":"F03_Control_Mode_Manager", "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager", @@ -1510,32 +1394,48 @@ "elements":[ ":8655", ":8634", + ":10029", ":8654", + ":8651", ":9423", + ":10024", ":8647", - ":8643", - ":8642", - ":8633", + ":8645", + ":10019", + ":8640", ":8639", + ":10017", + ":8633", ":8632", + ":10028", + ":8643", + ":9996", ":8630", - ":8628", - ":8646", + ":10023", ":9424", - ":8625", + ":9997", ":8624", ":8636", + ":9995", + ":9953", ":8603", - ":8635", - ":8651", + ":8642", ":8546", + ":10022", + ":10018", + ":8650", + ":8539", + ":8628", + ":10256", + ":10021", ":8537", + ":9994", + ":10020", ":9422", - ":8640", - ":8650", + ":8625", ":8536", - ":8539", - ":8645", + ":8635", + ":8646", ":8634#out:1", ":8537#out:1", ":8625#out:1", @@ -1555,15 +1455,25 @@ ":8536#out:1", ":8628#out:1", ":9422#out:1", - ":9424#out:1" + ":9424#out:1", + ":9995#out:1", + ":9994#out:1", + ":9996#out:1", + ":9953#out:1", + ":10017#out:1", + ":10018#out:1", + ":10020#out:1", + ":10022#out:1", + ":10021#out:1", + ":10028#out:1" ], "sameAsElement":true }, { - "hid":27, + "hid":24, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8546", - "parent":26, + "parent":23, "children":[ ], "name":"F03_01_Mode_Transition_Calculation", @@ -1576,58 +1486,58 @@ "elements":[ ":8601", ":8602", - ":8599", - ":8594", - ":8593", - ":8591", + ":8600", + ":8598", + ":8595", + ":8592", ":8590", + ":8586", + ":8585", + ":8584", ":8589", - ":8597", - ":8587", - ":8583", - ":8582", ":8580", - ":8600", + ":8593", + ":8591", ":8571", - ":9421", ":8581", - ":8585", + ":8568", + ":8573", + ":8564", + ":8566", + ":8583", ":8569", - ":8584", + ":8561", + ":8599", + ":8582", ":8563", - ":9419", + ":8572", ":8560", - ":8562", ":8559", - ":8586", - ":8561", - ":8572", - ":8592", + ":8558", + ":8587", + ":8570", + ":8556", ":8554", - ":8564", - ":8568", + ":8562", ":8553", - ":8598", - ":8555", ":8565", - ":8552", ":8551", - ":8573", + ":9419", + ":9421", + ":8549", ":8548", - ":8566", - ":8595", + ":8555", ":9420", - ":8549", ":8547", - ":8570", - ":8558", - ":8556", - ":8574", - ":8575", + ":8597", + ":8594", + ":8552", + ":8576", ":8577", ":8578", + ":8574", ":8579", - ":8576", + ":8575", ":8587#out:1", ":8593#out:1", ":8594#out:1", @@ -1671,10 +1581,10 @@ "sameAsElement":true }, { - "hid":28, + "hid":25, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8603", - "parent":26, + "parent":23, "children":[ ], "name":"F03_02_Control_Mode_Manager", @@ -1685,202 +1595,690 @@ "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8603_d.json", "elements":[ - ":8603:1", ":8603:3", ":8603:28", ":8603:6", ":8603:4", - ":8603:30", ":8603:33", + ":8603:30", + ":8603:32", ":8603:12", ":8603:9", ":8603:31", - ":8603:32", - ":8603:13", + ":8603:1", ":8603:2", - ":8603:14" + ":8603:14", + ":8603:13" ], "sameAsElement":false }, + { + "hid":26, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9953", + "parent":23, + "children":[ + 27, + 28, + 29, + 30 + ], + "name":"F03_03_Input_Target_Synthesis", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis", + "label":"F03_03_Input_Target_Synthesis", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9953_d.json", + "elements":[ + ":9993", + ":10003", + ":9992", + ":10449", + ":9937", + ":10013", + ":9999", + ":9981", + ":10004", + ":9985", + ":9980", + ":9979", + ":10002", + ":9978", + ":9982", + ":9986", + ":9977", + ":10005", + ":10000", + ":9984", + ":10014", + ":9983", + ":10015", + ":10016", + ":9988", + ":9956", + ":10007", + ":9987", + ":9998", + ":9955", + ":9957", + ":9954", + ":9957#out:1", + ":9980#out:1", + ":9978#out:1", + ":9986#out:1", + ":9954#out:1", + ":9979#out:1", + ":9988#out:1", + ":9977#out:1", + ":9956#out:1", + ":9987#out:1", + ":9986#out:2", + ":9981#out:1", + ":9955#out:1", + ":9998#out:1", + ":10000#out:1", + ":10002#out:1", + ":10005#out:1", + ":9937#out:1", + ":10007#out:1", + ":10013#out:1", + ":10015#out:1", + ":10002#out:2", + ":10016#out:1", + ":10449#out:1" + ], + "sameAsElement":true + }, + { + "hid":27, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9988", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9988", + "parent":26, + "children":[ + ], + "name":"Default_Control_Type", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/Default_Control_Type", + "label":"Default_Control_Type", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9988_d.json", + "elements":[ + ":9991", + ":9990", + ":9989", + ":9989#out:1" + ], + "sameAsElement":true + }, + { + "hid":28, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10007", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10007", + "parent":26, + "children":[ + ], + "name":"Default_Mode", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/Default_Mode", + "label":"Default_Mode", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10007_d.json", + "elements":[ + ":10012", + ":10009", + ":10008", + ":10008#out:1" + ], + "sameAsElement":true + }, { "hid":29, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9957", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9957", + "parent":26, + "children":[ + ], + "name":"FOC_Control_Type", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/FOC_Control_Type", + "label":"FOC_Control_Type", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9957_d.json", + "elements":[ + ":9973", + ":9975", + ":9976", + ":9972", + ":9968", + ":9967", + ":9966", + ":9965", + ":9970", + ":9964", + ":9969", + ":9971", + ":9961", + ":9960", + ":9959", + ":9958", + ":9962", + ":9963", + ":9974", + ":9958#out:1", + ":9963#out:1", + ":9959#out:1", + ":9972#out:1", + ":9970#out:1", + ":9973#out:1", + ":9974#out:1", + ":9971#out:1", + ":9969#out:1", + ":9975#out:1", + ":9965#out:1", + ":9962#out:1", + ":9961#out:1", + ":9964#out:1" + ], + "sameAsElement":true + }, + { + "hid":30, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9937", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9937", + "parent":26, + "children":[ + 31, + 34 + ], + "name":"Open_Mode", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/Open_Mode", + "label":"Open_Mode", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9937_d.json", + "elements":[ + ":9952", + ":9950", + ":9949", + ":9947", + ":9948", + ":9944", + ":10006", + ":9941", + ":9943", + ":9945", + ":9940", + ":9942", + ":9939", + ":9951", + ":9938", + ":9938#out:1", + ":9940#out:1", + ":9950#out:1", + ":9945#out:1", + ":9949#out:1", + ":9944#out:1", + ":9948#out:1", + ":9943#out:1", + ":9941#out:1", + ":9942#out:1" + ], + "sameAsElement":true + }, + { + "hid":31, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9948", + "parent":30, + "children":[ + 32, + 33 + ], + "name":"Rate_Limiter", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/Open_Mode/Rate_Limiter", + "label":"Rate_Limiter", + "icon":"WebViewIcon9", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_d.json", + "elements":[ + ":9948:2353", + ":9948:2343", + ":9948:2346", + ":9948:2342", + ":9948:2358", + ":9948:2395", + ":9948:2357", + ":9948:2356", + ":9948:2355", + ":9948:2360", + ":9948:2359", + ":9948:2356#out:1", + ":9948:2342#out:1", + ":9948:2359#out:1", + ":9948:2357#out:1", + ":9948:2343#out:1", + ":9948:2346#out:1", + ":9948:2358#out:1", + ":9948:2355#out:1", + ":9948:2395#out:1" + ], + "sameAsElement":true + }, + { + "hid":32, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", + "parent":31, + "children":[ + ], + "name":"Delay_Init1", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/Open_Mode/Rate_Limiter/Delay_Init1", + "label":"Delay_Init1", + "icon":"WebViewIcon4", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2342_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2342_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2342_d.json", + "elements":[ + ":9948:2342:2337", + ":9948:2342:2335", + ":9948:2342:2339", + ":9948:2342:2334", + ":9948:2342:2340", + ":9948:2342:2341", + ":9948:2342:2512", + ":9948:2342:2335#out:1", + ":9948:2342:2334#out:1", + ":9948:2342:2341#out:1", + ":9948:2342:2340#out:1", + ":9948:2342:2337#out:1", + ":9948:2342:2512#out:1" + ], + "sameAsElement":true + }, + { + "hid":33, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "parent":31, + "children":[ + ], + "name":"Saturation Dynamic", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/Open_Mode/Rate_Limiter/Saturation Dynamic", + "label":"Saturation Dynamic", + "icon":"WebViewIcon3", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9948_2395_d.json", + "elements":[ + ":9948:2395:10", + ":9948:2395:9", + ":9948:2395:8", + ":9948:2395:7", + ":9948:2395:6", + ":9948:2395:5", + ":9948:2395:4", + ":9948:2395:3", + ":9948:2395:2", + ":9948:2395:1", + ":9948:2395:1#out:1", + ":9948:2395:2#out:1", + ":9948:2395:3#out:1", + ":9948:2395:7#out:1", + ":9948:2395:8#out:1", + ":9948:2395:6#out:1", + ":9948:2395:9#out:1" + ], + "sameAsElement":true + }, + { + "hid":34, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9950", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9950", + "parent":30, + "children":[ + ], + "name":"rising_edge_init", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/Open_Mode/rising_edge_init", + "label":"rising_edge_init", + "icon":"WebViewIcon4", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9950_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9950_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9950_d.json", + "elements":[ + ":9950:2364", + ":9950:2363", + ":9950:2362", + ":9950:2363#out:1", + ":9950:2362#out:1" + ], + "sameAsElement":true + }, + { + "hid":35, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10066", "parent":2, "children":[ - 30, - 33, - 35, 36, - 37, - 38, - 43, - 48, - 49, - 54, - 60, - 66 + 37 ], - "name":"F04_Field_Oriented_Control", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control", - "label":"F04_Field_Oriented_Control", + "name":"F04_Field_Weakening", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Weakening", + "label":"F04_Field_Weakening", "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.json", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10066_d.json", "elements":[ - ":9719", - ":9194", - ":9193", - ":9192", - ":8859", - ":8829", - ":8840", - ":8827", - ":8828", - ":8767", - ":8769", - ":8778", - ":8886", - ":8866", - ":8665", - ":8833", - ":8666", - ":8835", - ":9024", - ":9071", - ":9025", - ":9196", + ":10523", + ":10522", + ":10521", + ":10518", + ":10517", + ":10519", + ":10516", + ":10513", + ":10512", + ":10511", + ":10509", + ":10506", + ":10504", + ":10503", + ":10502", + ":10500", + ":10514", + ":10499", + ":10507", + ":10498", + ":10497", + ":10493", + ":10494", + ":10492", + ":10491", + ":10495", + ":10489", + ":10496", + ":10490", + ":10510", + ":10488", + ":10505", + ":10487", + ":10508", + ":10501", + ":10486", + ":10520", + ":10515", + ":10514#out:1", + ":10500#out:1", + ":10513#out:1", + ":10517#out:1", + ":10491#out:1", + ":10506#out:1", + ":10498#out:1", + ":10488#out:1", + ":10493#out:1", + ":10507#out:1", + ":10516#out:1", + ":10492#out:1", + ":10512#out:1", + ":10496#out:1", + ":10511#out:1", + ":10515#out:1", + ":10499#out:1", + ":10508#out:1", + ":10494#out:1", + ":10510#out:1", + ":10490#out:1", + ":10486#out:1", + ":10487#out:1", + ":10518#out:1", + ":10519#out:1", + ":10495#out:1", + ":10509#out:1", + ":10497#out:1" + ], + "sameAsElement":true + }, + { + "hid":36, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10507", + "parent":35, + "children":[ + ], + "name":"Saturation Dynamic", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Weakening/Saturation Dynamic", + "label":"Saturation Dynamic", + "icon":"WebViewIcon3", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10507_d.json", + "elements":[ + ":10507:10", + ":10507:9", + ":10507:8", + ":10507:7", + ":10507:6", + ":10507:5", + ":10507:4", + ":10507:3", + ":10507:2", + ":10507:1", + ":10507:1#out:1", + ":10507:2#out:1", + ":10507:3#out:1", + ":10507:7#out:1", + ":10507:8#out:1", + ":10507:6#out:1", + ":10507:9#out:1" + ], + "sameAsElement":true + }, + { + "hid":37, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10508", + "parent":35, + "children":[ + ], + "name":"Saturation Dynamic1", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Weakening/Saturation Dynamic1", + "label":"Saturation Dynamic1", + "icon":"WebViewIcon3", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10508_d.json", + "elements":[ + ":10508:10", + ":10508:9", + ":10508:8", + ":10508:7", + ":10508:6", + ":10508:5", + ":10508:4", + ":10508:3", + ":10508:2", + ":10508:1", + ":10508:1#out:1", + ":10508:2#out:1", + ":10508:3#out:1", + ":10508:7#out:1", + ":10508:8#out:1", + ":10508:6#out:1", + ":10508:9#out:1" + ], + "sameAsElement":true + }, + { + "hid":38, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "parent":2, + "children":[ + 39, + 42, + 44, + 65, + 66, + 67, + 81, + 82 + ], + "name":"F05_Field_Oriented_Control", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control", + "label":"F05_Field_Oriented_Control", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8658_d.json", + "elements":[ + ":9719", + ":9192", + ":8859", + ":8827", + ":8769", + ":8778", + ":8886", + ":8866", + ":8665", + ":8833", + ":8666", + ":8835", + ":9024", + ":9071", + ":9025", + ":9197", + ":10173", + ":8743", + ":9073", ":9195", - ":9142", - ":9108", ":9072", ":9045", - ":9197", - ":9029", ":9027", - ":8912", + ":9023", + ":9196", + ":8913", + ":10363", ":9713", - ":8862", - ":8857", - ":8853", - ":8848", - ":8847", - ":8845", - ":8842", ":8864", - ":8839", + ":8861", + ":8858", + ":8849", + ":8848", + ":8844", + ":10703", + ":10171", + ":8850", ":8838", - ":8836", - ":8834", - ":8832", - ":8831", - ":9717", - ":8852", - ":8851", - ":8824", - ":8820", - ":8819", - ":8846", - ":8818", - ":9073", - ":8813", - ":8809", - ":8808", - ":8860", - ":8805", - ":9655", - ":8841", - ":8810", - ":9171", - ":8801", + ":8837", + ":10360", + ":10687", + ":10686", + ":8843", + ":10448", + ":10172", + ":10359", + ":10394", + ":10428", + ":8862", + ":10438", + ":8817", + ":10433", ":8811", - ":8825", - ":9023", - ":8802", - ":9715", - ":8814", + ":8810", + ":10395", + ":10440", + ":10431", + ":8807", + ":10362", + ":10743", + ":10439", + ":10728", + ":10726", + ":10444", + ":8796", + ":10707", + ":10445", + ":8798", + ":10697", ":8788", - ":8787", - ":8786", - ":9074", - ":8849", - ":8799", - ":8785", + ":8795", ":8783", + ":8782", ":8781", - ":8798", - ":8779", - ":8791", - ":9026", - ":9718", - ":8789", - ":8812", - ":8861", - ":8793", - ":8771", - ":8770", - ":8774", - ":8844", + ":10446", + ":8776", + ":8775", + ":10436", + ":8772", + ":10430", + ":10698", + ":10701", + ":10432", + ":9028", ":8790", - ":8766", - ":8765", - ":8816", - ":8792", - ":8780", + ":10174", + ":8815", + ":8853", ":8863", - ":9028", - ":8837", - ":8800", - ":8772", - ":8843", - ":8856", - ":9143", + ":10434", + ":10729", + ":10437", ":8797", - ":8830", + ":8668", ":8726", - ":8858", - ":8806", - ":8775", - ":8850", - ":9109", - ":8777", + ":10702", + ":9026", + ":10688", + ":8667", + ":8842", + ":8851", + ":10689", + ":8826", + ":8664", + ":10441", ":8663", - ":8804", - ":8823", - ":8662", - ":8661", - ":8817", - ":8796", + ":10364", + ":8856", + ":8768", ":8784", + ":10691", ":9716", - ":8794", - ":8773", - ":8913", - ":8803", + ":10429", + ":10365", + ":10358", + ":10393", + ":9718", + ":10447", + ":8662", + ":8845", + ":8661", + ":10435", + ":10719", + ":9717", + ":8846", ":8660", - ":8668", - ":8768", - ":8664", - ":8807", - ":8826", - ":8667", - ":8815", - ":8782", - ":8776", - ":8743", + ":8839", + ":10357", + ":8794", ":8659", - ":8795", + ":8825", + ":8857", + ":8786", + ":8806", + ":8787", ":8827#out:1", - ":8828#out:1", - ":8767#out:1", ":8886#out:1", ":8886#out:2", ":8665#out:1", ":8666#out:1", ":8866#out:1", - ":8866#out:2", - ":8866#out:3", ":8668#out:1", ":8668#out:2", ":9024#out:1", @@ -1909,133 +2307,127 @@ ":8726#out:1", ":8726#out:2", ":8815#out:1", - ":8766#out:1", - ":8770#out:1", ":8659#out:1", ":8794#out:1", ":8660#out:1", ":8662#out:1", ":8790#out:1", - ":8779#out:1", - ":8805#out:1", - ":9029#out:1", - ":9109#out:1", - ":9074#out:1", - ":9171#out:1", - ":8765#out:1", - ":8773#out:1", - ":8777#out:1", - ":8774#out:1", - ":8780#out:1", - ":8789#out:1", - ":8791#out:1", - ":8799#out:1", - ":8793#out:1", - ":8792#out:1", - ":8800#out:1", - ":9108#out:1", - ":9108#out:2", - ":9108#out:3", - ":9108#out:4", - ":8801#out:1", - ":8802#out:1", - ":8803#out:1", - ":8804#out:1", ":8806#out:1", - ":8912#out:1", - ":9142#out:1", ":8913#out:3", ":8913#out:4", ":8776#out:1", ":8807#out:1", ":8913#out:2", ":8913#out:1", - ":8808#out:1", - ":8809#out:1", ":8913#out:5", ":8913#out:6", ":8913#out:7", ":8913#out:8", - ":8812#out:1", - ":8813#out:1", - ":8814#out:1", - ":8816#out:1", ":8817#out:1", - ":8913#out:9", - ":8818#out:1", - ":8913#out:10", - ":8819#out:1", - ":8820#out:1", - ":8823#out:1", - ":8824#out:1", + ":8913#out:11", + ":8913#out:12", ":8825#out:1", ":8663#out:1", ":8743#out:1", ":8743#out:2", ":8775#out:1", - ":8743#out:3", - ":8785#out:1", ":8664#out:1", ":9023#out:1", ":9026#out:1", - ":8743#out:4", - ":9143#out:1", - ":9655#out:1", ":8826#out:1", ":8768#out:1", ":9713#out:1", - ":8771#out:1", - ":9715#out:1", ":9716#out:1", - ":9718#out:1" + ":9718#out:1", + ":10173#out:1", + ":10174#out:1", + ":10357#out:1", + ":10358#out:1", + ":10363#out:1", + ":10362#out:1", + ":10365#out:1", + ":10393#out:1", + ":10364#out:1", + ":10364#out:2", + ":10430#out:1", + ":10429#out:1", + ":10428#out:1", + ":10431#out:1", + ":10432#out:1", + ":10433#out:1", + ":10434#out:1", + ":10435#out:1", + ":10436#out:1", + ":10437#out:1", + ":10438#out:1", + ":10439#out:1", + ":10440#out:1", + ":10441#out:1", + ":10444#out:1", + ":10445#out:1", + ":10446#out:1", + ":10447#out:1", + ":10689#out:1", + ":10688#out:1", + ":10691#out:1", + ":10697#out:1", + ":10698#out:1", + ":10701#out:1", + ":10702#out:1", + ":10707#out:1", + ":8913#out:9", + ":10726#out:1", + ":8913#out:10", + ":10729#out:1", + ":10743#out:1" ], "sameAsElement":true }, { - "hid":30, + "hid":39, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8668", - "parent":29, + "parent":38, "children":[ - 31, - 32 + 40, + 41 ], "name":"Clarke_Transform", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Clarke_Transform", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Clarke_Transform", "label":"Clarke_Transform", "icon":"WebViewIcon1", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.svg", "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8668_d.json", "elements":[ - ":8725", ":8723", - ":8722", ":8721", ":8720", + ":8722", ":8718", - ":8724", ":8719", - ":8715", - ":8713", + ":8717", ":8714", + ":8713", + ":8712", + ":8715", ":8711", - ":8710", - ":8707", - ":8708", ":8706", ":8705", + ":8707", + ":8725", ":8704", + ":8708", ":8703", - ":8712", - ":8717", + ":8702", + ":8716", + ":8724", ":8671", ":8709", + ":8686", + ":8710", ":8670", - ":8716", ":8669", - ":8686", - ":8702", ":8686#out:1", ":8705#out:1", ":8704#out:1", @@ -2061,14 +2453,14 @@ "sameAsElement":true }, { - "hid":31, + "hid":40, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8671", - "parent":30, + "parent":39, "children":[ ], "name":"Clarke_PhasesAB", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Clarke_Transform/Clarke_PhasesAB", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Clarke_Transform/Clarke_PhasesAB", "label":"Clarke_PhasesAB", "icon":"WebViewIcon1", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8671_d.svg", @@ -2078,17 +2470,17 @@ ":8685", ":8683", ":8682", - ":8678", + ":8681", + ":8684", + ":8680", + ":8676", ":8675", - ":8679", - ":8677", + ":8678", ":8674", + ":8679", ":8673", - ":8680", - ":8676", ":8672", - ":8684", - ":8681", + ":8677", ":8673#out:1", ":8672#out:1", ":8675#out:1", @@ -2101,14 +2493,14 @@ "sameAsElement":true }, { - "hid":32, + "hid":41, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8686", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8686", - "parent":30, + "parent":39, "children":[ ], "name":"Clarke_PhasesBC", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Clarke_Transform/Clarke_PhasesBC", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Clarke_Transform/Clarke_PhasesBC", "label":"Clarke_PhasesBC", "icon":"WebViewIcon1", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8686_d.svg", @@ -2117,19 +2509,19 @@ "elements":[ ":8701", ":8700", + ":8699", ":8698", ":8697", ":8694", - ":8693", ":8692", ":8691", - ":8690", ":8689", - ":8696", ":8688", - ":8699", + ":8690", + ":8696", ":8687", ":8695", + ":8693", ":8691#out:1", ":8690#out:1", ":8693#out:1", @@ -2143,38 +2535,38 @@ "sameAsElement":true }, { - "hid":33, + "hid":42, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8726", - "parent":29, + "parent":38, "children":[ - 34 + 43 ], "name":"Current_Filtering", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Current_Filtering", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Current_Filtering", "label":"Current_Filtering", "icon":"WebViewIcon1", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.svg", "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8726_d.json", "elements":[ - ":8740", - ":8742", - ":8738", - ":8736", - ":8735", + ":8737", ":8734", - ":8732", - ":8741", + ":8738", + ":8733", ":8731", + ":8729", + ":8740", ":8739", - ":8730", - ":8737", - ":8733", + ":8736", + ":9714", ":8728", - ":8729", + ":8732", + ":8742", + ":8735", + ":8741", ":8727", - ":9714", + ":8730", ":8739#out:1", ":8729#out:2", ":8740#out:1", @@ -2190,28 +2582,28 @@ "sameAsElement":true }, { - "hid":34, + "hid":43, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8738", - "parent":33, + "parent":42, "children":[ ], "name":"Low_Pass_Filter", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Current_Filtering/Low_Pass_Filter", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Current_Filtering/Low_Pass_Filter", "label":"Low_Pass_Filter", "icon":"WebViewIcon9", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.svg", "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.png", "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8738_d.json", "elements":[ - ":8738:2405", + ":8738:2407", ":8738:2406", + ":8738:2405", ":8738:2404", + ":8738:2402", + ":8738:2400", ":8738:2401", - ":8738:2407", ":8738:2403", - ":8738:2400", - ":8738:2402", ":8738:2399", ":8738:2399#out:1", ":8738:2404#out:1", @@ -2225,1602 +2617,1969 @@ "sameAsElement":true }, { - "hid":35, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8743", - "parent":29, + "hid":44, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10364", + "parent":38, "children":[ + 45, + 46, + 51, + 57, + 63 ], - "name":"Field_Weakening", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Field_Weakening", - "label":"Field_Weakening", + "name":"FOC", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC", + "label":"FOC", "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.json", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10364_d.json", "elements":[ - ":8761", - ":8762", - ":8763", - ":8764", - ":8760", - ":8759", - ":8757", - ":8756", - ":8755", - ":8754", - ":8753", - ":8749", - ":8748", - ":8747", - ":8752", - ":9639", - ":9650", - ":8758", - ":9646", - ":8751", - ":9645", - ":9653", - ":9647", - ":9643", - ":9652", - ":9648", - ":8750", - ":9641", - ":9640", - ":9638", - ":9651", - ":8745", - ":9649", - ":9644", - ":9657", - ":8744", - ":9654", - ":9636", - ":8748#out:1", - ":8750#out:1", - ":8753#out:1", - ":8753#out:2", - ":8749#out:1", - ":8747#out:1", - ":8752#out:1", - ":8744#out:1", - ":9640#out:1", - ":8745#out:1", - ":8751#out:1", - ":9636#out:1", - ":9643#out:1", - ":8755#out:1", - ":9645#out:1", - ":8754#out:1", - ":9648#out:1", - ":9647#out:1", - ":8756#out:1", - ":9651#out:1", - ":9654#out:1", - ":9657#out:1", - ":9641#out:1", - ":9653#out:1" + ":10370", + ":9143", + ":9074", + ":9171", + ":10425", + ":10391", + ":10424", + ":10368", + ":10420", + ":8852", + ":10388", + ":10413", + ":10387", + ":10411", + ":9715", + ":10410", + ":10735", + ":10409", + ":10723", + ":9108", + ":8834", + ":10427", + ":8831", + ":8830", + ":10030", + ":8823", + ":10367", + ":8813", + ":8812", + ":8814", + ":8808", + ":10742", + ":8803", + ":10722", + ":10419", + ":8793", + ":8824", + ":8792", + ":8791", + ":8832", + ":10724", + ":8777", + ":10730", + ":8774", + ":8771", + ":10408", + ":8770", + ":9109", + ":8766", + ":8765", + ":8809", + ":10366", + ":10417", + ":10416", + ":10720", + ":10423", + ":10721", + ":10422", + ":8816", + ":10407", + ":8780", + ":8800", + ":10369", + ":10415", + ":10398", + ":10414", + ":10405", + ":8799", + ":8773", + ":10404", + ":8789", + ":8802", + ":10397", + ":8779", + ":10402", + ":8912", + ":10734", + ":8801", + ":10418", + ":10421", + ":8804", + ":9029", + ":10372", + ":10403", + ":10412", + ":8841", + ":10406", + ":10426", + ":10371", + ":10373", + ":8766#out:1", + ":8770#out:1", + ":8779#out:1", + ":9029#out:1", + ":9109#out:1", + ":9074#out:1", + ":9171#out:1", + ":8765#out:1", + ":8773#out:1", + ":8777#out:1", + ":8774#out:1", + ":8780#out:1", + ":8789#out:1", + ":8791#out:1", + ":8799#out:1", + ":8793#out:1", + ":8792#out:1", + ":8800#out:1", + ":9108#out:1", + ":9108#out:2", + ":9108#out:3", + ":9108#out:4", + ":8801#out:1", + ":8802#out:1", + ":8803#out:1", + ":8804#out:1", + ":8912#out:1", + ":8808#out:1", + ":8809#out:1", + ":8812#out:1", + ":8813#out:1", + ":8814#out:1", + ":8816#out:1", + ":8823#out:1", + ":8824#out:1", + ":9143#out:1", + ":8771#out:1", + ":9715#out:1", + ":10030#out:1", + ":10367#out:1", + ":10369#out:1", + ":10373#out:1", + ":10372#out:1", + ":10371#out:1", + ":10397#out:1", + ":10407#out:1", + ":10406#out:1", + ":10404#out:1", + ":10402#out:1", + ":10403#out:1", + ":10405#out:1", + ":10415#out:1", + ":10414#out:1", + ":10417#out:1", + ":10416#out:1", + ":10423#out:1", + ":10422#out:1", + ":10426#out:1", + ":10720#out:1", + ":10721#out:1", + ":10724#out:1", + ":10730#out:1", + ":10734#out:1", + ":10742#out:1" ], "sameAsElement":true }, { - "hid":36, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8866", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8866", - "parent":29, + "hid":45, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9029", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9029", + "parent":44, "children":[ ], - "name":"Inv_Clarke_Transform", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Inv_Clarke_Transform", - "label":"Inv_Clarke_Transform", + "name":"Open_Mode", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Open_Mode", + "label":"Open_Mode", "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.json", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.json", "elements":[ - ":8884", - ":8885", - ":8868", - ":8882", - ":8867", - ":8881", - ":8883", - ":8878", - ":8876", - ":8874", - ":8873", - ":8875", - ":8880", - ":8879", - ":8877", - ":8871", - ":8872", - ":8870", - ":8869", - ":8880#out:1", - ":8879#out:1", - ":8872#out:1", - ":8874#out:1", - ":8867#out:1", - ":8868#out:1", - ":8869#out:1", - ":8870#out:1", - ":8876#out:1", - ":8871#out:3", - ":8871#out:2", - ":8873#out:1", - ":8871#out:1", - ":8877#out:1", - ":8878#out:1", - ":8875#out:1" + ":9044", + ":9031", + ":9043", + ":9030", + ":9030#out:1" ], "sameAsElement":true }, { - "hid":37, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8886", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8886", - "parent":29, + "hid":46, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "parent":44, "children":[ + 47 ], - "name":"Inv_Park_Transform", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Inv_Park_Transform", - "label":"Inv_Park_Transform", + "name":"Speed_Mode", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Speed_Mode", + "label":"Speed_Mode", "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.json", - "elements":[ - ":8911", - ":8888", - ":8910", - ":8887", - ":8909", - ":8889", - ":8890", - ":8908", - ":8907", - ":8904", - ":8903", - ":8905", - ":8902", - ":8901", - ":8900", - ":8899", - ":8896", - ":8895", - ":8906", - ":8897", - ":8891", - ":8893", - ":8898", - ":8892", - ":8894", - ":8889#out:1", - ":8888#out:1", - ":8887#out:1", - ":8890#out:1", - ":8896#out:1", - ":8895#out:1", - ":8902#out:1", - ":8899#out:1", - ":8891#out:1", - ":8897#out:1", - ":8898#out:1", - ":8892#out:1", - ":8893#out:1", - ":8900#out:1", - ":8894#out:1", - ":8901#out:1", - ":8907#out:1", - ":8908#out:1" + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.json", + "elements":[ + ":9709", + ":9106", + ":9105", + ":9101", + ":9093", + ":9092", + ":9091", + ":9095", + ":9090", + ":9089", + ":9087", + ":10714", + ":9094", + ":9081", + ":10455", + ":9104", + ":9078", + ":9088", + ":9076", + ":9082", + ":9075", + ":9077", + ":9087#out:1", + ":9075#out:1", + ":9076#out:1", + ":9077#out:1", + ":9078#out:1", + ":9081#out:1", + ":9088#out:1", + ":9101#out:1", + ":9105#out:1", + ":9104#out:1", + ":9090#out:1", + ":9089#out:1", + ":10455#out:1", + ":10714#out:1" ], "sameAsElement":true }, { - "hid":38, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8913", - "parent":29, + "hid":47, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10455", + "parent":46, "children":[ - 39, - 41 + 48, + 49, + 50 ], - "name":"Motor_Limitations", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Motor_Limitations", - "label":"Motor_Limitations", - "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.json", + "name":"PI_clamp_fixdt", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Speed_Mode/PI_clamp_fixdt", + "label":"PI_clamp_fixdt", + "icon":"WebViewIcon9", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_d.json", "elements":[ - ":9018", - ":9019", - ":9020", - ":9021", - ":9022", - ":9017", - ":9012", - ":9010", - ":9009", - ":9005", - ":9004", - ":9003", - ":9000", - ":8999", - ":8997", - ":9007", - ":8987", - ":8986", - ":9002", - ":8984", - ":8983", - ":8985", - ":9001", - ":8978", - ":8998", - ":8976", - ":8973", - ":8972", - ":8971", - ":8969", - ":8968", - ":8967", - ":8961", - ":8960", - ":8959", - ":8958", - ":9014", - ":8953", - ":8957", - ":8952", - ":8951", - ":8947", - ":8946", - ":8966", - ":8944", - ":8948", - ":8949", - ":8943", - ":8942", - ":8955", - ":8938", - ":8937", - ":8935", - ":8975", - ":8934", - ":8970", - ":9006", - ":9732", - ":9733", - ":8964", - ":8956", - ":8923", - ":8924", - ":8954", - ":8939", - ":8950", - ":8918", - ":8919", - ":8974", - ":8920", - ":8917", - ":8962", - ":9013", - ":8916", - ":8965", - ":8963", - ":8945", - ":8915", - ":8936", - ":9011", - ":8922", - ":9008", - ":8977", - ":8914", - ":8921", - ":8979", - ":8980", - ":8981", - ":8999#out:1", - ":8947#out:1", - ":8935#out:1", - ":8959#out:1", - ":8997#out:1", - ":8934#out:1", - ":8915#out:1", - ":8916#out:1", - ":8946#out:1", - ":8950#out:1", - ":8957#out:1", - ":8958#out:1", - ":9002#out:1", - ":9733#out:1", - ":8956#out:1", - ":9004#out:1", - ":8953#out:1", - ":8951#out:1", - ":8954#out:1", - ":8955#out:1", - ":8917#out:1", - ":8939#out:1", - ":9005#out:1", - ":8960#out:1", - ":8918#out:1", - ":8944#out:1", - ":8914#out:1", - ":8983#out:1", - ":8948#out:1", - ":8981#out:1", - ":8984#out:1", - ":8920#out:1", - ":8921#out:1", - ":8923#out:1", - ":8922#out:1", - ":8986#out:1", - ":8980#out:1", - ":8949#out:1", - ":8985#out:1", - ":8936#out:1", - ":8938#out:1", - ":8937#out:1", - ":8924#out:1", - ":8945#out:1", - ":8942#out:1", - ":8943#out:1", - ":8987#out:1", - ":8978#out:1", - ":8979#out:1", - ":9000#out:1", - ":8998#out:1", - ":9001#out:1", - ":8919#out:1", - ":8952#out:1", - ":9732#out:1", - ":9003#out:1" + ":10455:2817", + ":10455:2781", + ":10455:2794", + ":10455:2795", + ":10455:2833", + ":10455:2832", + ":10455:2785", + ":10455:2779", + ":10455:2778", + ":10455:2846", + ":10455:2815", + ":10455:2814", + ":10455:2791", + ":10455:2845", + ":10455:2733", + ":10455:2783", + ":10455:2771", + ":10455:2773", + ":10455:2816", + ":10455:2732", + ":10455:2770", + ":10455:2769", + ":10455:2776", + ":10455:2844", + ":10455:2791#out:2", + ":10455:2846#out:1", + ":10455:2844#out:1", + ":10455:2833#out:1", + ":10455:2832#out:1", + ":10455:2817#out:1", + ":10455:2816#out:1", + ":10455:2814#out:1", + ":10455:2781#out:1", + ":10455:2783#out:1", + ":10455:2815#out:1", + ":10455:2791#out:3", + ":10455:2791#out:1", + ":10455:2733#out:1", + ":10455:2732#out:1", + ":10455:2770#out:1", + ":10455:2779#out:1", + ":10455:2771#out:1", + ":10455:2778#out:1", + ":10455:2776#out:1", + ":10455:2773#out:1", + ":10455:2769#out:1" ], "sameAsElement":true }, { - "hid":39, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8924", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8924", - "parent":38, + "hid":48, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", + "parent":47, "children":[ - 40 ], - "name":"Current_Limit_Protection", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Motor_Limitations/Current_Limit_Protection", - "label":"Current_Limit_Protection", + "name":"Clamping_circuit", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Speed_Mode/PI_clamp_fixdt/Clamping_circuit", + "label":"Clamping_circuit", "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8924_d.json", - "elements":[ - ":8932", - ":8931", - ":8928", - ":8926", - ":8930", - ":8925", - ":8929", - ":8933", - ":8927", - ":8931#out:1", - ":8925#out:1", - ":8932#out:1", - ":8930#out:1", - ":8926#out:1", - ":8927#out:1", - ":8929#out:1" + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2816_d.json", + "elements":[ + ":10455:2819", + ":10455:2818", + ":10455:2831", + ":10455:2840", + ":10455:2836", + ":10455:2843", + ":10455:2839", + ":10455:2841", + ":10455:2837", + ":10455:2838", + ":10455:2843#out:1", + ":10455:2838#out:1", + ":10455:2841#out:1", + ":10455:2840#out:1", + ":10455:2836#out:1", + ":10455:2839#out:1", + ":10455:2837#out:1", + ":10455:2819#out:1", + ":10455:2818#out:1" ], "sameAsElement":true }, { - "hid":40, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8930", - "parent":39, + "hid":49, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", + "parent":47, "children":[ ], - "name":"Saturation Dynamic", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Motor_Limitations/Current_Limit_Protection/Saturation Dynamic", - "label":"Saturation Dynamic", - "icon":"WebViewIcon3", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8930_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8930_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8930_d.json", - "elements":[ - ":8930:10", - ":8930:9", - ":8930:8", - ":8930:7", - ":8930:6", - ":8930:5", - ":8930:4", - ":8930:3", - ":8930:2", - ":8930:1", - ":8930:1#out:1", - ":8930:2#out:1", - ":8930:3#out:1", - ":8930:7#out:1", - ":8930:8#out:1", - ":8930:6#out:1", - ":8930:9#out:1" + "name":"Integrator", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Speed_Mode/PI_clamp_fixdt/Integrator", + "label":"Integrator", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2779_d.json", + "elements":[ + ":10455:2789", + ":10455:2790", + ":10455:2788", + ":10455:2787", + ":10455:2786", + ":10455:2787#out:1", + ":10455:2789#out:1", + ":10455:2788#out:1", + ":10455:2786#out:1" ], "sameAsElement":true }, { - "hid":41, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8987", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8987", - "parent":38, + "hid":50, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", + "parent":47, "children":[ - 42 ], - "name":"Speed_Limit_Protection", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Motor_Limitations/Speed_Limit_Protection", - "label":"Speed_Limit_Protection", - "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8987_d.json", - "elements":[ - ":8996", - ":8995", - ":8994", - ":8992", - ":8991", - ":8990", - ":8993", - ":8989", - ":8988", - ":8993#out:1", - ":8990#out:1", - ":8994#out:1", - ":8989#out:1", - ":8995#out:1", - ":8988#out:1", - ":8992#out:1" + "name":"Saturation_hit", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Speed_Mode/PI_clamp_fixdt/Saturation_hit", + "label":"Saturation_hit", + "icon":"WebViewIcon9", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10455_2791_d.json", + "elements":[ + ":10455:2791:2709", + ":10455:2791:2707", + ":10455:2791:2377", + ":10455:2791:2849", + ":10455:2791:2710", + ":10455:2791:2701", + ":10455:2791:2704", + ":10455:2791:2700", + ":10455:2791:2699", + ":10455:2791:2848", + ":10455:2791:2849#out:1", + ":10455:2791:2701#out:1", + ":10455:2791:2704#out:1", + ":10455:2791:2707#out:1", + ":10455:2791:2699#out:1", + ":10455:2791:2700#out:1", + ":10455:2791:2848#out:1" ], "sameAsElement":true }, { - "hid":42, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8993", - "parent":41, + "hid":51, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "parent":44, "children":[ + 52, + 56 ], - "name":"Saturation Dynamic1", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Motor_Limitations/Speed_Limit_Protection/Saturation Dynamic1", - "label":"Saturation Dynamic1", - "icon":"WebViewIcon3", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8993_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8993_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8993_d.json", - "elements":[ - ":8993:10", - ":8993:9", - ":8993:8", - ":8993:7", - ":8993:6", - ":8993:5", - ":8993:4", - ":8993:3", - ":8993:2", - ":8993:1", - ":8993:1#out:1", - ":8993:2#out:1", - ":8993:3#out:1", - ":8993:7#out:1", - ":8993:8#out:1", - ":8993:6#out:1", - ":8993:9#out:1" + "name":"Torque_Mode", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Torque_Mode", + "label":"Torque_Mode", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.json", + "elements":[ + ":9141", + ":10831", + ":10834", + ":10829", + ":10844", + ":9131", + ":9130", + ":9127", + ":10841", + ":9126", + ":9125", + ":9138", + ":10840", + ":10821", + ":10820", + ":10819", + ":10836", + ":10846", + ":10822", + ":10838", + ":10823", + ":10845", + ":9139", + ":9115", + ":9114", + ":9129", + ":10843", + ":10842", + ":9111", + ":9113", + ":10828", + ":9117", + ":9110", + ":9128", + ":9112", + ":9116", + ":9111#out:1", + ":9110#out:1", + ":9112#out:1", + ":9113#out:1", + ":9115#out:1", + ":9114#out:1", + ":9116#out:1", + ":10834#out:1", + ":10829#out:1", + ":10820#out:1", + ":10821#out:1", + ":10831#out:1", + ":10819#out:1", + ":10828#out:1", + ":10836#out:1", + ":10838#out:1", + ":10840#out:1", + ":10823#out:1", + ":10822#out:1", + ":10842#out:1", + ":10841#out:1", + ":10845#out:1", + ":10846#out:1", + ":9138#out:1", + ":9139#out:1" ], "sameAsElement":true }, { - "hid":43, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9029", - "parent":29, + "hid":52, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10828", + "parent":51, "children":[ - 44, - 47 + 53, + 54, + 55 ], - "name":"Open_Mode", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Open_Mode", - "label":"Open_Mode", + "name":"PI_clamp_fixdt", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Torque_Mode/PI_clamp_fixdt", + "label":"PI_clamp_fixdt", + "icon":"WebViewIcon9", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_d.json", + "elements":[ + ":10828:2785", + ":10828:2817", + ":10828:2814", + ":10828:2781", + ":10828:2779", + ":10828:2795", + ":10828:2791", + ":10828:2846", + ":10828:2833", + ":10828:2776", + ":10828:2845", + ":10828:2816", + ":10828:2773", + ":10828:2733", + ":10828:2732", + ":10828:2794", + ":10828:2771", + ":10828:2815", + ":10828:2783", + ":10828:2769", + ":10828:2778", + ":10828:2832", + ":10828:2770", + ":10828:2844", + ":10828:2791#out:2", + ":10828:2846#out:1", + ":10828:2844#out:1", + ":10828:2833#out:1", + ":10828:2832#out:1", + ":10828:2817#out:1", + ":10828:2816#out:1", + ":10828:2814#out:1", + ":10828:2781#out:1", + ":10828:2783#out:1", + ":10828:2815#out:1", + ":10828:2791#out:3", + ":10828:2791#out:1", + ":10828:2733#out:1", + ":10828:2732#out:1", + ":10828:2770#out:1", + ":10828:2779#out:1", + ":10828:2771#out:1", + ":10828:2778#out:1", + ":10828:2776#out:1", + ":10828:2773#out:1", + ":10828:2769#out:1" + ], + "sameAsElement":true + }, + { + "hid":53, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", + "parent":52, + "children":[ + ], + "name":"Clamping_circuit", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Torque_Mode/PI_clamp_fixdt/Clamping_circuit", + "label":"Clamping_circuit", "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9029_d.json", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2816_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2816_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2816_d.json", "elements":[ - ":9044", - ":9043", - ":9040", - ":9041", - ":9037", - ":9036", - ":9042", - ":9034", - ":9035", - ":9039", - ":9033", - ":9032", - ":9031", - ":9030", - ":9038", - ":9030#out:1", - ":9032#out:1", - ":9042#out:1", - ":9037#out:1", - ":9041#out:1", - ":9034#out:1", - ":9036#out:1", - ":9040#out:1", - ":9035#out:1", - ":9033#out:1" + ":10828:2819", + ":10828:2818", + ":10828:2831", + ":10828:2837", + ":10828:2841", + ":10828:2836", + ":10828:2840", + ":10828:2839", + ":10828:2843", + ":10828:2838", + ":10828:2843#out:1", + ":10828:2838#out:1", + ":10828:2841#out:1", + ":10828:2840#out:1", + ":10828:2836#out:1", + ":10828:2839#out:1", + ":10828:2837#out:1", + ":10828:2819#out:1", + ":10828:2818#out:1" ], "sameAsElement":true }, { - "hid":44, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9040", - "parent":43, + "hid":54, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", + "parent":52, "children":[ - 45, - 46 ], - "name":"Rate_Limiter", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Open_Mode/Rate_Limiter", - "label":"Rate_Limiter", + "name":"Integrator", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Torque_Mode/PI_clamp_fixdt/Integrator", + "label":"Integrator", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2779_d.json", + "elements":[ + ":10828:2790", + ":10828:2789", + ":10828:2787", + ":10828:2788", + ":10828:2786", + ":10828:2787#out:1", + ":10828:2789#out:1", + ":10828:2788#out:1", + ":10828:2786#out:1" + ], + "sameAsElement":true + }, + { + "hid":55, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", + "parent":52, + "children":[ + ], + "name":"Saturation_hit", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Torque_Mode/PI_clamp_fixdt/Saturation_hit", + "label":"Saturation_hit", "icon":"WebViewIcon9", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_d.json", - "elements":[ - ":9040:2353", - ":9040:2343", - ":9040:2360", - ":9040:2395", - ":9040:2342", - ":9040:2358", - ":9040:2356", - ":9040:2355", - ":9040:2346", - ":9040:2359", - ":9040:2357", - ":9040:2356#out:1", - ":9040:2342#out:1", - ":9040:2359#out:1", - ":9040:2357#out:1", - ":9040:2343#out:1", - ":9040:2346#out:1", - ":9040:2358#out:1", - ":9040:2355#out:1", - ":9040:2395#out:1" + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10828_2791_d.json", + "elements":[ + ":10828:2791:2710", + ":10828:2791:2377", + ":10828:2791:2709", + ":10828:2791:2707", + ":10828:2791:2849", + ":10828:2791:2704", + ":10828:2791:2700", + ":10828:2791:2848", + ":10828:2791:2701", + ":10828:2791:2699", + ":10828:2791:2849#out:1", + ":10828:2791:2701#out:1", + ":10828:2791:2704#out:1", + ":10828:2791:2707#out:1", + ":10828:2791:2699#out:1", + ":10828:2791:2700#out:1", + ":10828:2791:2848#out:1" ], "sameAsElement":true }, { - "hid":45, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", - "parent":44, + "hid":56, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10829", + "parent":51, "children":[ ], - "name":"Delay_Init1", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Open_Mode/Rate_Limiter/Delay_Init1", - "label":"Delay_Init1", - "icon":"WebViewIcon4", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2342_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2342_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2342_d.json", + "name":"Saturation Dynamic1", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Torque_Mode/Saturation Dynamic1", + "label":"Saturation Dynamic1", + "icon":"WebViewIcon3", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10829_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10829_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10829_d.json", "elements":[ - ":9040:2342:2337", - ":9040:2342:2335", - ":9040:2342:2339", - ":9040:2342:2334", - ":9040:2342:2340", - ":9040:2342:2341", - ":9040:2342:2512", - ":9040:2342:2335#out:1", - ":9040:2342:2334#out:1", - ":9040:2342:2341#out:1", - ":9040:2342:2340#out:1", - ":9040:2342:2337#out:1", - ":9040:2342:2512#out:1" + ":10829:10", + ":10829:9", + ":10829:8", + ":10829:7", + ":10829:6", + ":10829:5", + ":10829:4", + ":10829:3", + ":10829:2", + ":10829:1", + ":10829:1#out:1", + ":10829:2#out:1", + ":10829:3#out:1", + ":10829:7#out:1", + ":10829:8#out:1", + ":10829:6#out:1", + ":10829:9#out:1" ], "sameAsElement":true }, { - "hid":46, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2395", + "hid":57, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "parent":44, + "children":[ + 58, + 62 + ], + "name":"Vd_Calculation", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Vd_Calculation", + "label":"Vd_Calculation", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.json", + "elements":[ + ":9165", + ":9170", + ":9164", + ":10454", + ":9726", + ":9161", + ":9159", + ":9158", + ":9722", + ":9155", + ":9162", + ":9152", + ":9157", + ":9151", + ":9156", + ":9150", + ":9149", + ":9148", + ":9724", + ":9723", + ":9145", + ":9147", + ":9146", + ":9160", + ":9144", + ":9725", + ":9152#out:1", + ":9151#out:1", + ":9144#out:1", + ":9145#out:1", + ":9147#out:1", + ":9146#out:1", + ":9148#out:1", + ":9149#out:1", + ":9164#out:1", + ":9155#out:1", + ":9156#out:1", + ":9165#out:1", + ":9724#out:1", + ":9722#out:1", + ":9725#out:1", + ":9726#out:1", + ":10454#out:1", + ":9723#out:1" + ], + "sameAsElement":true + }, + { + "hid":58, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10454", + "parent":57, + "children":[ + 59, + 60, + 61 + ], + "name":"PI_clamp_fixdt", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Vd_Calculation/PI_clamp_fixdt", + "label":"PI_clamp_fixdt", + "icon":"WebViewIcon9", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_d.json", + "elements":[ + ":10454:2785", + ":10454:2817", + ":10454:2783", + ":10454:2791", + ":10454:2779", + ":10454:2794", + ":10454:2795", + ":10454:2846", + ":10454:2833", + ":10454:2832", + ":10454:2814", + ":10454:2781", + ":10454:2776", + ":10454:2778", + ":10454:2845", + ":10454:2816", + ":10454:2732", + ":10454:2771", + ":10454:2770", + ":10454:2815", + ":10454:2733", + ":10454:2769", + ":10454:2773", + ":10454:2844", + ":10454:2791#out:2", + ":10454:2846#out:1", + ":10454:2844#out:1", + ":10454:2833#out:1", + ":10454:2832#out:1", + ":10454:2817#out:1", + ":10454:2816#out:1", + ":10454:2814#out:1", + ":10454:2781#out:1", + ":10454:2783#out:1", + ":10454:2815#out:1", + ":10454:2791#out:3", + ":10454:2791#out:1", + ":10454:2733#out:1", + ":10454:2732#out:1", + ":10454:2770#out:1", + ":10454:2779#out:1", + ":10454:2771#out:1", + ":10454:2778#out:1", + ":10454:2776#out:1", + ":10454:2773#out:1", + ":10454:2769#out:1" + ], + "sameAsElement":true + }, + { + "hid":59, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", + "parent":58, + "children":[ + ], + "name":"Clamping_circuit", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Vd_Calculation/PI_clamp_fixdt/Clamping_circuit", + "label":"Clamping_circuit", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2816_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2816_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2816_d.json", + "elements":[ + ":10454:2819", + ":10454:2818", + ":10454:2831", + ":10454:2839", + ":10454:2837", + ":10454:2840", + ":10454:2836", + ":10454:2841", + ":10454:2843", + ":10454:2838", + ":10454:2843#out:1", + ":10454:2838#out:1", + ":10454:2841#out:1", + ":10454:2840#out:1", + ":10454:2836#out:1", + ":10454:2839#out:1", + ":10454:2837#out:1", + ":10454:2819#out:1", + ":10454:2818#out:1" + ], + "sameAsElement":true + }, + { + "hid":60, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", + "parent":58, + "children":[ + ], + "name":"Integrator", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Vd_Calculation/PI_clamp_fixdt/Integrator", + "label":"Integrator", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2779_d.json", + "elements":[ + ":10454:2790", + ":10454:2788", + ":10454:2786", + ":10454:2789", + ":10454:2787", + ":10454:2787#out:1", + ":10454:2789#out:1", + ":10454:2788#out:1", + ":10454:2786#out:1" + ], + "sameAsElement":true + }, + { + "hid":61, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", + "parent":58, + "children":[ + ], + "name":"Saturation_hit", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Vd_Calculation/PI_clamp_fixdt/Saturation_hit", + "label":"Saturation_hit", + "icon":"WebViewIcon9", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10454_2791_d.json", + "elements":[ + ":10454:2791:2377", + ":10454:2791:2709", + ":10454:2791:2710", + ":10454:2791:2707", + ":10454:2791:2849", + ":10454:2791:2704", + ":10454:2791:2700", + ":10454:2791:2848", + ":10454:2791:2699", + ":10454:2791:2701", + ":10454:2791:2849#out:1", + ":10454:2791:2701#out:1", + ":10454:2791:2704#out:1", + ":10454:2791:2707#out:1", + ":10454:2791:2699#out:1", + ":10454:2791:2700#out:1", + ":10454:2791:2848#out:1" + ], + "sameAsElement":true + }, + { + "hid":62, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9164", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9164", + "parent":57, "children":[ ], "name":"Saturation Dynamic", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Open_Mode/Rate_Limiter/Saturation Dynamic", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Vd_Calculation/Saturation Dynamic", "label":"Saturation Dynamic", "icon":"WebViewIcon3", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2395_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2395_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9040_2395_d.json", - "elements":[ - ":9040:2395:10", - ":9040:2395:9", - ":9040:2395:8", - ":9040:2395:7", - ":9040:2395:6", - ":9040:2395:5", - ":9040:2395:4", - ":9040:2395:3", - ":9040:2395:2", - ":9040:2395:1", - ":9040:2395:1#out:1", - ":9040:2395:2#out:1", - ":9040:2395:3#out:1", - ":9040:2395:7#out:1", - ":9040:2395:8#out:1", - ":9040:2395:6#out:1", - ":9040:2395:9#out:1" + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9164_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9164_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9164_d.json", + "elements":[ + ":9164:10", + ":9164:9", + ":9164:8", + ":9164:7", + ":9164:6", + ":9164:5", + ":9164:4", + ":9164:3", + ":9164:2", + ":9164:1", + ":9164:1#out:1", + ":9164:2#out:1", + ":9164:3#out:1", + ":9164:7#out:1", + ":9164:8#out:1", + ":9164:6#out:1", + ":9164:9#out:1" ], "sameAsElement":true }, { - "hid":47, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9042", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9042", - "parent":43, + "hid":63, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "parent":44, "children":[ + 64 ], - "name":"rising_edge_init", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Open_Mode/rising_edge_init", - "label":"rising_edge_init", - "icon":"WebViewIcon4", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9042_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9042_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9042_d.json", + "name":"Voltage_Mode", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Voltage_Mode", + "label":"Voltage_Mode", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.json", "elements":[ - ":9042:2364", - ":9042:2363", - ":9042:2362", - ":9042:2363#out:1", - ":9042:2362#out:1" + ":9191", + ":10740", + ":9188", + ":10737", + ":9189", + ":9185", + ":9183", + ":10733", + ":10731", + ":9181", + ":9179", + ":9186", + ":10725", + ":10732", + ":9175", + ":10741", + ":9184", + ":9173", + ":9174", + ":9176", + ":10736", + ":10738", + ":9172", + ":9187", + ":9177", + ":9172#out:1", + ":9181#out:1", + ":9179#out:1", + ":9173#out:1", + ":9174#out:1", + ":9175#out:1", + ":9176#out:1", + ":9189#out:1", + ":9188#out:1", + ":10731#out:1", + ":10725#out:1", + ":10736#out:1", + ":10738#out:1", + ":10733#out:1", + ":10732#out:1", + ":10741#out:1", + ":10740#out:1" ], "sameAsElement":true }, { - "hid":48, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9045", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9045", - "parent":29, + "hid":64, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9188", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9188", + "parent":63, "children":[ ], - "name":"Park_Transform", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Park_Transform", - "label":"Park_Transform", - "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.json", + "name":"Saturation Dynamic1", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Voltage_Mode/Saturation Dynamic1", + "label":"Saturation Dynamic1", + "icon":"WebViewIcon3", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9188_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9188_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9188_d.json", "elements":[ - ":9070", - ":9047", - ":9068", - ":9046", - ":9069", - ":9048", - ":9049", - ":9066", - ":9064", - ":9063", - ":9061", - ":9060", - ":9059", - ":9058", - ":9057", - ":9055", - ":9054", - ":9056", - ":9062", - ":9051", - ":9065", - ":9050", - ":9052", - ":9067", - ":9053", - ":9048#out:1", - ":9047#out:1", - ":9046#out:1", - ":9049#out:1", - ":9054#out:1", - ":9056#out:1", - ":9053#out:1", - ":9050#out:1", - ":9057#out:1", - ":9055#out:1", - ":9067#out:1", - ":9051#out:1", - ":9058#out:1", - ":9059#out:1", - ":9052#out:1", - ":9060#out:1", - ":9061#out:1", - ":9066#out:1" + ":9188:10", + ":9188:9", + ":9188:8", + ":9188:7", + ":9188:6", + ":9188:5", + ":9188:4", + ":9188:3", + ":9188:2", + ":9188:1", + ":9188:1#out:1", + ":9188:2#out:1", + ":9188:3#out:1", + ":9188:7#out:1", + ":9188:8#out:1", + ":9188:6#out:1", + ":9188:9#out:1" ], "sameAsElement":true }, { - "hid":49, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9074", - "parent":29, + "hid":65, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8866", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8866", + "parent":38, "children":[ - 50 ], - "name":"Speed_Mode", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode", - "label":"Speed_Mode", + "name":"Inv_Clarke_Transform", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Inv_Clarke_Transform", + "label":"Inv_Clarke_Transform", "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9074_d.json", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8866_d.json", "elements":[ - ":9709", - ":9107", - ":9104", - ":9101", - ":9100", - ":9728", - ":9094", - ":9093", - ":9092", - ":9091", - ":9089", - ":9087", - ":9102", - ":9078", - ":9083", - ":9106", - ":9081", - ":9095", - ":9084", - ":9077", - ":9082", - ":9076", - ":9088", - ":9105", - ":9090", - ":9075", - ":9087#out:1", - ":9075#out:1", - ":9076#out:1", - ":9077#out:1", - ":9078#out:1", - ":9081#out:1", - ":9102#out:1", - ":9084#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" + ":8884", + ":8885", + ":8868", + ":8867", + ":8881", + ":8879", + ":8878", + ":8875", + ":8874", + ":8877", + ":8873", + ":8880", + ":8872", + ":8876", + ":8870", + ":8869", + ":8880#out:1", + ":8879#out:1", + ":8872#out:1", + ":8874#out:1", + ":8867#out:1", + ":8868#out:1", + ":8869#out:1", + ":8870#out:1", + ":8876#out:1", + ":8873#out:1", + ":8877#out:1", + ":8878#out:1", + ":8875#out:1" ], "sameAsElement":true }, { - "hid":50, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9728", - "parent":49, + "hid":66, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8886", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8886", + "parent":38, "children":[ - 51, - 52, - 53 ], - "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_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:2817", - ":9728:2783", - ":9728:2794", - ":9728:2795", - ":9728:2846", - ":9728:2833", - ":9728:2832", - ":9728:2778", - ":9728:2779", - ":9728:2776", - ":9728:2814", - ":9728:2816", - ":9728:2733", - ":9728:2781", - ":9728:2771", - ":9728:2791", - ":9728:2815", - ":9728:2845", - ":9728:2770", - ":9728:2769", - ":9728:2773", - ":9728:2732", - ":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" + "name":"Inv_Park_Transform", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Inv_Park_Transform", + "label":"Inv_Park_Transform", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8886_d.json", + "elements":[ + ":8911", + ":8888", + ":8910", + ":8887", + ":8909", + ":8889", + ":8890", + ":8908", + ":8905", + ":8904", + ":8903", + ":8902", + ":8901", + ":8900", + ":8899", + ":8897", + ":8906", + ":8894", + ":8895", + ":8893", + ":8907", + ":8898", + ":8891", + ":8892", + ":8896", + ":8889#out:1", + ":8888#out:1", + ":8887#out:1", + ":8890#out:1", + ":8896#out:1", + ":8895#out:1", + ":8902#out:1", + ":8899#out:1", + ":8891#out:1", + ":8897#out:1", + ":8898#out:1", + ":8892#out:1", + ":8893#out:1", + ":8900#out:1", + ":8894#out:1", + ":8901#out:1", + ":8907#out:1", + ":8908#out:1" ], "sameAsElement":true }, { - "hid":51, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", - "parent":50, + "hid":67, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "parent":38, "children":[ + 68, + 70, + 74 ], - "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", + "name":"Motor_Limitations", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations", + "label":"Motor_Limitations", "icon":"WebViewIcon1", - "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:2837", - ":9728:2841", - ":9728:2840", - ":9728:2836", - ":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" + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8913_d.json", + "elements":[ + ":9018", + ":9019", + ":9020", + ":9021", + ":9022", + ":9017", + ":9014", + ":10711", + ":9012", + ":9009", + ":10712", + ":9004", + ":9003", + ":8999", + ":9010", + ":8998", + ":8997", + ":10566", + ":9011", + ":8974", + ":8973", + ":8971", + ":10718", + ":10713", + ":8970", + ":10705", + ":9008", + ":10694", + ":8969", + ":8962", + ":8972", + ":8959", + ":10715", + ":8957", + ":8956", + ":8955", + ":8954", + ":8953", + ":8950", + ":10710", + ":10709", + ":10700", + ":10684", + ":10683", + ":8946", + ":8939", + ":10816", + ":10699", + ":8952", + ":8935", + ":8944", + ":8934", + ":10780", + ":9732", + ":10727", + ":10565", + ":9013", + ":8967", + ":8968", + ":9007", + ":10602", + ":10675", + ":8961", + ":9005", + ":9733", + ":10680", + ":8976", + ":10674", + ":10564", + ":9002", + ":8919", + ":10708", + ":8975", + ":10693", + ":9006", + ":10685", + ":8951", + ":10695", + ":8947", + ":8963", + ":10361", + ":10681", + ":8917", + ":8916", + ":8915", + ":10584", + ":10696", + ":8958", + ":10682", + ":10704", + ":8914", + ":8999#out:1", + ":8947#out:1", + ":8935#out:1", + ":8959#out:1", + ":8997#out:1", + ":8934#out:1", + ":8915#out:1", + ":8916#out:1", + ":8946#out:1", + ":8950#out:1", + ":8957#out:1", + ":8958#out:1", + ":9002#out:1", + ":9733#out:1", + ":8956#out:1", + ":9004#out:1", + ":8953#out:1", + ":8951#out:1", + ":8954#out:1", + ":8955#out:1", + ":8917#out:1", + ":8939#out:1", + ":9005#out:1", + ":8944#out:1", + ":8914#out:1", + ":8998#out:1", + ":8919#out:1", + ":8952#out:1", + ":9732#out:1", + ":9003#out:1", + ":10564#out:1", + ":10565#out:1", + ":10565#out:2", + ":10565#out:3", + ":10674#out:1", + ":10675#out:1", + ":10680#out:1", + ":10683#out:1", + ":10682#out:1", + ":10681#out:1", + ":10684#out:1", + ":10685#out:1", + ":10693#out:1", + ":10695#out:1", + ":10699#out:1", + ":10700#out:1", + ":10704#out:1", + ":10708#out:1", + ":10710#out:1", + ":10709#out:1", + ":10584#out:1", + ":10602#out:1", + ":10566#out:1", + ":10566#out:2", + ":10780#out:1", + ":10816#out:1" ], "sameAsElement":true }, { - "hid":52, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", - "parent":50, + "hid":68, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10584", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10584", + "parent":67, "children":[ + 69 ], - "name":"Integrator", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode/PI_clamp_fixdt_n/Integrator", - "label":"Integrator", + "name":"Speed_Mode_Protection", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Speed_Mode_Protection", + "label":"Speed_Mode_Protection", "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", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10584_d.json", "elements":[ - ":9728:2790", - ":9728:2788", - ":9728:2789", - ":9728:2787", - ":9728:2786", - ":9728:2787#out:1", - ":9728:2789#out:1", - ":9728:2788#out:1", - ":9728:2786#out:1" + ":10600", + ":10662", + ":10594", + ":10587", + ":10586", + ":10597", + ":10591", + ":10585", + ":10661", + ":10585#out:1", + ":10594#out:1", + ":10586#out:1", + ":10587#out:1", + ":10662#out:1", + ":10661#out:1", + ":10597#out:1" ], "sameAsElement":true }, { - "hid":53, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", - "parent":50, + "hid":69, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10594", + "parent":68, "children":[ ], - "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:2709", - ":9728:2791:2707", - ":9728:2791:2849", - ":9728:2791:2377", - ":9728:2791:2704", - ":9728:2791:2848", - ":9728:2791:2700", - ":9728:2791:2710", - ":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" + "name":"Saturation Dynamic", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Speed_Mode_Protection/Saturation Dynamic", + "label":"Saturation Dynamic", + "icon":"WebViewIcon3", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10594_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10594_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10594_d.json", + "elements":[ + ":10594:10", + ":10594:9", + ":10594:8", + ":10594:7", + ":10594:6", + ":10594:5", + ":10594:4", + ":10594:3", + ":10594:2", + ":10594:1", + ":10594:1#out:1", + ":10594:2#out:1", + ":10594:3#out:1", + ":10594:7#out:1", + ":10594:8#out:1", + ":10594:6#out:1", + ":10594:9#out:1" ], "sameAsElement":true }, { - "hid":54, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9109", - "parent":29, + "hid":70, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10602", + "parent":67, "children":[ - 55, - 59 + 71 ], - "name":"Torque_Mode", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode", - "label":"Torque_Mode", + "name":"Torque_Mode_Protection", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Torque_Mode_Protection", + "label":"Torque_Mode_Protection", "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9109_d.json", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10602_d.json", "elements":[ - ":9141", - ":9140", - ":9136", - ":9138", - ":9133", - ":9729", - ":9131", - ":9128", - ":9126", - ":9121", - ":9130", - ":9120", - ":9119", - ":9129", - ":9740", - ":9116", - ":9115", - ":9117", - ":9125", - ":9113", - ":9124", - ":9123", - ":9114", - ":9135", - ":9127", - ":9118", - ":9111", - ":9110", - ":9139", - ":9112", - ":9134", - ":9118#out:1", - ":9111#out:1", - ":9110#out:1", - ":9112#out:1", - ":9113#out:1", - ":9115#out:1", - ":9114#out:1", - ":9120#out:1", - ":9119#out:1", - ":9116#out:1", - ":9134#out:1", - ":9133#out:1", - ":9124#out:1", - ":9123#out:1", - ":9139#out:1", - ":9138#out:1", - ":9135#out:1", - ":9729#out:1", - ":9140#out:1", - ":9740#out:1", - ":9121#out:1", - ":9136#out:1" - ], - "sameAsElement":true - }, - { - "hid":55, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9729", - "parent":54, - "children":[ - 56, - 57, - 58 - ], - "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_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:2785", - ":9729:2817", - ":9729:2814", - ":9729:2783", - ":9729:2791", - ":9729:2779", - ":9729:2795", - ":9729:2846", - ":9729:2832", - ":9729:2778", - ":9729:2794", - ":9729:2833", - ":9729:2845", - ":9729:2732", - ":9729:2771", - ":9729:2781", - ":9729:2776", - ":9729:2770", - ":9729:2815", - ":9729:2773", - ":9729:2733", - ":9729:2816", - ":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" + ":10811", + ":10619", + ":10809", + ":10810", + ":10777", + ":10776", + ":10815", + ":10804", + ":10805", + ":10808", + ":10812", + ":10609", + ":10814", + ":10803", + ":10774", + ":10607", + ":10774#out:1", + ":10607#out:1", + ":10809#out:1", + ":10805#out:1", + ":10803#out:1", + ":10804#out:1", + ":10811#out:1", + ":10810#out:1", + ":10812#out:1", + ":10808#out:1", + ":10814#out:1" ], "sameAsElement":true }, { - "hid":56, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", - "parent":55, + "hid":71, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "parent":70, "children":[ + 72, + 73 ], - "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:2840", - ":9729:2841", - ":9729:2836", - ":9729:2843", - ":9729:2837", - ":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" + "name":"I_backCalc_fixdt", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Torque_Mode_Protection/I_backCalc_fixdt", + "label":"I_backCalc_fixdt", + "icon":"WebViewIcon4", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_d.json", + "elements":[ + ":10808:2892", + ":10808:2877", + ":10808:2895", + ":10808:2891", + ":10808:2889", + ":10808:2855", + ":10808:2894", + ":10808:2854", + ":10808:2893", + ":10808:2890", + ":10808:2851", + ":10808:2869", + ":10808:2853", + ":10808:2892#out:1", + ":10808:2869#out:1", + ":10808:2890#out:1", + ":10808:2893#out:1", + ":10808:2891#out:1", + ":10808:2894#out:1", + ":10808:2877#out:1", + ":10808:2895#out:1", + ":10808:2851#out:1", + ":10808:2853#out:1", + ":10808:2854#out:1", + ":10808:2855#out:1" ], "sameAsElement":true }, { - "hid":57, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", - "parent":55, + "hid":72, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", + "parent":71, "children":[ ], "name":"Integrator", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode/PI_clamp_fixdt_iq/Integrator", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Torque_Mode_Protection/I_backCalc_fixdt/Integrator", "label":"Integrator", "icon":"WebViewIcon1", - "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", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2877_d.json", "elements":[ - ":9729:2789", - ":9729:2787", - ":9729:2790", - ":9729:2788", - ":9729:2786", - ":9729:2787#out:1", - ":9729:2789#out:1", - ":9729:2788#out:1", - ":9729:2786#out:1" + ":10808:2896", + ":10808:2880", + ":10808:2882", + ":10808:2878", + ":10808:2879", + ":10808:2878#out:1", + ":10808:2880#out:1", + ":10808:2896#out:1", + ":10808:2879#out:1" ], "sameAsElement":true }, { - "hid":58, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", - "parent":55, + "hid":73, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "parent":71, "children":[ ], - "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:2377", - ":9729:2791:2709", - ":9729:2791:2849", - ":9729:2791:2848", - ":9729:2791:2704", - ":9729:2791:2710", - ":9729:2791:2700", - ":9729:2791:2707", - ":9729:2791:2699", - ":9729:2791:2701", - ":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" + "name":"Saturation Dynamic1", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Torque_Mode_Protection/I_backCalc_fixdt/Saturation Dynamic1", + "label":"Saturation Dynamic1", + "icon":"WebViewIcon3", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2895_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2895_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10808_2895_d.json", + "elements":[ + ":10808:2895:10", + ":10808:2895:9", + ":10808:2895:8", + ":10808:2895:7", + ":10808:2895:6", + ":10808:2895:5", + ":10808:2895:4", + ":10808:2895:3", + ":10808:2895:2", + ":10808:2895:1", + ":10808:2895:1#out:1", + ":10808:2895:2#out:1", + ":10808:2895:3#out:1", + ":10808:2895:7#out:1", + ":10808:2895:8#out:1", + ":10808:2895:6#out:1", + ":10808:2895:9#out:1" ], "sameAsElement":true }, { - "hid":59, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9133", - "parent":54, + "hid":74, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "parent":67, "children":[ + 75, + 78 ], - "name":"Saturation Dynamic", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode/Saturation Dynamic", - "label":"Saturation Dynamic", - "icon":"WebViewIcon3", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9133_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9133_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9133_d.json", - "elements":[ - ":9133:10", - ":9133:9", - ":9133:8", - ":9133:7", - ":9133:6", - ":9133:5", - ":9133:4", - ":9133:3", - ":9133:2", - ":9133:1", - ":9133:1#out:1", - ":9133:2#out:1", - ":9133:3#out:1", - ":9133:7#out:1", - ":9133:8#out:1", - ":9133:6#out:1", - ":9133:9#out:1" + "name":"Voltage_Mode_Protection", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Voltage_Mode_Protection", + "label":"Voltage_Mode_Protection", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10566_d.json", + "elements":[ + ":10583", + ":10575", + ":10653", + ":10574", + ":10640", + ":10658", + ":10649", + ":10634", + ":10625", + ":10642", + ":10656", + ":10630", + ":10655", + ":10627", + ":10745", + ":10659", + ":10643", + ":10641", + ":10629", + ":10673", + ":10651", + ":10672", + ":10570", + ":10568", + ":10746", + ":10633", + ":10567", + ":10576", + ":10657", + ":10632", + ":10577", + ":10568#out:1", + ":10567#out:1", + ":10577#out:1", + ":10576#out:1", + ":10632#out:1", + ":10640#out:1", + ":10641#out:1", + ":10643#out:1", + ":10655#out:1", + ":10656#out:1", + ":10657#out:1", + ":10659#out:1", + ":10633#out:1", + ":10634#out:1", + ":10745#out:1", + ":10574#out:1", + ":10672#out:1", + ":10653#out:1", + ":10651#out:1", + ":10746#out:1", + ":10673#out:1" ], "sameAsElement":true }, { - "hid":60, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9143", - "parent":29, + "hid":75, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "parent":74, "children":[ - 61, - 65 + 76, + 77 ], - "name":"Vd_Calculation", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation", - "label":"Vd_Calculation", - "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9143_d.json", + "name":"I_backCalc_fixdt", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Voltage_Mode_Protection/I_backCalc_fixdt", + "label":"I_backCalc_fixdt", + "icon":"WebViewIcon4", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_d.json", "elements":[ - ":9165", - ":9726", - ":9164", - ":9721", - ":9160", - ":9157", - ":9722", - ":9155", - ":9170", - ":9152", - ":9149", - ":9156", - ":9161", - ":9150", - ":9148", - ":9147", - ":9158", - ":9159", - ":9145", - ":9162", - ":9146", - ":9144", - ":9723", - ":9725", - ":9151", - ":9724", - ":9152#out:1", - ":9151#out:1", - ":9144#out:1", - ":9145#out:1", - ":9147#out:1", - ":9146#out:1", - ":9148#out:1", - ":9149#out:1", - ":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", - ":9721#out:1" + ":10745:2894", + ":10745:2892", + ":10745:2877", + ":10745:2855", + ":10745:2891", + ":10745:2893", + ":10745:2895", + ":10745:2854", + ":10745:2889", + ":10745:2869", + ":10745:2890", + ":10745:2853", + ":10745:2851", + ":10745:2892#out:1", + ":10745:2869#out:1", + ":10745:2890#out:1", + ":10745:2893#out:1", + ":10745:2891#out:1", + ":10745:2894#out:1", + ":10745:2877#out:1", + ":10745:2895#out:1", + ":10745:2851#out:1", + ":10745:2853#out:1", + ":10745:2854#out:1", + ":10745:2855#out:1" ], "sameAsElement":true }, { - "hid":61, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9721", - "parent":60, + "hid":76, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "parent":75, "children":[ - 62, - 63, - 64 ], - "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_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:2783", - ":9721:2781", - ":9721:2845", - ":9721:2779", - ":9721:2814", - ":9721:2833", - ":9721:2832", - ":9721:2776", - ":9721:2778", - ":9721:2791", - ":9721:2773", - ":9721:2733", - ":9721:2795", - ":9721:2770", - ":9721:2816", - ":9721:2846", - ":9721:2769", - ":9721:2732", - ":9721:2817", - ":9721:2794", - ":9721:2771", - ":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" + "name":"Integrator", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Voltage_Mode_Protection/I_backCalc_fixdt/Integrator", + "label":"Integrator", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2877_d.json", + "elements":[ + ":10745:2882", + ":10745:2879", + ":10745:2880", + ":10745:2878", + ":10745:2896", + ":10745:2878#out:1", + ":10745:2880#out:1", + ":10745:2896#out:1", + ":10745:2879#out:1" ], "sameAsElement":true }, { - "hid":62, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", - "parent":61, + "hid":77, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "parent":75, "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:2841", - ":9721:2837", - ":9721:2836", - ":9721:2840", - ":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" + "name":"Saturation Dynamic1", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Voltage_Mode_Protection/I_backCalc_fixdt/Saturation Dynamic1", + "label":"Saturation Dynamic1", + "icon":"WebViewIcon3", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10745_2895_d.json", + "elements":[ + ":10745:2895:10", + ":10745:2895:9", + ":10745:2895:8", + ":10745:2895:7", + ":10745:2895:6", + ":10745:2895:5", + ":10745:2895:4", + ":10745:2895:3", + ":10745:2895:2", + ":10745:2895:1", + ":10745:2895:1#out:1", + ":10745:2895:2#out:1", + ":10745:2895:3#out:1", + ":10745:2895:7#out:1", + ":10745:2895:8#out:1", + ":10745:2895:6#out:1", + ":10745:2895:9#out:1" ], "sameAsElement":true }, { - "hid":63, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", - "parent":61, + "hid":78, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "parent":74, "children":[ + 79, + 80 ], - "name":"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_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", + "name":"I_backCalc_fixdt1", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Voltage_Mode_Protection/I_backCalc_fixdt1", + "label":"I_backCalc_fixdt1", + "icon":"WebViewIcon4", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_d.json", "elements":[ - ":9721:2788", - ":9721:2787", - ":9721:2790", - ":9721:2789", - ":9721:2786", - ":9721:2787#out:1", - ":9721:2789#out:1", - ":9721:2788#out:1", - ":9721:2786#out:1" + ":10746:2889", + ":10746:2894", + ":10746:2893", + ":10746:2895", + ":10746:2854", + ":10746:2890", + ":10746:2869", + ":10746:2891", + ":10746:2853", + ":10746:2855", + ":10746:2877", + ":10746:2892", + ":10746:2851", + ":10746:2892#out:1", + ":10746:2869#out:1", + ":10746:2890#out:1", + ":10746:2893#out:1", + ":10746:2891#out:1", + ":10746:2894#out:1", + ":10746:2877#out:1", + ":10746:2895#out:1", + ":10746:2851#out:1", + ":10746:2853#out:1", + ":10746:2854#out:1", + ":10746:2855#out:1" ], "sameAsElement":true }, { - "hid":64, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", - "parent":61, - "children":[ - ], - "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:2710", - ":9721:2791:2377", - ":9721:2791:2709", - ":9721:2791:2704", - ":9721:2791:2848", - ":9721:2791:2849", - ":9721:2791:2701", - ":9721:2791:2707", - ":9721:2791:2700", - ":9721:2791:2699", - ":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" + "hid":79, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "parent":78, + "children":[ + ], + "name":"Integrator", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Voltage_Mode_Protection/I_backCalc_fixdt1/Integrator", + "label":"Integrator", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2877_d.json", + "elements":[ + ":10746:2882", + ":10746:2896", + ":10746:2880", + ":10746:2879", + ":10746:2878", + ":10746:2878#out:1", + ":10746:2880#out:1", + ":10746:2896#out:1", + ":10746:2879#out:1" ], "sameAsElement":true }, { - "hid":65, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9164", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9164", - "parent":60, + "hid":80, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "parent":78, "children":[ ], - "name":"Saturation Dynamic", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation/Saturation Dynamic", - "label":"Saturation Dynamic", + "name":"Saturation Dynamic1", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Voltage_Mode_Protection/I_backCalc_fixdt1/Saturation Dynamic1", + "label":"Saturation Dynamic1", "icon":"WebViewIcon3", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9164_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9164_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9164_d.json", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2895_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2895_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10746_2895_d.json", "elements":[ - ":9164:10", - ":9164:9", - ":9164:8", - ":9164:7", - ":9164:6", - ":9164:5", - ":9164:4", - ":9164:3", - ":9164:2", - ":9164:1", - ":9164:1#out:1", - ":9164:2#out:1", - ":9164:3#out:1", - ":9164:7#out:1", - ":9164:8#out:1", - ":9164:6#out:1", - ":9164:9#out:1" + ":10746:2895:10", + ":10746:2895:9", + ":10746:2895:8", + ":10746:2895:7", + ":10746:2895:6", + ":10746:2895:5", + ":10746:2895:4", + ":10746:2895:3", + ":10746:2895:2", + ":10746:2895:1", + ":10746:2895:1#out:1", + ":10746:2895:2#out:1", + ":10746:2895:3#out:1", + ":10746:2895:7#out:1", + ":10746:2895:8#out:1", + ":10746:2895:6#out:1", + ":10746:2895:9#out:1" ], "sameAsElement":true }, { - "hid":66, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9171", - "parent":29, + "hid":81, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9045", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9045", + "parent":38, "children":[ - 67 ], - "name":"Voltage_Mode", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Voltage_Mode", - "label":"Voltage_Mode", + "name":"Park_Transform", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Park_Transform", + "label":"Park_Transform", "icon":"WebViewIcon1", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9171_d.json", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9045_d.json", "elements":[ - ":9191", - ":9185", - ":9189", - ":9182", - ":9190", - ":9181", - ":9180", - ":9176", - ":9187", - ":9178", - ":9183", - ":9177", - ":9186", - ":9175", - ":9174", - ":9184", - ":9188", - ":9173", - ":9179", - ":9172", - ":9172#out:1", - ":9181#out:1", - ":9179#out:1", - ":9173#out:1", - ":9174#out:1", - ":9175#out:1", - ":9176#out:1", - ":9190#out:1", - ":9178#out:1", - ":9189#out:1", - ":9182#out:1", - ":9188#out:1", - ":9180#out:1" + ":9070", + ":9047", + ":9068", + ":9046", + ":9069", + ":9048", + ":9049", + ":9064", + ":9063", + ":9062", + ":9066", + ":9061", + ":9067", + ":9059", + ":9058", + ":9053", + ":9065", + ":9057", + ":9052", + ":9054", + ":9051", + ":9056", + ":9050", + ":9055", + ":9060", + ":9048#out:1", + ":9047#out:1", + ":9046#out:1", + ":9049#out:1", + ":9054#out:1", + ":9056#out:1", + ":9053#out:1", + ":9050#out:1", + ":9057#out:1", + ":9055#out:1", + ":9067#out:1", + ":9051#out:1", + ":9058#out:1", + ":9059#out:1", + ":9052#out:1", + ":9060#out:1", + ":9061#out:1", + ":9066#out:1" ], "sameAsElement":true }, { - "hid":67, - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9188", - "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9188", - "parent":66, + "hid":82, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "parent":38, "children":[ ], - "name":"Saturation Dynamic1", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Voltage_Mode/Saturation Dynamic1", - "label":"Saturation Dynamic1", - "icon":"WebViewIcon3", - "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9188_d.svg", - "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9188_d.png", - "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9188_d.json", + "name":"Sine_Cosine_Approximation", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Sine_Cosine_Approximation", + "label":"Sine_Cosine_Approximation", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8743_d.json", "elements":[ - ":9188:10", - ":9188:9", - ":9188:8", - ":9188:7", - ":9188:6", - ":9188:5", - ":9188:4", - ":9188:3", - ":9188:2", - ":9188:1", - ":9188:1#out:1", - ":9188:2#out:1", - ":9188:3#out:1", - ":9188:7#out:1", - ":9188:8#out:1", - ":9188:6#out:1", - ":9188:9#out:1" + ":8762", + ":8764", + ":8757", + ":8755", + ":8754", + ":8748", + ":9646", + ":9643", + ":9640", + ":9639", + ":10676", + ":9644", + ":9645", + ":8758", + ":8744", + ":8748#out:1", + ":10676#out:1", + ":8744#out:1", + ":9640#out:1", + ":9643#out:1", + ":8755#out:1", + ":9645#out:1", + ":8754#out:1" ], "sameAsElement":true }, { - "hid":68, + "hid":83, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9198", "parent":2, "children":[ + 84, + 85, + 86 ], - "name":"F05_Control_Type_Management", - "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Control_Type_Management", - "label":"F05_Control_Type_Management", + "name":"F06_Control_Type_Management", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F06_Control_Type_Management", + "label":"F06_Control_Type_Management", "icon":"WebViewIcon1", "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.svg", "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9198_d.png", @@ -3837,42 +4596,57 @@ ":9219", ":9220", ":9212", - ":9232", - ":9216", - ":9217", - ":9218", - ":9211", - ":9234", - ":9236", ":9208", ":9202", ":9228", - ":9203", - ":9229", - ":9204", - ":9230", ":9231", ":9205", ":9213", - ":9209", ":9199", ":9223", ":9455", - ":9449", - ":9235", - ":9225", ":9233", - ":9454", + ":9840", + ":9914", + ":9235", + ":9924", + ":9227", ":9452", - ":9215", + ":9451", + ":9835", + ":9917", + ":9741", + ":9929", + ":9908", + ":9916", + ":9927", + ":9454", + ":9842", + ":9833", + ":9831", + ":8216", ":9214", - ":9453", - ":9210", - ":9206", - ":9227", + ":9838", + ":9839", + ":9915", + ":9925", + ":9904", + ":9920", + ":9832", + ":9922", + ":9834", + ":9449", + ":9921", + ":9928", + ":9215", ":9207", + ":9206", + ":9923", ":9201", - ":9451", + ":9926", + ":9225", + ":9919", + ":9836", ":9208#out:3", ":9208#out:2", ":9208#out:1", @@ -3880,20 +4654,9 @@ ":9212#out:1", ":9220#out:1", ":9219#out:1", - ":9211#out:1", - ":9234#out:1", ":9202#out:1", - ":9203#out:1", - ":9204#out:1", ":9205#out:1", - ":9216#out:1", - ":9217#out:1", - ":9218#out:1", - ":9236#out:1", - ":9209#out:1", ":9199#out:1", - ":9232#out:1", - ":9210#out:1", ":9214#out:1", ":9207#out:1", ":9233#out:1", @@ -3901,15 +4664,254 @@ ":9201#out:1", ":9235#out:1", ":9449#out:1", - ":9453#out:1", ":9454#out:1", ":9213#out:1", - ":9215#out:1" + ":9215#out:1", + ":8216#out:1", + ":9834#out:1", + ":9832#out:1", + ":9835#out:1", + ":9831#out:1", + ":9839#out:1", + ":9838#out:1", + ":9908#out:1", + ":9833#out:3", + ":9904#out:1", + ":9914#out:1", + ":9915#out:1", + ":9916#out:1", + ":9917#out:1", + ":9836#out:1", + ":9833#out:2", + ":9741#out:1", + ":9842#out:1", + ":9833#out:1", + ":9840#out:1", + ":9919#out:1", + ":9920#out:1", + ":9921#out:1", + ":9922#out:1", + ":9923#out:1", + ":9927#out:1", + ":9928#out:1", + ":9929#out:1" ], "sameAsElement":true }, { - "hid":69, + "hid":84, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9904", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9904", + "parent":83, + "children":[ + ], + "name":"COM_Method", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F06_Control_Type_Management/COM_Method", + "label":"COM_Method", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9904_d.json", + "elements":[ + ":9907", + ":9906", + ":9911", + ":9211", + ":9913", + ":9912", + ":9453", + ":9823", + ":9209", + ":9910", + ":9909", + ":9236", + ":9209#out:1", + ":9211#out:1", + ":9236#out:1", + ":9453#out:1", + ":9909#out:1", + ":9910#out:1", + ":9913#out:1" + ], + "sameAsElement":true + }, + { + "hid":85, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9842", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9842", + "parent":83, + "children":[ + ], + "name":"FOC_Method", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F06_Control_Type_Management/FOC_Method", + "label":"FOC_Method", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9842_d.json", + "elements":[ + ":9902", + ":9847", + ":9843", + ":9843#out:1" + ], + "sameAsElement":true + }, + { + "hid":86, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "parent":83, + "children":[ + 87 + ], + "name":"SIN_Method", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F06_Control_Type_Management/SIN_Method", + "label":"SIN_Method", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9741_d.json", + "elements":[ + ":9786", + ":9783", + ":9780", + ":9781", + ":9782", + ":9779", + ":9742", + ":9743", + ":9802", + ":9800", + ":9799", + ":9810", + ":9805", + ":9803", + ":10677", + ":9819", + ":9806", + ":9820", + ":9798", + ":9795", + ":9818", + ":9801", + ":9796", + ":9797", + ":9816", + ":9779#out:1", + ":10677#out:1", + ":9743#out:1", + ":9795#out:1", + ":9798#out:1", + ":9797#out:1", + ":9796#out:1", + ":9803#out:1", + ":9805#out:1", + ":9806#out:1", + ":9810#out:1", + ":9818#out:1", + ":9780#out:1", + ":9781#out:1", + ":9782#out:1", + ":9819#out:1", + ":9816#out:1" + ], + "sameAsElement":true + }, + { + "hid":87, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "parent":86, + "children":[ + 88 + ], + "name":"Final_Phase_Advance_Calculation", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F06_Control_Type_Management/SIN_Method/Final_Phase_Advance_Calculation", + "label":"Final_Phase_Advance_Calculation", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_9743_d.json", + "elements":[ + ":9778", + ":9745", + ":9757", + ":9776", + ":9749", + ":9768", + ":9765", + ":9752", + ":9753", + ":9770", + ":9751", + ":9762", + ":9772", + ":9769", + ":9755", + ":9766", + ":9756", + ":9760", + ":9791", + ":10035", + ":10175", + ":9794", + ":9758", + ":9746", + ":9747", + ":9756#out:1", + ":9745#out:1", + ":9765#out:1", + ":9749#out:1", + ":9746#out:1", + ":9747#out:1", + ":9769#out:1", + ":9772#out:1", + ":10035#out:1", + ":9766#out:1", + ":9755#out:1", + ":9752#out:1", + ":9751#out:1", + ":9770#out:1", + ":9753#out:1", + ":9791#out:1", + ":9794#out:1", + ":10175#out:1" + ], + "sameAsElement":true + }, + { + "hid":88, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "parent":87, + "children":[ + ], + "name":"Modulo_fixdt", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F06_Control_Type_Management/SIN_Method/Final_Phase_Advance_Calculation/Modulo_fixdt", + "label":"Modulo_fixdt", + "icon":"WebViewIcon9", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10035_d.json", + "elements":[ + ":10035:576", + ":10035:572", + ":10035:574", + ":10035:573", + ":10035:570", + ":10035:571", + ":10035:575", + ":10035:572#out:1", + ":10035:571#out:1", + ":10035:573#out:1", + ":10035:574#out:1", + ":10035:570#out:1" + ], + "sameAsElement":true + }, + { + "hid":89, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9292", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9292", "parent":2, @@ -3927,7 +4929,7 @@ "sameAsElement":true }, { - "hid":70, + "hid":90, "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9293", "esid":"BLDCmotorControl_FOC_R2017b_fixdt:9293", "parent":2, @@ -3943,5 +4945,39 @@ "elements":[ ], "sameAsElement":true + }, + { + "hid":91, + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "esid":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "parent":2, + "children":[ + ], + "name":"Task_Scheduler", + "fullname":"BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/Task_Scheduler", + "label":"Task_Scheduler", + "icon":"WebViewIcon1", + "svg":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.svg", + "thumbnail":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.png", + "backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_10164_d.json", + "elements":[ + ":10169", + ":10186", + ":10185", + ":10162", + ":10167", + ":10183", + ":10168", + ":10190", + ":10184", + ":10163", + ":10162#out:1", + ":10163#out:1", + ":10183#out:1", + ":10184#out:1", + ":10185#out:1", + ":10190#out:1" + ], + "sameAsElement":true } ] \ No newline at end of file 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 fc9793e..bfac113 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 @@ -194,11 +194,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8225", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F01_01_Input_Scaling", - "label":"F01_01_Input_Scaling", + "name":"F01_01_Edge_Detector", + "label":"F01_01_Edge_Detector", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -291,12 +291,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9337", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8235", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Commutation_Control_Type", - "label":"Commutation_Control_Type", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"F01_02_Position_Calculation", + "label":"F01_02_Position_Calculation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ "ShowPortLabels", @@ -347,7 +347,7 @@ "void_void", "off", "off", - "off", + "on", "", "off", "", @@ -388,12 +388,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9341", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8247", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"FOC_Control_Type", - "label":"FOC_Control_Type", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9333", + "name":"F01_03_Direction_Detection", + "label":"F01_03_Direction_Detection", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ "ShowPortLabels", @@ -485,11 +485,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8225", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F01_02_Edge_Detector", - "label":"F01_02_Edge_Detector", + "name":"F01_04_Speed_Estimation", + "label":"F01_04_Speed_Estimation", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -582,12 +582,70 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8235", + "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/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2515", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"rst_Delay", + "label":"rst_Delay", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8272", + "inspector":{ + "params":[ + "initVal" + ], + "values":[ + "z_cntInit" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8314", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F01_03_Position_Calculation", - "label":"F01_03_Position_Calculation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "name":"Raw_Motor_Speed_Estimation", + "label":"Raw_Motor_Speed_Estimation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "ShowPortLabels", @@ -638,7 +696,7 @@ "void_void", "off", "off", - "on", + "off", "", "off", "", @@ -679,11 +737,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8247", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8384", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F01_04_Direction_Detection", - "label":"F01_04_Direction_Detection", + "name":"F01_05_Electrical_Angle_Estimation", + "label":"F01_05_Electrical_Angle_Estimation", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -735,7 +793,7 @@ "void_void", "off", "off", - "off", + "on", "", "off", "", @@ -776,12 +834,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F01_05_Speed_Estimation", - "label":"F01_05_Speed_Estimation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "name":"F02_Diagnostics", + "label":"F02_Diagnostics", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "ShowPortLabels", @@ -832,7 +890,7 @@ "void_void", "off", "off", - "on", + "off", "", "off", "", @@ -873,70 +931,12 @@ } }, { - "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/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8272:2515", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "className":"Simulink.SubSystem", "icon":"WebViewIcon4", - "name":"rst_Delay", - "label":"rst_Delay", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8272", - "inspector":{ - "params":[ - "initVal" - ], - "values":[ - "z_cntInit" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8314", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Raw_Motor_Speed_Estimation", - "label":"Raw_Motor_Speed_Estimation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8263", + "name":"Debounce_Filter", + "label":"Debounce_Filter", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ "ShowPortLabels", @@ -978,7 +978,7 @@ "ReadWrite", "", "All", - "off", + "on", "on", "", "", @@ -994,7 +994,7 @@ "off", "off", "", - "Auto", + "Use subsystem name", "", "Auto", "Inherit from model", @@ -1002,7 +1002,7 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", + "Reusable function", "-1", "", "off", @@ -1028,12 +1028,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8384", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2423", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F01_06_Electrical_Angle_Estimation", - "label":"F01_06_Electrical_Angle_Estimation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220", + "name":"Default", + "label":"Default", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ "ShowPortLabels", @@ -1084,7 +1084,7 @@ "void_void", "off", "off", - "on", + "off", "", "off", "", @@ -1125,12 +1125,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F02_Diagnostics", - "label":"F02_Diagnostics", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "name":"Dequalification", + "label":"Dequalification", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ "ShowPortLabels", @@ -1222,12 +1222,70 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", "className":"Simulink.SubSystem", "icon":"WebViewIcon4", - "name":"Debounce_Filter", - "label":"Debounce_Filter", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8469", + "name":"Counter", + "label":"Counter", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "z_cntInit" + ], + "values":[ + "0" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "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/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Qualification", + "label":"Qualification", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ "ShowPortLabels", @@ -1269,7 +1327,7 @@ "ReadWrite", "", "All", - "on", + "off", "on", "", "", @@ -1285,7 +1343,7 @@ "off", "off", "", - "Use subsystem name", + "Auto", "", "Auto", "Inherit from model", @@ -1293,7 +1351,7 @@ "Inherit from model", "Inherit from model", "Inherit from model", - "Reusable function", + "Auto", "-1", "", "off", @@ -1319,13 +1377,71 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2423", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480", "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Default", - "label":"Default", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", - "inspector":{ + "icon":"WebViewIcon4", + "name":"Counter", + "label":"Counter", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "z_cntInit" + ], + "values":[ + "0" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "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/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "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":[ "ShowPortLabels", "Permissions", @@ -1366,7 +1482,7 @@ "ReadWrite", "", "All", - "off", + "on", "on", "", "", @@ -1412,16 +1528,16 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"" + "masktype":"Either edge detection" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Dequalification", - "label":"Dequalification", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "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", @@ -1463,7 +1579,7 @@ "ReadWrite", "", "All", - "off", + "on", "on", "", "", @@ -1509,74 +1625,16 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2435", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Counter", - "label":"Counter", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "z_cntInit" - ], - "values":[ - "0" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "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/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" + "masktype":"Either edge detection" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Qualification", - "label":"Qualification", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486", + "name":"F03_Control_Mode_Manager", + "label":"F03_Control_Mode_Manager", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "ShowPortLabels", @@ -1668,70 +1726,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Counter", - "label":"Counter", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "z_cntInit" - ], - "values":[ - "0" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8486:2480:2515", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8546", "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/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "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", + "icon":"WebViewIcon1", + "name":"F03_01_Mode_Transition_Calculation", + "label":"F03_01_Mode_Transition_Calculation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ "ShowPortLabels", @@ -1773,7 +1773,7 @@ "ReadWrite", "", "All", - "on", + "off", "on", "", "", @@ -1782,7 +1782,7 @@ "void_void", "off", "off", - "off", + "on", "", "off", "", @@ -1819,94 +1819,58 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"Either edge detection" + "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", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603", + "className":"Stateflow.Chart", + "icon":"WebViewIcon6", + "name":"F03_02_Control_Mode_Manager", + "label":"F03_02_Control_Mode_Manager", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" + "ActionLanguage", + "StateMachineType", + "ChartUpdate", + "AllowGlobalAccessToExportedFunctions", + "ExecuteAtInitialization", + "InitializeOutput", + "EnableNonTerminalStates", + "supportVariableSizing", + "SaturateOnIntegerOverflow", + "HasOutputData", + "EmlDefaultFimath", + "TreatAsFi", + "Description", + "Document" ], "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", + "MATLAB", + "Classic", + "INHERITED", + false, + false, + false, + false, + true, + true, + false, + "Same as MATLAB Default", + "Fixed-point", "", - "off", "" ], "tabs":[ - "Main", - "-Other" + "General", + "Fixed-point properties", + "Documentation" ], "tabs_idx":[ 0, - 6 + 10, + 12 ] }, "viewer":{ @@ -1914,18 +1878,16 @@ }, "obj_viewer":[ ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Either edge detection" - } + "finder":[ + ] }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9953", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F03_Control_Mode_Manager", - "label":"F03_Control_Mode_Manager", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "name":"F03_03_Input_Target_Synthesis", + "label":"F03_03_Input_Target_Synthesis", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", "inspector":{ "params":[ "ShowPortLabels", @@ -2017,12 +1979,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8546", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9988", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F03_01_Mode_Transition_Calculation", - "label":"F03_01_Mode_Transition_Calculation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", + "name":"Default_Control_Type", + "label":"Default_Control_Type", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", "inspector":{ "params":[ "ShowPortLabels", @@ -2073,7 +2035,7 @@ "void_void", "off", "off", - "on", + "off", "", "off", "", @@ -2114,71 +2076,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8603", - "className":"Stateflow.Chart", - "icon":"WebViewIcon6", - "name":"F03_02_Control_Mode_Manager", - "label":"F03_02_Control_Mode_Manager", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8535", - "inspector":{ - "params":[ - "ActionLanguage", - "StateMachineType", - "ChartUpdate", - "AllowGlobalAccessToExportedFunctions", - "ExecuteAtInitialization", - "InitializeOutput", - "EnableNonTerminalStates", - "supportVariableSizing", - "SaturateOnIntegerOverflow", - "HasOutputData", - "EmlDefaultFimath", - "TreatAsFi", - "Description", - "Document" - ], - "values":[ - "MATLAB", - "Classic", - "INHERITED", - false, - false, - false, - false, - true, - true, - false, - "Same as MATLAB Default", - "Fixed-point", - "", - "" - ], - "tabs":[ - "General", - "Fixed-point properties", - "Documentation" - ], - "tabs_idx":[ - 0, - 10, - 12 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":[ - ] - }, - { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10007", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F04_Field_Oriented_Control", - "label":"F04_Field_Oriented_Control", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "name":"Default_Mode", + "label":"Default_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", "inspector":{ "params":[ "ShowPortLabels", @@ -2270,12 +2173,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9957", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Clarke_Transform", - "label":"Clarke_Transform", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "name":"FOC_Control_Type", + "label":"FOC_Control_Type", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", "inspector":{ "params":[ "ShowPortLabels", @@ -2326,7 +2229,7 @@ "void_void", "off", "off", - "on", + "off", "", "off", "", @@ -2367,12 +2270,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8671", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Clarke_PhasesAB", - "label":"Clarke_PhasesAB", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "name":"Open_Mode", + "label":"Open_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9953", "inspector":{ "params":[ "ShowPortLabels", @@ -2464,90 +2367,86 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8686", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948", "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clarke_PhasesBC", - "label":"Clarke_PhasesBC", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "icon":"WebViewIcon9", + "name":"Rate_Limiter", + "label":"Rate_Limiter", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "ShowPortLabels", + "BlockChoice", + "TemplateBlock", + "MemberBlocks", "Permissions", "ErrorFcn", "PermitHierarchicalResolution", "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", "MinAlgLoopOccurrences", - "OverrideUsingVariant", "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", + "SystemSampleTime", + "RTWSystemCode", "RTWFcnNameOpts", - "RTWFileName", + "RTWFcnName", "RTWFileNameOpts", + "RTWFileName", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "RTWMemSecFuncInitTerm", + "RTWMemSecFuncExecute", "RTWMemSecDataConstants", "RTWMemSecDataInternal", "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", + "IsSubsystemVirtual", "Variant", - "VariantControl" + "VariantControl", + "OverrideUsingVariant", + "GeneratePreprocessorConditionals", + "AllowZeroVariantControls", + "PropagateVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "TreatAsGroupedWhenPropagatingVariantConditions" ], "values":[ "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", "", "", - "off", - "", - "void_void", - "off", - "off", - "off", "", - "off", + "ReadWrite", "", + "All", + "on", "off", "off", - "", + "-1", "Auto", + "Use subsystem name", "", "Auto", + "", + "void_void", + "off", "Inherit from model", "Inherit from model", "Inherit from model", "Inherit from model", "Inherit from model", - "Auto", - "-1", + "off", + "off", + "", "", "off", - "" + "off", + "off", + "", + "", + "on" ], "tabs":[ - "Main", - "-Other" ], "tabs_idx":[ - 0, - 6 ] }, "viewer":{ @@ -2561,12 +2460,80 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2342", "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Current_Filtering", - "label":"Current_Filtering", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "icon":"WebViewIcon4", + "name":"Delay_Init1", + "label":"Delay_Init1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", + "inspector":{ + "params":[ + "initVal" + ], + "values":[ + "0" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9948:2395", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic", + "label":"Saturation Dynamic", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9948", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9950", + "className":"Rising edge init", + "icon":"WebViewIcon4", + "name":"rising_edge_init", + "label":"rising_edge_init", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9937", "inspector":{ "params":[ "ShowPortLabels", @@ -2608,7 +2575,7 @@ "ReadWrite", "", "All", - "off", + "on", "on", "", "", @@ -2654,86 +2621,168 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"" + "masktype":"Rising edge init" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8738", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10066", "className":"Simulink.SubSystem", - "icon":"WebViewIcon9", - "name":"Low_Pass_Filter", - "label":"Low_Pass_Filter", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8726", + "icon":"WebViewIcon1", + "name":"F04_Field_Weakening", + "label":"F04_Field_Weakening", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "ShowPortLabels", - "BlockChoice", - "TemplateBlock", - "MemberBlocks", "Permissions", "ErrorFcn", "PermitHierarchicalResolution", "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", "MinAlgLoopOccurrences", + "OverrideUsingVariant", "PropExecContextOutsideSubsystem", - "SystemSampleTime", - "RTWSystemCode", - "RTWFcnNameOpts", + "PropagateVariantConditions", "RTWFcnName", - "RTWFileNameOpts", + "RTWFcnNameOpts", "RTWFileName", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "RTWMemSecFuncInitTerm", - "RTWMemSecFuncExecute", + "RTWFileNameOpts", "RTWMemSecDataConstants", "RTWMemSecDataInternal", "RTWMemSecDataParameters", - "IsSubsystemVirtual", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", "Variant", - "VariantControl", - "OverrideUsingVariant", - "GeneratePreprocessorConditionals", - "AllowZeroVariantControls", - "PropagateVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "TreatAsGroupedWhenPropagatingVariantConditions" + "VariantControl" ], "values":[ "FromPortIcon", - "", - "", - "", "ReadWrite", "", "All", + "off", "on", + "", + "", + "off", + "", + "void_void", + "off", "off", "off", - "-1", - "Reusable function", - "Use subsystem name", "", - "Auto", + "off", "", - "void_void", "off", + "off", + "", + "Auto", + "", + "Auto", "Inherit from model", "Inherit from model", "Inherit from model", "Inherit from model", "Inherit from model", - "off", - "off", - "", + "Auto", + "-1", "", "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10507", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic", + "label":"Saturation Dynamic", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10508", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", "off", - "", - "", - "on" + "Floor", + "off" ], "tabs":[ ], @@ -2747,16 +2796,16 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"" + "masktype":"Saturation Dynamic" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Field_Weakening", - "label":"Field_Weakening", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "name":"F05_Field_Oriented_Control", + "label":"F05_Field_Oriented_Control", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "ShowPortLabels", @@ -2807,7 +2856,7 @@ "void_void", "off", "off", - "on", + "off", "", "off", "", @@ -2848,11 +2897,11 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8866", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Inv_Clarke_Transform", - "label":"Inv_Clarke_Transform", + "name":"Clarke_Transform", + "label":"Clarke_Transform", "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2945,12 +2994,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8886", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8671", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Inv_Park_Transform", - "label":"Inv_Park_Transform", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "name":"Clarke_PhasesAB", + "label":"Clarke_PhasesAB", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", "inspector":{ "params":[ "ShowPortLabels", @@ -3001,7 +3050,7 @@ "void_void", "off", "off", - "on", + "off", "", "off", "", @@ -3042,13 +3091,13 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8686", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Motor_Limitations", - "label":"Motor_Limitations", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", - "inspector":{ + "name":"Clarke_PhasesBC", + "label":"Clarke_PhasesBC", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8668", + "inspector":{ "params":[ "ShowPortLabels", "Permissions", @@ -3098,7 +3147,7 @@ "void_void", "off", "off", - "on", + "off", "", "off", "", @@ -3139,12 +3188,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8726", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Current_Limit_Protection", - "label":"Current_Limit_Protection", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "name":"Current_Filtering", + "label":"Current_Filtering", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "ShowPortLabels", @@ -3236,28 +3285,82 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8930", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic", - "label":"Saturation Dynamic", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8924", + "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":[ - "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", + "on", "off", - "Floor", - "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":[ ], @@ -3271,16 +3374,16 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Speed_Limit_Protection", - "label":"Speed_Limit_Protection", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "name":"FOC", + "label":"FOC", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "ShowPortLabels", @@ -3372,32 +3475,90 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8993", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8987", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9029", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Open_Mode", + "label":"Open_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" + "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":[ - "[]", - "[]", - "Inherit: Same as second input", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "Floor", - "off" + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" ], "tabs":[ + "Main", + "-Other" ], "tabs_idx":[ + 0, + 6 ] }, "viewer":{ @@ -3407,16 +3568,16 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9029", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Open_Mode", - "label":"Open_Mode", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "name":"Speed_Mode", + "label":"Speed_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ "ShowPortLabels", @@ -3508,12 +3669,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "className":"Simulink.SubSystem", "icon":"WebViewIcon9", - "name":"Rate_Limiter", - "label":"Rate_Limiter", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9029", + "name":"PI_clamp_fixdt", + "label":"PI_clamp_fixdt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ "ShowPortLabels", @@ -3562,7 +3723,7 @@ "off", "off", "-1", - "Auto", + "Reusable function", "Use subsystem name", "", "Auto", @@ -3601,61 +3762,90 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9040:2342", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2816", "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Delay_Init1", - "label":"Delay_Init1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9040", + "icon":"WebViewIcon1", + "name":"Clamping_circuit", + "label":"Clamping_circuit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ - "initVal" + "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":[ - "0" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "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", + "FromPortIcon", + "ReadWrite", + "", + "All", "off", - "Floor", - "off" + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" ], "tabs":[ + "Main", + "-Other" ], "tabs_idx":[ + 0, + 6 ] }, "viewer":{ @@ -3665,16 +3855,16 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "masktype":"" } }, { - "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", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2779", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "ShowPortLabels", @@ -3716,7 +3906,7 @@ "ReadWrite", "", "All", - "on", + "off", "on", "", "", @@ -3725,7 +3915,7 @@ "void_void", "off", "off", - "off", + "on", "", "off", "", @@ -3762,94 +3952,90 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"Rising edge init" + "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9045", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10455:2791", "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Park_Transform", - "label":"Park_Transform", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "icon":"WebViewIcon9", + "name":"Saturation_hit", + "label":"Saturation_hit", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "ShowPortLabels", + "BlockChoice", + "TemplateBlock", + "MemberBlocks", "Permissions", "ErrorFcn", "PermitHierarchicalResolution", "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", "MinAlgLoopOccurrences", - "OverrideUsingVariant", "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", + "SystemSampleTime", + "RTWSystemCode", "RTWFcnNameOpts", - "RTWFileName", + "RTWFcnName", "RTWFileNameOpts", + "RTWFileName", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "RTWMemSecFuncInitTerm", + "RTWMemSecFuncExecute", "RTWMemSecDataConstants", "RTWMemSecDataInternal", "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", + "IsSubsystemVirtual", "Variant", - "VariantControl" + "VariantControl", + "OverrideUsingVariant", + "GeneratePreprocessorConditionals", + "AllowZeroVariantControls", + "PropagateVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "TreatAsGroupedWhenPropagatingVariantConditions" ], "values":[ "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", "", "", - "off", "", - "void_void", - "off", - "off", - "on", + "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", - "Auto", - "-1", + "on", + "off", + "", "", "off", - "" + "off", + "off", + "", + "", + "on" ], "tabs":[ - "Main", - "-Other" ], "tabs_idx":[ - 0, - 6 ] }, "viewer":{ @@ -3863,12 +4049,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Speed_Mode", - "label":"Speed_Mode", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "name":"Torque_Mode", + "label":"Torque_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ "ShowPortLabels", @@ -3960,12 +4146,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "className":"Simulink.SubSystem", "icon":"WebViewIcon9", - "name":"PI_clamp_fixdt_n", - "label":"PI_clamp_fixdt_n", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9074", + "name":"PI_clamp_fixdt", + "label":"PI_clamp_fixdt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ "ShowPortLabels", @@ -4053,12 +4239,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2816", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2816", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", "name":"Clamping_circuit", "label":"Clamping_circuit", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "ShowPortLabels", @@ -4150,12 +4336,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2779", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2779", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", "name":"Integrator", "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "ShowPortLabels", @@ -4247,12 +4433,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9728:2791", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10828:2791", "className":"Simulink.SubSystem", "icon":"WebViewIcon9", "name":"Saturation_hit", "label":"Saturation_hit", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9728", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ "ShowPortLabels", @@ -4340,12 +4526,51 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10829", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Torque_Mode", - "label":"Torque_Mode", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "name":"Vd_Calculation", + "label":"Vd_Calculation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ "ShowPortLabels", @@ -4437,12 +4662,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "className":"Simulink.SubSystem", "icon":"WebViewIcon9", - "name":"PI_clamp_fixdt_iq", - "label":"PI_clamp_fixdt_iq", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "name":"PI_clamp_fixdt", + "label":"PI_clamp_fixdt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ "ShowPortLabels", @@ -4530,12 +4755,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2816", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2816", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", "name":"Clamping_circuit", "label":"Clamping_circuit", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "ShowPortLabels", @@ -4627,12 +4852,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2779", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2779", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", "name":"Integrator", "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "ShowPortLabels", @@ -4724,12 +4949,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9729:2791", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10454:2791", "className":"Simulink.SubSystem", "icon":"WebViewIcon9", "name":"Saturation_hit", "label":"Saturation_hit", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9729", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ "ShowPortLabels", @@ -4817,12 +5042,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9133", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9164", "className":"Saturation Dynamic", "icon":"WebViewIcon3", "name":"Saturation Dynamic", "label":"Saturation Dynamic", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9109", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ "OutMin", @@ -4856,12 +5081,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Vd_Calculation", - "label":"Vd_Calculation", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "name":"Voltage_Mode", + "label":"Voltage_Mode", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ "ShowPortLabels", @@ -4953,86 +5178,129 @@ } }, { - "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", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9188", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "ShowPortLabels", - "BlockChoice", - "TemplateBlock", - "MemberBlocks", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "MinAlgLoopOccurrences", - "PropExecContextOutsideSubsystem", - "SystemSampleTime", - "RTWSystemCode", - "RTWFcnNameOpts", - "RTWFcnName", - "RTWFileNameOpts", - "RTWFileName", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "RTWMemSecFuncInitTerm", - "RTWMemSecFuncExecute", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8866", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Inv_Clarke_Transform", + "label":"Inv_Clarke_Transform", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", "IsSubsystemVirtual", - "Variant", - "VariantControl", + "MemberBlocks", + "MinAlgLoopOccurrences", "OverrideUsingVariant", - "GeneratePreprocessorConditionals", - "AllowZeroVariantControls", + "PropExecContextOutsideSubsystem", "PropagateVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "TreatAsGroupedWhenPropagatingVariantConditions" + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" ], "values":[ "FromPortIcon", + "ReadWrite", "", + "All", + "off", + "on", "", "", - "ReadWrite", + "off", "", - "All", + "void_void", + "off", + "off", "on", + "", + "off", + "", "off", "off", - "-1", - "Reusable function", - "Use subsystem name", "", "Auto", "", - "void_void", - "off", + "Auto", "Inherit from model", "Inherit from model", "Inherit from model", "Inherit from model", "Inherit from model", - "off", - "off", - "", + "Auto", + "-1", "", "off", - "off", - "off", - "", - "", - "on" + "" ], "tabs":[ + "Main", + "-Other" ], "tabs_idx":[ + 0, + 6 ] }, "viewer":{ @@ -5046,12 +5314,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2816", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8886", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Clamping_circuit", - "label":"Clamping_circuit", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"Inv_Park_Transform", + "label":"Inv_Park_Transform", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "ShowPortLabels", @@ -5143,12 +5411,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2779", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Integrator", - "label":"Integrator", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "name":"Motor_Limitations", + "label":"Motor_Limitations", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "ShowPortLabels", @@ -5199,7 +5467,7 @@ "void_void", "off", "off", - "on", + "off", "", "off", "", @@ -5240,86 +5508,90 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9721:2791", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "className":"Simulink.SubSystem", - "icon":"WebViewIcon9", - "name":"Saturation_hit", - "label":"Saturation_hit", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9721", + "icon":"WebViewIcon1", + "name":"Speed_Mode_Protection", + "label":"Speed_Mode_Protection", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "ShowPortLabels", - "BlockChoice", - "TemplateBlock", - "MemberBlocks", "Permissions", "ErrorFcn", "PermitHierarchicalResolution", "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", "MinAlgLoopOccurrences", + "OverrideUsingVariant", "PropExecContextOutsideSubsystem", - "SystemSampleTime", - "RTWSystemCode", - "RTWFcnNameOpts", + "PropagateVariantConditions", "RTWFcnName", - "RTWFileNameOpts", + "RTWFcnNameOpts", "RTWFileName", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "RTWMemSecFuncInitTerm", - "RTWMemSecFuncExecute", + "RTWFileNameOpts", "RTWMemSecDataConstants", "RTWMemSecDataInternal", "RTWMemSecDataParameters", - "IsSubsystemVirtual", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", "Variant", - "VariantControl", - "OverrideUsingVariant", - "GeneratePreprocessorConditionals", - "AllowZeroVariantControls", - "PropagateVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "TreatAsGroupedWhenPropagatingVariantConditions" + "VariantControl" ], "values":[ "FromPortIcon", + "ReadWrite", "", + "All", + "off", + "on", "", "", - "ReadWrite", + "off", "", - "All", + "void_void", "off", "off", "off", - "-1", - "Auto", - "Auto", "", - "Auto", + "off", "", - "void_void", "off", + "off", + "", + "Auto", + "", + "Auto", "Inherit from model", "Inherit from model", "Inherit from model", "Inherit from model", "Inherit from model", - "on", - "off", - "", + "Auto", + "-1", "", "off", - "off", - "off", - "", - "", - "on" + "" ], "tabs":[ + "Main", + "-Other" ], "tabs_idx":[ + 0, + 6 ] }, "viewer":{ @@ -5333,12 +5605,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9164", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10594", "className":"Saturation Dynamic", "icon":"WebViewIcon3", "name":"Saturation Dynamic", "label":"Saturation Dynamic", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9143", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ "OutMin", @@ -5372,12 +5644,12 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10602", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Voltage_Mode", - "label":"Voltage_Mode", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "name":"Torque_Mode_Protection", + "label":"Torque_Mode_Protection", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "ShowPortLabels", @@ -5469,28 +5741,18 @@ } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9188", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9171", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"I_backCalc_fixdt", + "label":"I_backCalc_fixdt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10602", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" + "yInit" ], "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" + "0" ], "tabs":[ ], @@ -5504,16 +5766,16 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "masktype":"" } }, { - "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2877", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"F05_Control_Type_Management", - "label":"F05_Control_Type_Management", - "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", "inspector":{ "params":[ "ShowPortLabels", @@ -5605,22 +5867,1264 @@ } }, { - "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", + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10808:2895", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10808", "inspector":{ "params":[ - "ShowPortLabels", - "BlockChoice", - "TemplateBlock", - "MemberBlocks", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Voltage_Mode_Protection", + "label":"Voltage_Mode_Protection", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"I_backCalc_fixdt", + "label":"I_backCalc_fixdt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "yInit" + ], + "values":[ + "0" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2877", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10745:2895", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"I_backCalc_fixdt1", + "label":"I_backCalc_fixdt1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "yInit" + ], + "values":[ + "0" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2877", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10746:2895", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9045", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Park_Transform", + "label":"Park_Transform", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8743", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Sine_Cosine_Approximation", + "label":"Sine_Cosine_Approximation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F06_Control_Type_Management", + "label":"F06_Control_Type_Management", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9904", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"COM_Method", + "label":"COM_Method", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "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/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9842", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"FOC_Method", + "label":"FOC_Method", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"SIN_Method", + "label":"SIN_Method", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Final_Phase_Advance_Calculation", + "label":"Final_Phase_Advance_Calculation", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10035", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon9", + "name":"Modulo_fixdt", + "label":"Modulo_fixdt", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "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", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", "MinAlgLoopOccurrences", "PropExecContextOutsideSubsystem", "SystemSampleTime", @@ -5793,5 +7297,102 @@ "blocktype":"SubSystem", "masktype":"" } + }, + { + "sid":"BLDCmotorControl_FOC_R2017b_fixdt:10164", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Task_Scheduler", + "label":"Task_Scheduler", + "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } } ] \ No newline at end of file diff --git a/01_Matlab/BLDCmotorControl_FOC_R2017b_fixdt.slx b/01_Matlab/BLDCmotorControl_FOC_R2017b_fixdt.slx index 95cd909..a7b9dee 100644 Binary files a/01_Matlab/BLDCmotorControl_FOC_R2017b_fixdt.slx and b/01_Matlab/BLDCmotorControl_FOC_R2017b_fixdt.slx differ diff --git a/01_Matlab/init_model.m b/01_Matlab/init_model.m index 183ff24..18832d6 100644 --- a/01_Matlab/init_model.m +++ b/01_Matlab/init_model.m @@ -10,7 +10,7 @@ % >> improved motor efficiency -> lower energy consumption % % Author: Emanuel FERU -% Copyright © 2019 Emanuel FERU +% Copyright © 2019-2020 Emanuel FERU % % This program is free software: you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by @@ -56,10 +56,11 @@ r_cos_M1 = cos((a_elecAngle_XA + 30)*(pi/180)); % stairs(a_elecAngle_XA, r_cos_M1); % legend('sin','cos'); -%% Control Manager +%% Control selection % Control type selection CTRL_COM = 0; % [-] Commutation Control -CTRL_FOC = 1; % [-] Field Oriented Control (FOC) +CTRL_SIN = 1; % [-] Sinusoidal Control +CTRL_FOC = 2; % [-] Field Oriented Control (FOC) z_ctrlTypSel = CTRL_FOC; % [-] Control Type Selection (default) % Control model request @@ -69,6 +70,7 @@ SPD_MODE = 2; % [-] Speed mode TRQ_MODE = 3; % [-] Torque mode z_ctrlModReq = VLT_MODE; % [-] Control Mode Request (default) + %% F01_Estimations % Position Estimation Parameters % Hall = 4*hA + 2*hB + hC @@ -86,41 +88,36 @@ n_stdStillDet = 3; % [rpm] Speed threshold for Stand still detectio cf_currFilt = 0.12; % [%] Current filter coefficient [0, 1]. Lower values mean softer filter %% F02_Diagnostics -b_diagEna = 1; % [-] Diagnostics enable flag: 0 = Disabled, 1 = Enabled (default) -t_errQual = 0.6 * f_ctrl; % [s] Error qualification time -t_errDequal = 2.0 * f_ctrl; % [s] Error dequalification time -r_errInpTgtThres = 200; % [-] Error input target threshold (for "Blocked motor" detection) - -%% F04_Field_Oriented_Control +b_diagEna = 1; % [-] Diagnostics enable flag: 0 = Disabled, 1 = Enabled (default) +t_errQual = 0.6 * f_ctrl/3; % [s] Error qualification time +t_errDequal = 2.0 * f_ctrl/3; % [s] Error dequalification time +r_errInpTgtThres = 400; % [-] Error input target threshold (for "Blocked motor" detection) -% Current measurement -b_selPhaABCurrMeas = 1; % [-] Measured phase currents selection: {iA,iB} = 1 (default); {iB,iC} = 0 -dV_openRate = 1000 / f_ctrl; % [V/s] Rate for voltage cut-off in Open Mode (Sample Time included in the rate) +%% F03_Control_Mode_Manager +dV_openRate = 1000 / (f_ctrl/3);% [V/s] Rate for voltage cut-off in Open Mode (Sample Time included in the rate) -% Field Weakening +%% F04_Field_Weakening b_fieldWeakEna = 0; % [-] Field weakening enable flag: 0 = disable (default), 1 = enable -n_fieldWeakAuthHi = 200; % [rpm] Motor speed High for field weakening authorization -n_fieldWeakAuthLo = 140; % [rpm] Motor speed Low for field weakening authorization -id_fieldWeak_M1 = [0 0.1 0.3 0.7 1.3 2.1 3 3.8 4.4 4.8 5 5] * i_sca; % [-] Field weakening current map -r_fieldWeak_XA = [570 600 630 660 690 720 750 780 810 840 870 900]; % [-] Scaled input target grid -% figure -% plot(r_fieldWeak_XA, id_fieldWeak_M1, '.-'); hold on -% grid +r_fieldWeakHi = 1500; % [-] Input target High threshold for reaching maximum Field Weakening / Phase Advance +r_fieldWeakLo = 1000; % [-] Input target Low threshold for starting Field Weakening / Phase Advance +n_fieldWeakAuthHi = 400; % [rpm] Motor speed High for field weakening authorization +n_fieldWeakAuthLo = 300; % [rpm] Motor speed Low for field weakening authorization -% Q axis control gains -cf_iqKp = 0.5; % [-] P gain -cf_iqKi = 100 / f_ctrl; % [-] I gain +% FOC method +id_fieldWeakMax = 5 * i_sca; % [A] Field weakening maximum current -% D axis control gains -cf_idKp = 0.2; % [-] P gain -cf_idKi = 60 / f_ctrl; % [-] I gain +% SIN method +a_phaAdvMax = 25; % [deg] Maximum phase advance angle -% Speed control gains -cf_nKp = 1.18; % [-] P gain -cf_nKi = 20.4 / f_ctrl; % [-] I gain -% Limitations -%------------------------------- +%% F05_Field_Oriented_Control +b_selPhaABCurrMeas = 1; % [-] Select measured current phases: {iA,iB} = 1 (default); {iB,iC} = 0 + +% Motor Limitations Calibratables +cf_iqKiLimProt = 60 / (f_ctrl/3); % [-] Current limit protection integral gain (only used in VLT_MODE and SPD_MODE) +cf_nKiLimProt = 20 / (f_ctrl/3); % [-] Speed limit protection integral gain (only used in VLT_MODE and TRQ_MODE) +cf_KbLimProt = 1000 / (f_ctrl/3);% [-] Back calculation gain for integral anti-windup + % Voltage Limitations V_margin = 100; % [-] Voltage margin to make sure that there is a sufficiently wide pulse for a good phase current measurement Vd_max = 1000 - V_margin; @@ -130,12 +127,9 @@ Vq_max_M1 = sqrt(Vd_max^2 - Vq_max_XA.^2); % Circle limitations look- % stairs(Vq_max_XA, Vq_max_M1); legend('V_{max}'); % Speed limitations -cf_nKpLimProt = 5; % [-] Speed limit protection gain (only used in VLT_MODE and TRQ_MODE) -n_max = 800; % [rpm] Maximum motor speed +n_max = 1000; % [rpm] Maximum motor speed % Current Limitations -cf_iqKpLimProt = 7.2; % [-] Current limit protection gain (only used in VLT_MODE and SPD_MODE) -cf_iqKiLimProt = 40.7 / f_ctrl; % [-] Current limit protection integral gain (only used in SPD_MODE) i_max = 15; % [A] Maximum allowed motor current (continuous) i_max = i_max * i_sca; iq_maxSca_XA = 0:0.02:0.99; @@ -145,11 +139,38 @@ iq_maxSca_M1 = sqrt(1 - iq_maxSca_XA.^2); % stairs(iq_maxSca_XA, iq_maxSca_M1); legend('i_{maxSca}'); %------------------------------- -%% F05_Control_Type_Management +% Q axis control gains +cf_iqKp = 0.3; % [-] P gain +cf_iqKi = 100 / (f_ctrl/3); % [-] I gain + +% D axis control gains +cf_idKp = 0.2; % [-] P gain +cf_idKi = 60 / (f_ctrl/3); % [-] I gain + +% Speed control gains +cf_nKp = 1.18; % [-] P gain +cf_nKi = 20.4 / (f_ctrl/3);% [-] I gain +%------------------------------- + +%% F06_Control_Type_Management + % Commutation method z_commutMap_M1 = [-1 -1 0 1 1 0; % Phase A 1 0 -1 -1 0 1; % Phase B - 0 1 1 0 -1 -1]; % Phase C [-] Commutation method map + 0 1 1 0 -1 -1]; % Phase C [-] Commutation method map + +omega = a_elecAngle_XA*(pi/180); +pha_adv = 30; % [deg] Phase advance to mach commands with the Hall position +r_sinPhaA_M1 = -sin(omega + pha_adv*(pi/180)); +r_sinPhaB_M1 = -sin(omega - 120*(pi/180) + pha_adv*(pi/180)); +r_sinPhaC_M1 = -sin(omega + 120*(pi/180) + pha_adv*(pi/180)); + +% Sinusoidal 3rd harmonic method +A = 1.15; % Sine amplitude (tunable to get the Saddle sin maximum to value 1000) +sin3Arm = -0.224*sin(3*(omega + pha_adv*(pi/180))); % 3rd armonic +r_sin3PhaA_M1 = sin3Arm + A*r_sinPhaA_M1; +r_sin3PhaB_M1 = sin3Arm + A*r_sinPhaB_M1; +r_sin3PhaC_M1 = sin3Arm + A*r_sinPhaC_M1; disp('---- BLDC_controller: Initialization OK ----'); @@ -158,64 +179,70 @@ show_fig = 0; if show_fig + % Apply scaling sca_factor = 1000; % [-] scalling factor (to avoid truncation approximations on integer data type) + r_sinPhaA_M1sca = sca_factor * r_sinPhaA_M1; + r_sinPhaB_M1sca = sca_factor * r_sinPhaB_M1; + r_sinPhaC_M1sca = sca_factor * r_sinPhaC_M1; + r_sin3PhaA_M1sca = sca_factor * r_sin3PhaA_M1; + r_sin3PhaB_M1sca = sca_factor * r_sin3PhaB_M1; + r_sin3PhaC_M1sca = sca_factor * r_sin3PhaC_M1; - % Trapezoidal method - a_trapElecAngle_XA = [0 60 120 180 240 300 360]; % [deg] Electrical angle grid - r_trapPhaA_M1 = sca_factor*[ 1 1 1 -1 -1 -1 1]; - r_trapPhaB_M1 = sca_factor*[-1 -1 1 1 1 -1 -1]; - r_trapPhaC_M1 = sca_factor*[ 1 -1 -1 -1 1 1 1]; - - % Sinusoidal method - a_sinElecAngle_XA = 0:10:360; - omega = a_sinElecAngle_XA*(pi/180); - pha_adv = 30; % [deg] Phase advance to mach commands with the Hall position - r_sinPhaA_M1 = -sca_factor*sin(omega + pha_adv*(pi/180)); - r_sinPhaB_M1 = -sca_factor*sin(omega - 120*(pi/180) + pha_adv*(pi/180)); - r_sinPhaC_M1 = -sca_factor*sin(omega + 120*(pi/180) + pha_adv*(pi/180)); + % Commutation method + a_commElecAngle_XA = [0 60 120 180 240 300 360]; % [deg] Electrical angle grid + hall_A = [0 0 0 1 1 1 1] + 4; + hall_B = [1 1 0 0 0 1 1] + 2; + hall_C = [0 1 1 1 0 0 0]; % SVM (Space Vector Modulation) calculation - SVM_vec = [r_sinPhaA_M1; r_sinPhaB_M1; r_sinPhaC_M1]; + SVM_vec = [r_sinPhaA_M1sca; r_sinPhaB_M1sca; r_sinPhaC_M1sca]; SVM_min = min(SVM_vec); SVM_max = max(SVM_vec); SVM_sum = SVM_min + SVM_max; SVM_vec = SVM_vec - 0.5*SVM_sum; SVM_vec = (2/sqrt(3))*SVM_vec; - - hall_A = [0 0 0 1 1 1 1] + 4; - hall_B = [1 1 0 0 0 1 1] + 2; - hall_C = [0 1 1 1 0 0 0]; - + color = ['m' 'g' 'b']; lw = 1.5; figure - s1 = subplot(221); hold on - stairs(a_trapElecAngle_XA, hall_A, color(1), 'Linewidth', lw); - stairs(a_trapElecAngle_XA, hall_B, color(2), 'Linewidth', lw); - stairs(a_trapElecAngle_XA, hall_C, color(3), 'Linewidth', lw); - xticks(a_trapElecAngle_XA); + s1 = subplot(231); hold on + stairs(a_commElecAngle_XA, hall_A, color(1), 'Linewidth', lw); + stairs(a_commElecAngle_XA, hall_B, color(2), 'Linewidth', lw); + stairs(a_commElecAngle_XA, hall_C, color(3), 'Linewidth', lw); + xticks(a_commElecAngle_XA); + grid + yticks(0:5); + yticklabels({'0','1','0','1','0','1'}); + title('Hall sensors'); + legend('Phase A','Phase B','Phase C','Location','NorthEast'); + + s2 = subplot(232); hold on + stairs(a_commElecAngle_XA, hall_A, color(1), 'Linewidth', lw); + stairs(a_commElecAngle_XA, hall_B, color(2), 'Linewidth', lw); + stairs(a_commElecAngle_XA, hall_C, color(3), 'Linewidth', lw); + xticks(a_commElecAngle_XA); grid yticks(0:5); yticklabels({'0','1','0','1','0','1'}); title('Hall sensors'); legend('Phase A','Phase B','Phase C','Location','NorthEast'); - s2 = subplot(222); hold on - stairs(a_trapElecAngle_XA, hall_A, color(1), 'Linewidth', lw); - stairs(a_trapElecAngle_XA, hall_B, color(2), 'Linewidth', lw); - stairs(a_trapElecAngle_XA, hall_C, color(3), 'Linewidth', lw); - xticks(a_trapElecAngle_XA); + s3 = subplot(233); hold on + stairs(a_commElecAngle_XA, hall_A, color(1), 'Linewidth', lw); + stairs(a_commElecAngle_XA, hall_B, color(2), 'Linewidth', lw); + stairs(a_commElecAngle_XA, hall_C, color(3), 'Linewidth', lw); + xticks(a_commElecAngle_XA); grid yticks(0:5); yticklabels({'0','1','0','1','0','1'}); title('Hall sensors'); legend('Phase A','Phase B','Phase C','Location','NorthEast'); - s3 = subplot(223); hold on - stairs(a_trapElecAngle_XA, sca_factor*[z_commutMap_M1(1,:) z_commutMap_M1(1,1)] + 6000, color(1), 'Linewidth', lw); - stairs(a_trapElecAngle_XA, sca_factor*[z_commutMap_M1(2,:) z_commutMap_M1(2,1)] + 3000, color(2), 'Linewidth', lw); - stairs(a_trapElecAngle_XA, sca_factor*[z_commutMap_M1(3,:) z_commutMap_M1(3,1)], color(3), 'Linewidth', lw); - xticks(a_trapElecAngle_XA); + s4 = subplot(234); hold on + stairs(a_commElecAngle_XA, sca_factor*[z_commutMap_M1(1,:) z_commutMap_M1(1,1)] + 6000, color(1), 'Linewidth', lw); + stairs(a_commElecAngle_XA, sca_factor*[z_commutMap_M1(2,:) z_commutMap_M1(2,1)] + 3000, color(2), 'Linewidth', lw); + stairs(a_commElecAngle_XA, sca_factor*[z_commutMap_M1(3,:) z_commutMap_M1(3,1)], color(3), 'Linewidth', lw); + xticks(a_commElecAngle_XA); yticks(-1000:1000:7000); yticklabels({'-1000','0','1000','-1000','0','1000','-1000','0','1000'}); ylim([-1000 7000]); @@ -223,16 +250,27 @@ if show_fig title('Commutation method [0]'); xlabel('Electrical angle [deg]'); - s4 = subplot(224); hold on - plot(a_sinElecAngle_XA, SVM_vec(1,:), color(1), 'Linewidth', lw); - plot(a_sinElecAngle_XA, SVM_vec(2,:), color(2), 'Linewidth', lw); - plot(a_sinElecAngle_XA, SVM_vec(3,:), color(3), 'Linewidth', lw); - xticks(a_trapElecAngle_XA); + s5 = subplot(235); hold on + plot(a_elecAngle_XA, r_sin3PhaA_M1sca, color(1), 'Linewidth', lw); + plot(a_elecAngle_XA, r_sin3PhaB_M1sca, color(2), 'Linewidth', lw); + plot(a_elecAngle_XA, r_sin3PhaC_M1sca, color(3), 'Linewidth', lw); + xticks(a_commElecAngle_XA); ylim([-1000 1000]) grid - title('FOC method [1]'); + title('SIN method [1]'); xlabel('Electrical angle [deg]'); - linkaxes([s1 s2 s3 s4],'x'); + + s6 = subplot(236); hold on + plot(a_elecAngle_XA, SVM_vec(1,:), color(1), 'Linewidth', lw); + plot(a_elecAngle_XA, SVM_vec(2,:), color(2), 'Linewidth', lw); + plot(a_elecAngle_XA, SVM_vec(3,:), color(3), 'Linewidth', lw); + xticks(a_commElecAngle_XA); + ylim([-1000 1000]) + grid + title('FOC method [2]'); + xlabel('Electrical angle [deg]'); + + linkaxes([s1 s2 s3 s4 s5 s6],'x'); xlim([0 360]); end diff --git a/02_Arduino/hoverserial/hoverserial.ino b/02_Arduino/hoverserial/hoverserial.ino new file mode 100644 index 0000000..d6908c3 --- /dev/null +++ b/02_Arduino/hoverserial/hoverserial.ino @@ -0,0 +1,174 @@ +// ******************************************************************* +// Arduino Nano 3.3V example code +// for https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC +// +// Copyright (C) 2019-2020 Emanuel FERU +// +// ******************************************************************* +// INFO: +// • This sketch uses the the Serial Software interface to communicate and send commands to the hoverboard +// • The built-in (HW) Serial interface is used for debugging and visualization. In case the debugging is not needed, +// it is recommended to use the built-in Serial interface for full speed perfomace. +// • The data packaging includes a Start Frame, checksum, and re-syncronization capability for reliable communication +// +// CONFIGURATION on the hoverboard side in config.h: +// • Option 1: Serial on Left Sensor cable (long wired cable) +// #define CONTROL_SERIAL_USART2 +// #define FEEDBACK_SERIAL_USART2 +// // #define DEBUG_SERIAL_USART2 +// • Option 2: Serial on Right Sensor cable (short wired cable) - recommended, so the ADCs on the other cable are still available +// #define CONTROL_SERIAL_USART3 +// #define FEEDBACK_SERIAL_USART3 +// // #define DEBUG_SERIAL_USART3 +// ******************************************************************* + +// ########################## DEFINES ########################## +#define HOVER_SERIAL_BAUD 38400 // [-] Baud rate for HoverSerial (used to communicate with the hoverboard) +#define SERIAL_BAUD 115200 // [-] Baud rate for built-in Serial (used for the Serial Monitor) +#define START_FRAME 0xAAAA // [-] Start frme definition for reliable serial communication +#define TIME_SEND 100 // [ms] Sending time interval +#define SPEED_MAX_TEST 300 // [-] Maximum speed for testing +//#define DEBUG_RX // [-] Debug received data. Prints all bytes to serial (comment-out to disable) + +#include +SoftwareSerial HoverSerial(2,3); // RX, TX + +// Global variables +uint8_t idx = 0; // Index for new data pointer +uint16_t bufStartFrame; // Buffer Start Frame +byte *p; // Pointer declaration for the new received data +byte incomingByte; +byte incomingBytePrev; + +typedef struct{ + uint16_t start; + int16_t steer; + int16_t speed; + uint16_t checksum; +} SerialCommand; +SerialCommand Command; + +typedef struct{ + uint16_t start; + int16_t cmd1; + int16_t cmd2; + int16_t speedR; + int16_t speedL; + int16_t speedR_meas; + int16_t speedL_meas; + int16_t batVoltage; + int16_t boardTemp; + int16_t checksum; +} SerialFeedback; +SerialFeedback Feedback; +SerialFeedback NewFeedback; + +// ########################## SETUP ########################## +void setup() +{ + Serial.begin(SERIAL_BAUD); + Serial.println("Hoverboard Serial v1.0"); + + HoverSerial.begin(HOVER_SERIAL_BAUD); + pinMode(LED_BUILTIN, OUTPUT); +} + +// ########################## SEND ########################## +void Send(int16_t uSteer, int16_t uSpeed) +{ + // Create command + Command.start = (uint16_t)START_FRAME; + Command.steer = (int16_t)uSteer; + Command.speed = (int16_t)uSpeed; + Command.checksum = (uint16_t)(Command.start ^ Command.steer ^ Command.speed); + + // Write to Serial + HoverSerial.write((uint8_t *) &Command, sizeof(Command)); +} + +// ########################## RECEIVE ########################## +void Receive() +{ + // Check for new data availability in the Serial buffer + if (HoverSerial.available()) { + incomingByte = HoverSerial.read(); // Read the incoming byte + bufStartFrame = ((uint16_t)(incomingBytePrev) << 8) + incomingByte; // Construct the start frame + } + else { + return; + } + + // If DEBUG_RX is defined print all incoming bytes + #ifdef DEBUG_RX + Serial.print(incomingByte); + return; + #endif + + // Copy received data + if (bufStartFrame == START_FRAME) { // Initialize if new data is detected + p = (byte *)&NewFeedback; + *p++ = incomingBytePrev; + *p++ = incomingByte; + idx = 2; + } else if (idx >= 2 && idx < sizeof(SerialFeedback)) { // Save the new received data + *p++ = incomingByte; + idx++; + } + + // Check if we reached the end of the package + if (idx == sizeof(SerialFeedback)) { + uint16_t checksum; + checksum = (uint16_t)(NewFeedback.start ^ NewFeedback.cmd1 ^ NewFeedback.cmd2 ^ NewFeedback.speedR ^ NewFeedback.speedL + ^ NewFeedback.speedR_meas ^ NewFeedback.speedL_meas ^ NewFeedback.batVoltage ^ NewFeedback.boardTemp); + + // Check validity of the new data + if (NewFeedback.start == START_FRAME && checksum == NewFeedback.checksum) { + // Copy the new data + memcpy(&Feedback, &NewFeedback, sizeof(SerialFeedback)); + + // Print data to built-in Serial + Serial.print("1: "); Serial.print(Feedback.cmd1); + Serial.print(" 2: "); Serial.print(Feedback.cmd2); + Serial.print(" 3: "); Serial.print(Feedback.speedR); + Serial.print(" 4: "); Serial.print(Feedback.speedL); + Serial.print(" 5: "); Serial.print(Feedback.speedR_meas); + Serial.print(" 6: "); Serial.print(Feedback.speedL_meas); + Serial.print(" 7: "); Serial.print(Feedback.batVoltage); + Serial.print(" 8: "); Serial.println(Feedback.boardTemp); + } else { + Serial.println("Non-valid data skipped"); + } + idx = 0; // Reset the index (it prevents to enter in this if condition in the next cycle) + } + + // Update previous states + incomingBytePrev = incomingByte; +} + +// ########################## LOOP ########################## + +unsigned long iTimeSend = 0; +int iTestMax = SPEED_MAX_TEST; +int iTest = 0; + +void loop(void) +{ + unsigned long timeNow = millis(); + + // Check for new received data + Receive(); + + // Send commands + if (iTimeSend > timeNow) return; + iTimeSend = timeNow + TIME_SEND; + Send(0, abs(iTest)); + + // Calculate test command signal + iTest += 10; + if (iTest > iTestMax) iTest = -iTestMax; + + // Blink the LED + digitalWrite(LED_BUILTIN, (timeNow%2000)<1000); +} + +// ########################## END ########################## diff --git a/Inc/BLDC_controller.h b/Inc/BLDC_controller.h index 6583d08..acfba7a 100644 --- a/Inc/BLDC_controller.h +++ b/Inc/BLDC_controller.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'BLDC_controller'. * - * Model version : 1.1199 + * Model version : 1.1249 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Sun Nov 3 12:28:16 2019 + * C/C++ source code generated on : Thu Dec 12 20:22:31 2019 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex @@ -30,122 +30,150 @@ /* Forward declaration for rtModel */ typedef struct tag_RTM RT_MODEL; -/* Block signals and states (auto storage) for system '/Counter' */ +/* Block signals and states (auto storage) for system '/Counter' */ typedef struct { - int16_T UnitDelay_DSTATE; /* '/UnitDelay' */ + int16_T UnitDelay_DSTATE; /* '/UnitDelay' */ } DW_Counter; -/* Block signals and states (auto storage) for system '/PI_clamp_fixdt_id' */ +/* Block signals and states (auto storage) for system '/PI_clamp_fixdt' */ typedef struct { - int32_T UnitDelay_DSTATE; /* '/UnitDelay' */ - boolean_T UnitDelay1_DSTATE; /* '/UnitDelay1' */ + int32_T UnitDelay_DSTATE; /* '/UnitDelay' */ + boolean_T UnitDelay1_DSTATE; /* '/UnitDelay1' */ } DW_PI_clamp_fixdt; -/* Block signals and states (auto storage) for system '/Low_Pass_Filter' */ +/* Block signals and states (auto storage) for system '/Low_Pass_Filter' */ typedef struct { - int16_T UnitDelay3_DSTATE[2]; /* '/UnitDelay3' */ + int16_T UnitDelay3_DSTATE[2]; /* '/UnitDelay3' */ } DW_Low_Pass_Filter; -/* Block signals and states (auto storage) for system '/PI_clamp_fixdt_n' */ +/* Block signals and states (auto storage) for system '/I_backCalc_fixdt' */ typedef struct { - int32_T UnitDelay_DSTATE; /* '/UnitDelay' */ - boolean_T UnitDelay1_DSTATE; /* '/UnitDelay1' */ -} DW_PI_clamp_fixdt_c; + int32_T UnitDelay_DSTATE; /* '/UnitDelay' */ + int32_T UnitDelay_DSTATE_h; /* '/UnitDelay' */ +} DW_I_backCalc_fixdt; -/* Block signals and states (auto storage) for system '/Counter' */ +/* Block signals and states (auto storage) for system '/Counter' */ typedef struct { - uint16_T UnitDelay_DSTATE; /* '/UnitDelay' */ + uint16_T UnitDelay_DSTATE; /* '/UnitDelay' */ } DW_Counter_l; -/* Block signals and states (auto storage) for system '/either_edge' */ +/* Block signals and states (auto storage) for system '/either_edge' */ typedef struct { - boolean_T UnitDelay_DSTATE; /* '/UnitDelay' */ + boolean_T UnitDelay_DSTATE; /* '/UnitDelay' */ } DW_either_edge; /* Block signals and states (auto storage) for system '/Debounce_Filter' */ typedef struct { - DW_either_edge either_edge_k; /* '/either_edge' */ - DW_Counter_l Counter_h; /* '/Counter' */ - DW_Counter_l Counter_i0; /* '/Counter' */ - boolean_T UnitDelay_DSTATE; /* '/UnitDelay' */ + DW_either_edge either_edge_k; /* '/either_edge' */ + DW_Counter_l Counter_h; /* '/Counter' */ + DW_Counter_l Counter_i0; /* '/Counter' */ + boolean_T UnitDelay_DSTATE; /* '/UnitDelay' */ } DW_Debounce_Filter; /* Block signals and states (auto storage) for system '' */ typedef struct { DW_either_edge either_edge_a; /* '/either_edge' */ DW_Debounce_Filter Debounce_Filter_f;/* '/Debounce_Filter' */ - DW_PI_clamp_fixdt PI_clamp_fixdt_iq; /* '/PI_clamp_fixdt_iq' */ - DW_PI_clamp_fixdt_c PI_clamp_fixdt_n_o;/* '/PI_clamp_fixdt_n' */ - DW_Low_Pass_Filter Low_Pass_Filter_m;/* '/Low_Pass_Filter' */ - DW_PI_clamp_fixdt PI_clamp_fixdt_id; /* '/PI_clamp_fixdt_id' */ - DW_Counter Counter_e; /* '/Counter' */ - int32_T UnitDelay_DSTATE; /* '/UnitDelay' */ - int16_T Gain4[3]; /* '/Gain4' */ - int16_T Sum1[2]; /* '/Sum1' */ - int16_T z_counterRawPrev; /* '/z_counterRawPrev' */ - int16_T Merge; /* '/Merge' */ - int16_T Divide1; /* '/Divide1' */ - int16_T Divide4; /* '/Divide4' */ - int16_T Switch1; /* '/Switch1' */ - int16_T Divide11; /* '/Divide11' */ - int16_T UnitDelay3_DSTATE; /* '/UnitDelay3' */ - int16_T UnitDelay4_DSTATE; /* '/UnitDelay4' */ - int16_T UnitDelay4_DSTATE_p; /* '/UnitDelay4' */ - int16_T UnitDelay2_DSTATE; /* '/UnitDelay2' */ - int16_T UnitDelay3_DSTATE_o; /* '/UnitDelay3' */ - int16_T UnitDelay5_DSTATE; /* '/UnitDelay5' */ - int16_T UnitDelay4_DSTATE_e; /* '/UnitDelay4' */ - int16_T UnitDelay4_DSTATE_er; /* '/UnitDelay4' */ - int8_T Switch2; /* '/Switch2' */ - int8_T UnitDelay2_DSTATE_b; /* '/UnitDelay2' */ - int8_T If2_ActiveSubsystem; /* '/If2' */ + DW_I_backCalc_fixdt I_backCalc_fixdt_g;/* '/I_backCalc_fixdt' */ + DW_I_backCalc_fixdt I_backCalc_fixdt1;/* '/I_backCalc_fixdt1' */ + DW_I_backCalc_fixdt I_backCalc_fixdt_i;/* '/I_backCalc_fixdt' */ + DW_Low_Pass_Filter Low_Pass_Filter_m;/* '/Low_Pass_Filter' */ + DW_PI_clamp_fixdt PI_clamp_fixdt_a; /* '/PI_clamp_fixdt' */ + DW_PI_clamp_fixdt PI_clamp_fixdt_o; /* '/PI_clamp_fixdt' */ + DW_PI_clamp_fixdt PI_clamp_fixdt_k; /* '/PI_clamp_fixdt' */ + DW_Counter Counter_e; /* '/Counter' */ + int32_T Divide1; /* '/Divide1' */ + int32_T UnitDelay_DSTATE; /* '/UnitDelay' */ + int16_T Gain4[3]; /* '/Gain4' */ + int16_T Sum1[2]; /* '/Sum1' */ + int16_T z_counterRawPrev; /* '/z_counterRawPrev' */ + int16_T Merge1; /* '/Merge1' */ + int16_T Divide3; /* '/Divide3' */ + int16_T Vd_max1; /* '/Vd_max1' */ + int16_T Gain3; /* '/Gain3' */ + int16_T Vq_max_M1; /* '/Vq_max_M1' */ + int16_T Gain5; /* '/Gain5' */ + int16_T i_max; /* '/i_max' */ + int16_T Divide1_a; /* '/Divide1' */ + int16_T Gain1; /* '/Gain1' */ + int16_T Gain4_c; /* '/Gain4' */ + int16_T Switch2; /* '/Switch2' */ + int16_T Switch2_l; /* '/Switch2' */ + int16_T Switch2_c; /* '/Switch2' */ + int16_T Merge; /* '/Merge' */ + int16_T Switch1; /* '/Switch1' */ + int16_T Divide11; /* '/Divide11' */ + int16_T UnitDelay3_DSTATE; /* '/UnitDelay3' */ + int16_T UnitDelay4_DSTATE; /* '/UnitDelay4' */ + int16_T UnitDelay2_DSTATE; /* '/UnitDelay2' */ + int16_T UnitDelay3_DSTATE_o; /* '/UnitDelay3' */ + int16_T UnitDelay5_DSTATE; /* '/UnitDelay5' */ + int16_T UnitDelay4_DSTATE_e; /* '/UnitDelay4' */ + int16_T UnitDelay4_DSTATE_eu; /* '/UnitDelay4' */ + int16_T UnitDelay4_DSTATE_h; /* '/UnitDelay4' */ + int8_T Switch2_e; /* '/Switch2' */ + int8_T UnitDelay2_DSTATE_b; /* '/UnitDelay2' */ + int8_T If4_ActiveSubsystem; /* '/If4' */ int8_T If1_ActiveSubsystem; /* '/If1' */ - int8_T If2_ActiveSubsystem_a; /* '/If2' */ - int8_T If1_ActiveSubsystem_e; /* '/If1' */ - int8_T If1_ActiveSubsystem_f; /* '/If1' */ - int8_T If2_ActiveSubsystem_c; /* '/If2' */ - int8_T SwitchCase_ActiveSubsystem; /* '/Switch Case' */ - uint8_T UnitDelay3_DSTATE_fy; /* '/UnitDelay3' */ - uint8_T UnitDelay1_DSTATE; /* '/UnitDelay1' */ - uint8_T UnitDelay2_DSTATE_f; /* '/UnitDelay2' */ - uint8_T UnitDelay1_DSTATE_p; /* '/UnitDelay1' */ - uint8_T UnitDelay_DSTATE_c; /* '/UnitDelay' */ + int8_T If2_ActiveSubsystem; /* '/If2' */ + int8_T If2_ActiveSubsystem_a; /* '/If2' */ + uint8_T z_ctrlMod; /* '/F03_02_Control_Mode_Manager' */ + uint8_T UnitDelay3_DSTATE_fy; /* '/UnitDelay3' */ + uint8_T UnitDelay1_DSTATE; /* '/UnitDelay1' */ + uint8_T UnitDelay2_DSTATE_f; /* '/UnitDelay2' */ uint8_T is_active_c1_BLDC_controller;/* '/F03_02_Control_Mode_Manager' */ uint8_T is_c1_BLDC_controller; /* '/F03_02_Control_Mode_Manager' */ uint8_T is_ACTIVE; /* '/F03_02_Control_Mode_Manager' */ - boolean_T Merge_n; /* '/Merge' */ - boolean_T dz_cntTrnsDet; /* '/dz_cntTrnsDet' */ - boolean_T UnitDelay_DSTATE_g; /* '/UnitDelay' */ - boolean_T UnitDelay1_DSTATE_n; /* '/UnitDelay1' */ - boolean_T n_commDeacv_Mode; /* '/n_commDeacv' */ - boolean_T n_fieldWeakAuth_Mode; /* '/n_fieldWeakAuth' */ - boolean_T dz_cntTrnsDet_Mode; /* '/dz_cntTrnsDet' */ + boolean_T Merge_n; /* '/Merge' */ + boolean_T dz_cntTrnsDet; /* '/dz_cntTrnsDet' */ + boolean_T UnitDelay2_DSTATE_g; /* '/UnitDelay2' */ + boolean_T UnitDelay5_DSTATE_l; /* '/UnitDelay5' */ + boolean_T UnitDelay6_DSTATE; /* '/UnitDelay6' */ + boolean_T UnitDelay_DSTATE_e; /* '/UnitDelay' */ + boolean_T UnitDelay1_DSTATE_n; /* '/UnitDelay1' */ + boolean_T n_commDeacv_Mode; /* '/n_commDeacv' */ + boolean_T dz_cntTrnsDet_Mode; /* '/dz_cntTrnsDet' */ } DW; /* Constant parameters (auto storage) */ typedef struct { - /* Computed Parameter: z_commutMap_M1_table - * Referenced by: '/z_commutMap_M1' + /* Computed Parameter: r_sin3PhaA_M1_Table + * Referenced by: '/r_sin3PhaA_M1' + */ + int16_T r_sin3PhaA_M1_Table[181]; + + /* Computed Parameter: r_sin3PhaB_M1_Table + * Referenced by: '/r_sin3PhaB_M1' + */ + int16_T r_sin3PhaB_M1_Table[181]; + + /* Computed Parameter: r_sin3PhaC_M1_Table + * Referenced by: '/r_sin3PhaC_M1' */ - int16_T z_commutMap_M1_table[18]; + int16_T r_sin3PhaC_M1_Table[181]; /* Computed Parameter: r_sin_M1_Table - * Referenced by: '/r_sin_M1' + * Referenced by: '/r_sin_M1' */ int16_T r_sin_M1_Table[181]; /* Computed Parameter: r_cos_M1_Table - * Referenced by: '/r_cos_M1' + * Referenced by: '/r_cos_M1' */ int16_T r_cos_M1_Table[181]; /* Computed Parameter: iq_maxSca_M1_Table - * Referenced by: '/iq_maxSca_M1' + * Referenced by: '/iq_maxSca_M1' */ uint16_T iq_maxSca_M1_Table[50]; + /* Computed Parameter: z_commutMap_M1_table + * Referenced by: '/z_commutMap_M1' + */ + int8_T z_commutMap_M1_table[18]; + /* Computed Parameter: vec_hallToPos_Value - * Referenced by: '/vec_hallToPos' + * Referenced by: '/vec_hallToPos' */ int8_T vec_hallToPos_Value[8]; } ConstP; @@ -178,27 +206,24 @@ typedef struct { /* Parameters (auto storage) */ struct P_ { int32_T dV_openRate; /* Variable: dV_openRate - * Referenced by: '/dV_openRate' + * Referenced by: '/dV_openRate' */ int16_T dz_cntTrnsDetHi; /* Variable: dz_cntTrnsDetHi - * Referenced by: '/dz_cntTrnsDet' + * Referenced by: '/dz_cntTrnsDet' */ int16_T dz_cntTrnsDetLo; /* Variable: dz_cntTrnsDetLo - * Referenced by: '/dz_cntTrnsDet' - */ - int16_T r_errInpTgtThres; /* Variable: r_errInpTgtThres - * Referenced by: '/r_errInpTgtThres' + * Referenced by: '/dz_cntTrnsDet' */ int16_T z_maxCntRst; /* Variable: z_maxCntRst * Referenced by: - * '/Counter' - * '/z_maxCntRst' - * '/z_maxCntRst2' - * '/UnitDelay3' - * '/z_counter' + * '/Counter' + * '/z_maxCntRst' + * '/z_maxCntRst2' + * '/UnitDelay3' + * '/z_counter' */ uint16_T cf_speedCoef; /* Variable: cf_speedCoef - * Referenced by: '/cf_speedCoef' + * Referenced by: '/cf_speedCoef' */ uint16_T t_errDequal; /* Variable: t_errDequal * Referenced by: '/t_errDequal' @@ -206,77 +231,92 @@ struct P_ { uint16_T t_errQual; /* Variable: t_errQual * Referenced by: '/t_errQual' */ - uint16_T cf_idKp; /* Variable: cf_idKp - * Referenced by: '/cf_idKp1' - */ - uint16_T cf_iqKp; /* Variable: cf_iqKp - * Referenced by: '/cf_iqKp' - */ - uint16_T cf_nKp; /* Variable: cf_nKp - * Referenced by: '/cf_nKp' - */ int16_T Vd_max; /* Variable: Vd_max * Referenced by: - * '/Vd_max1' - * '/Vd_max' + * '/Vd_max1' + * '/Vd_max' */ int16_T Vq_max_M1[46]; /* Variable: Vq_max_M1 - * Referenced by: '/Vq_max_M1' + * Referenced by: '/Vq_max_M1' */ int16_T Vq_max_XA[46]; /* Variable: Vq_max_XA - * Referenced by: '/Vq_max_XA' + * Referenced by: '/Vq_max_XA' + */ + int16_T a_phaAdvMax; /* Variable: a_phaAdvMax + * Referenced by: '/a_phaAdvMax' */ int16_T i_max; /* Variable: i_max * Referenced by: - * '/i_max' - * '/i_max' + * '/i_max' + * '/i_max' */ - int16_T id_fieldWeak_M1[12]; /* Variable: id_fieldWeak_M1 - * Referenced by: '/id_fieldWeak_M1' + int16_T id_fieldWeakMax; /* Variable: id_fieldWeakMax + * Referenced by: '/id_fieldWeakMax' */ int16_T n_commAcvLo; /* Variable: n_commAcvLo - * Referenced by: '/n_commDeacv' + * Referenced by: '/n_commDeacv' */ int16_T n_commDeacvHi; /* Variable: n_commDeacvHi - * Referenced by: '/n_commDeacv' + * Referenced by: '/n_commDeacv' */ int16_T n_fieldWeakAuthHi; /* Variable: n_fieldWeakAuthHi - * Referenced by: '/n_fieldWeakAuth' + * Referenced by: '/n_fieldWeakAuthHi' */ int16_T n_fieldWeakAuthLo; /* Variable: n_fieldWeakAuthLo - * Referenced by: '/n_fieldWeakAuth' + * Referenced by: '/n_fieldWeakAuthLo' */ int16_T n_max; /* Variable: n_max * Referenced by: - * '/n_max1' - * '/n_max' + * '/n_max1' + * '/n_max' */ int16_T n_stdStillDet; /* Variable: n_stdStillDet - * Referenced by: '/n_stdStillDet' + * Referenced by: '/n_stdStillDet' + */ + int16_T r_errInpTgtThres; /* Variable: r_errInpTgtThres + * Referenced by: '/r_errInpTgtThres' + */ + int16_T r_fieldWeakHi; /* Variable: r_fieldWeakHi + * Referenced by: '/r_fieldWeakHi' */ - int16_T r_fieldWeak_XA[12]; /* Variable: r_fieldWeak_XA - * Referenced by: '/r_fieldWeak_XA' + int16_T r_fieldWeakLo; /* Variable: r_fieldWeakLo + * Referenced by: '/r_fieldWeakLo' + */ + uint16_T cf_KbLimProt; /* Variable: cf_KbLimProt + * Referenced by: + * '/cf_KbLimProt' + * '/cf_KbLimProt' + */ + uint16_T cf_idKp; /* Variable: cf_idKp + * Referenced by: '/cf_idKp1' + */ + uint16_T cf_iqKp; /* Variable: cf_iqKp + * Referenced by: '/cf_iqKp' + */ + uint16_T cf_nKp; /* Variable: cf_nKp + * Referenced by: '/cf_nKp' */ uint16_T cf_currFilt; /* Variable: cf_currFilt - * Referenced by: '/cf_currFilt' + * Referenced by: '/cf_currFilt' */ uint16_T cf_idKi; /* Variable: cf_idKi - * Referenced by: '/cf_idKi1' + * Referenced by: '/cf_idKi1' */ uint16_T cf_iqKi; /* Variable: cf_iqKi - * Referenced by: '/cf_iqKi' + * Referenced by: '/cf_iqKi' */ uint16_T cf_iqKiLimProt; /* Variable: cf_iqKiLimProt - * Referenced by: '/cf_iqKiLimProt' + * Referenced by: + * '/cf_iqKiLimProt' + * '/cf_iqKiLimProt' */ uint16_T cf_nKi; /* Variable: cf_nKi - * Referenced by: '/cf_nKi' - */ - uint16_T cf_iqKpLimProt; /* Variable: cf_iqKpLimProt - * Referenced by: '/cf_iqKpLimProt' + * Referenced by: '/cf_nKi' */ - uint16_T cf_nKpLimProt; /* Variable: cf_nKpLimProt - * Referenced by: '/cf_nKpLimProt' + uint16_T cf_nKiLimProt; /* Variable: cf_nKiLimProt + * Referenced by: + * '/cf_nKiLimProt' + * '/cf_nKiLimProt' */ uint8_T z_ctrlTypSel; /* Variable: z_ctrlTypSel * Referenced by: '/z_ctrlTypSel1' @@ -285,10 +325,12 @@ struct P_ { * Referenced by: '/b_diagEna' */ boolean_T b_fieldWeakEna; /* Variable: b_fieldWeakEna - * Referenced by: '/b_fieldWeakEna' + * Referenced by: + * '/b_fieldWeakEna' + * '/b_fieldWeakEna' */ boolean_T b_selPhaABCurrMeas; /* Variable: b_selPhaABCurrMeas - * Referenced by: '/b_selPhaABCurrMeas' + * Referenced by: '/b_selPhaABCurrMeas' */ }; @@ -313,26 +355,33 @@ extern void BLDC_controller_step(RT_MODEL *const rtM); /*- * These blocks were eliminated from the model due to optimizations: * - * Block '/Scope2' : Unused code path elimination - * Block '/Scope' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Scope12' : Unused code path elimination - * Block '/Scope8' : Unused code path elimination - * Block '/Scope9' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Duplicate' : Unused code path elimination - * Block '/Data Type Propagation' : Unused code path elimination - * Block '/Data Type Conversion2' : Eliminate redundant data type conversion - * Block '/Data Type Conversion3' : Eliminate redundant data type conversion - * Block '/Data Type Conversion6' : Eliminate redundant data type conversion + * Block '/Scope2' : Unused code path elimination + * Block '/Scope' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Data Type Duplicate' : Unused code path elimination + * Block '/Data Type Propagation' : Unused code path elimination + * Block '/Scope12' : Unused code path elimination + * Block '/Scope8' : Unused code path elimination + * Block '/Scope9' : Unused code path elimination + * Block '/Scope' : Unused code path elimination + * Block '/Data Type Conversion' : Eliminate redundant data type conversion */ /*- @@ -357,69 +406,90 @@ extern void BLDC_controller_step(RT_MODEL *const rtM); * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations' * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics' * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Control_Type_Management' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_01_Input_Scaling' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_02_Edge_Detector' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_03_Position_Calculation' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_04_Direction_Detection' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_05_Speed_Estimation' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_06_Electrical_Angle_Estimation' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_01_Input_Scaling/Commutation_Control_Type' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_01_Input_Scaling/FOC_Control_Type' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_05_Speed_Estimation/Counter' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_05_Speed_Estimation/Raw_Motor_Speed_Estimation' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_05_Speed_Estimation/Counter/rst_Delay' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/either_edge' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Default' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Dequalification' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Qualification' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/either_edge' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Dequalification/Counter' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Dequalification/Counter/rst_Delay' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Qualification/Counter' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Qualification/Counter/rst_Delay' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_01_Mode_Transition_Calculation' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_02_Control_Mode_Manager' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Clarke_Transform' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Current_Filtering' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Field_Weakening' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Inv_Clarke_Transform' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Inv_Park_Transform' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Motor_Limitations' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Open_Mode' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Park_Transform' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Voltage_Mode' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Clarke_Transform/Clarke_PhasesAB' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Clarke_Transform/Clarke_PhasesBC' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Current_Filtering/Low_Pass_Filter' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Motor_Limitations/Current_Limit_Protection' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Motor_Limitations/Speed_Limit_Protection' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Motor_Limitations/Current_Limit_Protection/Saturation Dynamic' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Motor_Limitations/Speed_Limit_Protection/Saturation Dynamic1' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Open_Mode/Rate_Limiter' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Open_Mode/rising_edge_init' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Open_Mode/Rate_Limiter/Delay_Init1' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Open_Mode/Rate_Limiter/Saturation Dynamic' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode/PI_clamp_fixdt_n' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode/PI_clamp_fixdt_n/Clamping_circuit' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode/PI_clamp_fixdt_n/Integrator' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Speed_Mode/PI_clamp_fixdt_n/Saturation_hit' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode/PI_clamp_fixdt_iq' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode/Saturation Dynamic' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode/PI_clamp_fixdt_iq/Clamping_circuit' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode/PI_clamp_fixdt_iq/Integrator' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Torque_Mode/PI_clamp_fixdt_iq/Saturation_hit' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation/PI_clamp_fixdt_id' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation/Saturation Dynamic' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation/PI_clamp_fixdt_id/Clamping_circuit' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation/PI_clamp_fixdt_id/Integrator' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Vd_Calculation/PI_clamp_fixdt_id/Saturation_hit' - * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Oriented_Control/Voltage_Mode/Saturation Dynamic1' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Weakening' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F06_Control_Type_Management' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/Task_Scheduler' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_01_Edge_Detector' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_02_Position_Calculation' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_03_Direction_Detection' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_04_Speed_Estimation' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_05_Electrical_Angle_Estimation' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_04_Speed_Estimation/Counter' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_04_Speed_Estimation/Raw_Motor_Speed_Estimation' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F01_Estimations/F01_04_Speed_Estimation/Counter/rst_Delay' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/either_edge' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Default' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Dequalification' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Qualification' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/either_edge' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Dequalification/Counter' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Dequalification/Counter/rst_Delay' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Qualification/Counter' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F02_Diagnostics/Debounce_Filter/Qualification/Counter/rst_Delay' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_01_Mode_Transition_Calculation' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_02_Control_Mode_Manager' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/Default_Control_Type' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/Default_Mode' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/FOC_Control_Type' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/Open_Mode' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/Open_Mode/Rate_Limiter' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/Open_Mode/rising_edge_init' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/Open_Mode/Rate_Limiter/Delay_Init1' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F03_Control_Mode_Manager/F03_03_Input_Target_Synthesis/Open_Mode/Rate_Limiter/Saturation Dynamic' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Weakening/Saturation Dynamic' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F04_Field_Weakening/Saturation Dynamic1' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Clarke_Transform' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Current_Filtering' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Inv_Clarke_Transform' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Inv_Park_Transform' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Park_Transform' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Sine_Cosine_Approximation' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Clarke_Transform/Clarke_PhasesAB' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Clarke_Transform/Clarke_PhasesBC' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Current_Filtering/Low_Pass_Filter' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Open_Mode' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Speed_Mode' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Torque_Mode' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Vd_Calculation' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Voltage_Mode' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Speed_Mode/PI_clamp_fixdt' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Speed_Mode/PI_clamp_fixdt/Clamping_circuit' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Speed_Mode/PI_clamp_fixdt/Integrator' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Speed_Mode/PI_clamp_fixdt/Saturation_hit' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Torque_Mode/PI_clamp_fixdt' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Torque_Mode/Saturation Dynamic1' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Torque_Mode/PI_clamp_fixdt/Clamping_circuit' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Torque_Mode/PI_clamp_fixdt/Integrator' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Torque_Mode/PI_clamp_fixdt/Saturation_hit' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Vd_Calculation/PI_clamp_fixdt' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Vd_Calculation/Saturation Dynamic' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Vd_Calculation/PI_clamp_fixdt/Clamping_circuit' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Vd_Calculation/PI_clamp_fixdt/Integrator' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Vd_Calculation/PI_clamp_fixdt/Saturation_hit' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/FOC/Voltage_Mode/Saturation Dynamic1' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Speed_Mode_Protection' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Torque_Mode_Protection' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Voltage_Mode_Protection' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Speed_Mode_Protection/Saturation Dynamic' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Torque_Mode_Protection/I_backCalc_fixdt' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Torque_Mode_Protection/I_backCalc_fixdt/Integrator' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Torque_Mode_Protection/I_backCalc_fixdt/Saturation Dynamic1' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Voltage_Mode_Protection/I_backCalc_fixdt' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Voltage_Mode_Protection/I_backCalc_fixdt1' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Voltage_Mode_Protection/I_backCalc_fixdt/Integrator' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Voltage_Mode_Protection/I_backCalc_fixdt/Saturation Dynamic1' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Voltage_Mode_Protection/I_backCalc_fixdt1/Integrator' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F05_Field_Oriented_Control/Motor_Limitations/Voltage_Mode_Protection/I_backCalc_fixdt1/Saturation Dynamic1' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F06_Control_Type_Management/COM_Method' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F06_Control_Type_Management/FOC_Method' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F06_Control_Type_Management/SIN_Method' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F06_Control_Type_Management/SIN_Method/Final_Phase_Advance_Calculation' + * '' : 'BLDCmotorControl_FOC_R2017b_fixdt/BLDC_controller/F06_Control_Type_Management/SIN_Method/Final_Phase_Advance_Calculation/Modulo_fixdt' */ #endif /* RTW_HEADER_BLDC_controller_h_ */ diff --git a/Inc/config.h b/Inc/config.h index 8b62f4a..58e320c 100644 --- a/Inc/config.h +++ b/Inc/config.h @@ -1,7 +1,8 @@ #pragma once #include "stm32f1xx_hal.h" -#define TRANSPOTTER +// ############################### DEFINE FIRMWARE VARIANT ############################### +#define TRANSPOTTER // Uncomment this line for TRANSPORTER configuration // ############################### DO-NOT-TOUCH SETTINGS ############################### @@ -82,21 +83,42 @@ //#define DEBUG_I2C_LCD // standard 16x2 or larger text-lcd via i2c-converter on right sensor board cable + // ############################### SERIAL DEBUG ############################### #ifndef TRANSPOTTER - #define DEBUG_SERIAL_USART3 // right sensor board cable, disable if I2C (nunchuck or lcd) is used! - #define DEBUG_BAUD 115200 // UART baud rate //#define DEBUG_SERIAL_SERVOTERM - #define DEBUG_SERIAL_ASCII // "1:345 2:1337 3:0 4:0 5:0 6:0 7:0 8:0\r\n" + #define DEBUG_SERIAL_ASCII // "1:345 2:1337 3:0 4:0 5:0 6:0 7:0 8:0\r\n" #endif + // ############################### INPUT ############################### // ###### CONTROL VIA UART (serial) ###### -//#define CONTROL_SERIAL_USART2 // left sensor board cable, disable if ADC or PPM is used! -#define CONTROL_BAUD 19200 // control via usart from eg an Arduino or raspberry -// for Arduino, use void loop(void){ Serial.write((uint8_t *) &steer, sizeof(steer)); Serial.write((uint8_t *) &speed, sizeof(speed));delay(20); } +#define START_FRAME 0xAAAA // [-] Start frame definition for serial commands +#define SERIAL_TIMEOUT 160 // [-] Serial timeout duration for the received data. 160 ~= 0.8 sec. Calculation: 0.8 sec / 0.005 sec + +#define USART2_BAUD 38400 // UART2 baud rate (long wired cable) +#define USART2_WORDLENGTH UART_WORDLENGTH_8B // UART_WORDLENGTH_8B or UART_WORDLENGTH_9B +// #define CONTROL_SERIAL_USART2 // left sensor board cable, disable if ADC or PPM is used! For Arduino control check the hoverSerial.ino +// #define FEEDBACK_SERIAL_USART2 // left sensor board cable, disable if ADC or PPM is used! +// #define DEBUG_SERIAL_USART2 // left sensor board cable, disable if ADC or PPM is used! + +#ifndef TRANSPOTTER + #define USART3_BAUD 38400 // UART3 baud rate (short wired cable) + #define USART3_WORDLENGTH UART_WORDLENGTH_8B // UART_WORDLENGTH_8B or UART_WORDLENGTH_9B + // #define CONTROL_SERIAL_USART3 // right sensor board cable, disable if I2C (nunchuck or lcd) is used! For Arduino control check the hoverSerial.ino + // #define FEEDBACK_SERIAL_USART3 // right sensor board cable, disable if I2C (nunchuck or lcd) is used! + #define DEBUG_SERIAL_USART3 // right sensor board cable, disable if I2C (nunchuck or lcd) is used! +#endif + +#if defined(FEEDBACK_SERIAL_USART2) || defined(DEBUG_SERIAL_USART2) +#define UART_DMA_CHANNEL DMA1_Channel7 +#endif + +#if defined(FEEDBACK_SERIAL_USART3) || defined(DEBUG_SERIAL_USART3) +#define UART_DMA_CHANNEL DMA1_Channel2 +#endif // ###### CONTROL VIA RC REMOTE ###### // left sensor board cable. Channel 1: steering, Channel 2: speed. @@ -112,15 +134,15 @@ * Make, flash and test it. */ #ifndef TRANSPOTTER - #define CONTROL_ADC // use ADC as input. disable CONTROL_SERIAL_USART2! - #define ADC1_MID_POT // ADC1 middle resting poti: comment-out if NOT a middle resting poti - #define ADC2_MID_POT // ADC2 middle resting poti: comment-out if NOT a middle resting poti - #define ADC1_MIN 0 // min ADC1-value while poti at minimum-position (0 - 4095) - #define ADC1_MID 1963 // mid ADC1-value while poti at minimum-position (ADC1_MIN - ADC1_MAX) - #define ADC1_MAX 4095 // max ADC1-value while poti at maximum-position (0 - 4095) - #define ADC2_MIN 0 // min ADC2-value while poti at minimum-position (0 - 4095) - #define ADC2_MID 2006 // mid ADC2-value while poti at minimum-position (ADC2_MIN - ADC2_MAX) - #define ADC2_MAX 4095 // max ADC2-value while poti at maximum-position (0 - 4095) + #define CONTROL_ADC // use ADC as input. disable CONTROL_SERIAL_USART2, FEEDBACK_SERIAL_USART2, DEBUG_SERIAL_USART2! + // #define ADC1_MID_POT // ADC1 middle resting poti: comment-out if NOT a middle resting poti + #define ADC1_MIN 0 // min ADC1-value while poti at minimum-position (0 - 4095) + #define ADC1_MID 1963 // mid ADC1-value while poti at minimum-position (ADC1_MIN - ADC1_MAX) + #define ADC1_MAX 4095 // max ADC1-value while poti at maximum-position (0 - 4095) + // #define ADC2_MID_POT // ADC2 middle resting poti: comment-out if NOT a middle resting poti + #define ADC2_MIN 0 // min ADC2-value while poti at minimum-position (0 - 4095) + #define ADC2_MID 2006 // mid ADC2-value while poti at minimum-position (ADC2_MIN - ADC2_MAX) + #define ADC2_MAX 4095 // max ADC2-value while poti at maximum-position (0 - 4095) #endif // ###### CONTROL VIA NINTENDO NUNCHUCK ###### @@ -129,72 +151,71 @@ * use the right one of the 2 types of nunchucks, add i2c pullups. * use original nunchuck. most clones does not work very well. */ -// #define CONTROL_NUNCHUCK // use nunchuck as input. disable DEBUG_SERIAL_USART3! +// #define CONTROL_NUNCHUCK // use nunchuck as input. disable FEEDBACK_SERIAL_USART3, DEBUG_SERIAL_USART3! -// ################################# TRANSPOTTER SETTINGS ############################ -#ifdef TRANSPOTTER - #define CONTROL_GAMETRAK - #define SUPPORT_LCD - #define SUPPORT_NUNCHUCK - - #define GAMETRAK_CONNECTION_NORMAL // for normal wiring according to the wiki instructions - //#define GAMETRAK_CONNECTION_ALTERNATE // use this define instead if you messed up the gametrak ADC wiring (steering is speed, and length of the wire is steering) - - #define ROT_P 1.2 // P coefficient for the direction controller. Positive / Negative values to invert gametrak steering direction. - #define FILTER 6553 // 0.1f - lower value == softer filter. do not use values <0.01, you will get float precision issues. - - //#define INVERT_R_DIRECTION // Invert right motor - #define INVERT_L_DIRECTION // Invert left motor - - // during nunchuck control (only relevant when activated) - #define SPEED_COEFFICIENT 14746 // 0.9f - higher value == stronger. 0.0 to ~2.0? - #define STEER_COEFFICIENT 8192 // 0.5f - higher value == stronger. if you do not want any steering, set it to 0.0; 0.0 to 1.0 -#endif - - -// ############################### MOTOR CONTROL (overwrite) ######################### -#define CTRL_TYP_SEL 1 // [-] Control type selection: 0 = Commutation , 1 = FOC Field Oriented Control (default) -#define CTRL_MOD_REQ 1 // [-] Control mode request: 0 = Open mode, 1 = Voltage mode (default), 2 = Speed mode, 3 = Torque mode +// ############################### MOTOR CONTROL ######################### +// Control selections +#define CTRL_TYP_SEL 2 // [-] Control type selection: 0 = Commutation , 1 = Sinusoidal, 2 = FOC Field Oriented Control (default) +#define CTRL_MOD_REQ 1 // [-] Control mode request: 0 = Open mode, 1 = VOLTAGE mode (default), 2 = SPEED mode, 3 = TORQUE mode. Note: SPEED and TORQUE modes are only available for FOC! #define DIAG_ENA 1 // [-] Motor Diagnostics enable flag: 0 = Disabled, 1 = Enabled (default) -#define FIELD_WEAK_ENA 0 // [-] Field Weakening enable flag: 0 = Disabled (default), 1 = Enabled -#define I_MOT_MAX (15 * A2BIT_CONV) << 4 // [A] Maximum motor current limit (Change only the first number, the rest is needed for fixed-point conversion, fixdt(1,16,4)) -#define I_DC_MAX (17 * A2BIT_CONV) // [A] Maximum DC Link current limit (This is the final current protection. Above this value, current chopping is applied. To avoid this make sure that I_DC_MAX = I_MOT_MAX + 2A ) -#define N_MOT_MAX 800 << 4 // [rpm] Maximum motor speed (change only the first number, the rest is needed for fixed-point conversion, fixdt(1,16,4)) +// Limitation settings +#define I_MOT_MAX 15 // [A] Maximum motor current limit +#define I_DC_MAX 17 // [A] Maximum DC Link current limit (This is the final current protection. Above this value, current chopping is applied. To avoid this make sure that I_DC_MAX = I_MOT_MAX + 2A) +#define N_MOT_MAX 1000 // [rpm] Maximum motor speed limit + +// Field Weakening / Phase Advance +#define FIELD_WEAK_ENA 0 // [-] Field Weakening / Phase Advance enable flag: 0 = Disabled (default), 1 = Enabled +#define FIELD_WEAK_MAX 5 // [A] Maximum Field Weakening D axis current (only for FOC). Higher current results in higher maximum speed. +#define PHASE_ADV_MAX 25 // [deg] Maximum Phase Advance angle (only for SIN). Higher angle results in higher maximum speed. +#define FIELD_WEAK_HI 1500 // [-] Input target High threshold for reaching maximum Field Weakening / Phase Advance. Do NOT set this higher than 1500. +#define FIELD_WEAK_LO 1000 // [-] Input target Low threshold for starting Field Weakening / Phase Advance. Do NOT set this higher than 1000. + +// Data checks - Do NOT touch +#if (FIELD_WEAK_ENA == 0) + #undef FIELD_WEAK_HI + #define FIELD_WEAK_HI 1000 // [-] This prevents the input target going beyond 1000 when Field Weakening is not enabled +#endif +#define INPUT_MAX MAX( 1000, FIELD_WEAK_HI) // [-] Defines the Input target maximum limitation +#define INPUT_MIN MIN(-1000,-FIELD_WEAK_HI) // [-] Defines the Input target minimum limitation +#define INPUT_MID INPUT_MAX / 2 /* GENERAL NOTES: * 1. The above parameters are over-writing the default motor parameters. For all the available parameters check BLDC_controller_data.c * 2. The parameters are represented in fixed point data type for a more efficient code execution * 3. For calibrating the fixed-point parameters use the Fixed-Point Viewer tool (see ) * 4. For more details regarding the parameters and the working principle of the controller please consult the Simulink model - * 5. A webview was created, so Matlab/Simulink installation is not needed, unless you want to regenerate the code + * 5. A webview was created, so Matlab/Simulink installation is not needed, unless you want to regenerate the code. The webview is an html page that can be opened with browsers like: Microsoft Internet Explorer or Microsoft Edge * - * NOTES Field weakening: - * 1. In BLDC_controller_data.c you can find the field weakening Map as a function of input target: MAP = id_fieldWeak_M1, XAXIS = r_fieldWeak_XA - * 2. The default calibration was experimentally calibrated to my particular needs - * 3. If you re-calibrate the field weakening map please take all the safety measures! The motors can spin very fast! - * 4. During the recalibration make sure the values in XAXIS are equally spaced for a correct Map interpolation. + * NOTES Field Weakening / Phase Advance: + * 1. The Field Weakening is a linear interpolation from 0 to FIELD_WEAK_MAX or PHASE_ADV_MAX (depeding if FOC or SIN is selected, respectively) + * 2. The Field Weakening starts engaging at FIELD_WEAK_LO and reaches the maximum value at FIELD_WEAK_HI + * 3. If you re-calibrate the Field Weakening please take all the safety measures! The motors can spin very fast! */ // ############################### DRIVING BEHAVIOR ############################### /* Inputs: - * - cmd1 and cmd2: analog normalized input values. -1000 to 1000 + * - cmd1 and cmd2: analog normalized input values. INPUT_MIN to INPUT_MAX * - button1 and button2: digital input values. 0 or 1 * - adc_buffer.l_tx2 and adc_buffer.l_rx2: unfiltered ADC values (you do not need them). 0 to 4095 * Outputs: - * - speedR and speedL: normal driving -1000 to 1000 + * - speedR and speedL: normal driving INPUT_MIN to INPUT_MAX */ +// Beep in Reverse +#define BEEPS_BACKWARD 0 // 0 or 1 + // Value of RATE is in fixdt(1,16,4): VAL_fixedPoint = VAL_floatingPoint * 2^4. In this case 480 = 30 * 2^4 -#define RATE 480 // 30.0f [-] lower value == slower rate [0, 32767] = [0.0 - 2047.9375]. Do NOT make rate negative (>32767) +#define RATE 480 // 30.0f [-] lower value == slower rate [0, 32767] = [0.0, 2047.9375]. Do NOT make rate negative (>32767) -#ifndef TRANSPOTTER - // Value of FILTER is in fixdt(0,16,16): VAL_fixedPoint = VAL_floatingPoint * 2^16. In this case 6553 = 0.1 * 2^16 - #define FILTER 6553 // 0.1f [-] lower value == softer filter [0, 65535] = [0.0 - 1.0]. +// Value of FILTER is in fixdt(0,16,16): VAL_fixedPoint = VAL_floatingPoint * 2^16. In this case 6553 = 0.1 * 2^16 +#define FILTER 6553 // 0.1f [-] lower value == softer filter [0, 65535] = [0.0 - 1.0]. +// ################################# DEFAULT SETTINGS ############################ +#ifndef TRANSPOTTER // Value of COEFFICIENT is in fixdt(1,16,14) // If VAL_floatingPoint >= 0, VAL_fixedPoint = VAL_floatingPoint * 2^14 // If VAL_floatingPoint < 0, VAL_fixedPoint = 2^16 + floor(VAL_floatingPoint * 2^14). @@ -205,37 +226,74 @@ #define INVERT_L_DIRECTION #endif -#define BEEPS_BACKWARD 0 // 0 or 1 +// ################################# TRANSPOTTER SETTINGS ############################ +#ifdef TRANSPOTTER + #define CONTROL_GAMETRAK + #define SUPPORT_LCD + #define SUPPORT_NUNCHUCK + + #define GAMETRAK_CONNECTION_NORMAL // for normal wiring according to the wiki instructions + //#define GAMETRAK_CONNECTION_ALTERNATE // use this define instead if you messed up the gametrak ADC wiring (steering is speed, and length of the wire is steering) -// ###### SIMPLE BOBBYCAR ###### + #define ROT_P 1.2 // P coefficient for the direction controller. Positive / Negative values to invert gametrak steering direction. + + //#define INVERT_R_DIRECTION // Invert right motor + #define INVERT_L_DIRECTION // Invert left motor + + // during nunchuck control (only relevant when activated) + #define SPEED_COEFFICIENT 14746 // 0.9f - higher value == stronger. 0.0 to ~2.0? + #define STEER_COEFFICIENT 8192 // 0.5f - higher value == stronger. if you do not want any steering, set it to 0.0; 0.0 to 1.0 +#endif + +// ################################# SIMPLE BOBBYCAR ################################# // for better bobbycar code see: https://github.com/larsmm/hoverboard-firmware-hack-bbcar // #define FILTER 6553 // 0.1f // #define SPEED_COEFFICIENT 49152 // -1.0f // #define STEER_COEFFICIENT 0 // 0.0f -// ###### ARMCHAIR ###### +// ################################# ARMCHAIR ################################# // #define FILTER 3276 // 0.05f // #define SPEED_COEFFICIENT 8192 // 0.5f // #define STEER_COEFFICIENT 62259 // -0.2f // ############################### VALIDATE SETTINGS ############################### -#if defined CONTROL_SERIAL_USART2 && defined CONTROL_ADC - #error CONTROL_ADC and CONTROL_SERIAL_USART2 not allowed. it is on the same cable. +#if defined(CONTROL_SERIAL_USART2) && defined(CONTROL_SERIAL_USART3) + #error CONTROL_SERIAL_USART2 and CONTROL_SERIAL_USART3 not allowed, choose one. +#endif + +#if defined(FEEDBACK_SERIAL_USART2) && defined(FEEDBACK_SERIAL_USART3) + #error FEEDBACK_SERIAL_USART2 and FEEDBACK_SERIAL_USART3 not allowed, choose one. +#endif + +#if defined(DEBUG_SERIAL_USART2) && defined(FEEDBACK_SERIAL_USART2) + #error DEBUG_SERIAL_USART2 and FEEDBACK_SERIAL_USART2 not allowed, choose one. +#endif + +#if defined(DEBUG_SERIAL_USART3) && defined(FEEDBACK_SERIAL_USART3) + #error DEBUG_SERIAL_USART3 and FEEDBACK_SERIAL_USART3 not allowed, choose one. +#endif + +#if defined(DEBUG_SERIAL_USART2) && defined(DEBUG_SERIAL_USART3) + #error DEBUG_SERIAL_USART2 and DEBUG_SERIAL_USART3 not allowed, choose one. +#endif + +#if defined(CONTROL_ADC) && (defined(CONTROL_SERIAL_USART2) || defined(FEEDBACK_SERIAL_USART2) || defined(DEBUG_SERIAL_USART2)) + #error CONTROL_ADC and SERIAL_USART2 not allowed. It is on the same cable. #endif -#if defined CONTROL_SERIAL_USART2 && defined CONTROL_PPM - #error CONTROL_PPM and CONTROL_SERIAL_USART2 not allowed. it is on the same cable. +#if (defined(DEBUG_SERIAL_USART2) || defined(CONTROL_SERIAL_USART2)) && defined(CONTROL_PPM) + #error CONTROL_PPM and SERIAL_USART2 not allowed. It is on the same cable. #endif -#if defined DEBUG_SERIAL_USART3 && defined CONTROL_NUNCHUCK - #error CONTROL_NUNCHUCK and DEBUG_SERIAL_USART3 not allowed. it is on the same cable. +#if (defined(DEBUG_SERIAL_USART3) || defined(CONTROL_SERIAL_USART3)) && defined(CONTROL_NUNCHUCK) + #error CONTROL_NUNCHUCK and SERIAL_USART3 not allowed. It is on the same cable. #endif -#if defined DEBUG_SERIAL_USART3 && defined DEBUG_I2C_LCD - #error DEBUG_I2C_LCD and DEBUG_SERIAL_USART3 not allowed. it is on the same cable. +#if (defined(DEBUG_SERIAL_USART3) || defined(CONTROL_SERIAL_USART3)) && defined(DEBUG_I2C_LCD) + #error DEBUG_I2C_LCD and SERIAL_USART3 not allowed. It is on the same cable. #endif -#if defined CONTROL_PPM && defined CONTROL_ADC && defined CONTROL_NUNCHUCK || defined CONTROL_PPM && defined CONTROL_ADC || defined CONTROL_ADC && defined CONTROL_NUNCHUCK || defined CONTROL_PPM && defined CONTROL_NUNCHUCK +#if defined(CONTROL_PPM) && defined(CONTROL_ADC) && defined(CONTROL_NUNCHUCK) || defined(CONTROL_PPM) && defined(CONTROL_ADC) || defined(CONTROL_ADC) && defined(CONTROL_NUNCHUCK) || defined(CONTROL_PPM) && defined(CONTROL_NUNCHUCK) #error only 1 input method allowed. use CONTROL_PPM or CONTROL_ADC or CONTROL_NUNCHUCK. #endif diff --git a/Inc/rtwtypes.h b/Inc/rtwtypes.h index 2ffd35b..0731f04 100644 --- a/Inc/rtwtypes.h +++ b/Inc/rtwtypes.h @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'BLDC_controller'. * - * Model version : 1.1197 + * Model version : 1.1249 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Thu Oct 31 21:29:42 2019 + * C/C++ source code generated on : Thu Dec 12 20:22:31 2019 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex diff --git a/Inc/setup.h b/Inc/setup.h index a024fe6..e6c31b4 100644 --- a/Inc/setup.h +++ b/Inc/setup.h @@ -27,4 +27,5 @@ void MX_GPIO_Init(void); void MX_TIM_Init(void); void MX_ADC1_Init(void); void MX_ADC2_Init(void); -void UART_Init(void); +void UART2_Init(void); +void UART3_Init(void); diff --git a/README.md b/README.md index cfc50cf..9b4c5b0 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,8 @@ # hoverboard-firmware-hack-FOC ## with Field Oriented Control (FOC) [![Build Status](https://travis-ci.com/EmanuelFeru/hoverboard-firmware-hack-FOC.svg?branch=master)](https://travis-ci.com/EmanuelFeru/hoverboard-firmware-hack-FOC) +[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=feru_emanuel%40yahoo.com¤cy_code=EUR&source=url) +***If you like this project, you can give me a cup of coffee. Thanks!*** This repository implements Field Oriented Control (FOC) for stock hoverboards. Compared to the commutation method, this new FOC control method offers superior performance featuring: - reduced noise and vibrations @@ -21,7 +23,7 @@ The main firmware architecture includes: - **Diagnostics**: implements error detection such as unconnected Hall sensor, motor blocked, MOSFET defective - **Control Manager**: manages the transitions between control modes (Voltage, Speed, Torque) - **FOC Algorithm**: implements the FOC strategy -- **Control Type Manager**: Manages the transition between Commutation and FOC Algorithm +- **Control Type Manager**: Manages the transition between Commutation, Sinusoidal, and FOC control type ![Firmware architecture](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/docs/pictures/FW_architecture.png) @@ -29,15 +31,20 @@ The FOC algorithm architecture is illustrated in the figure below: ![FOC algorithm](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/docs/pictures/FOC_algorithm.png) -In this firmware two control methods are available: -- Commutation method -- FOC method +In this firmware 3 control types are available: +- Commutation +- SIN (Sinusoidal) +- FOC (Field Oriented Control) ![Schematic representation of the available control methods](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/01_Matlab/02_Figures/control_methods.png) -A short video showing the noise performance of the Commutation method vs Advanced control method: +Demo videos: -[â–ºVideo: Commutation method vs Advanced control](https://drive.google.com/file/d/1vC_kEkp2LE2lAaMCJcmK4z2m3jrPUoBD/view) +[â–ºVideo: Commutation vs Advanced control (constant speed)](https://drive.google.com/open?id=1vC_kEkp2LE2lAaMCJcmK4z2m3jrPUoBD) + +[â–ºVideo: Commutation vs Advanced control (variable speed)](https://drive.google.com/open?id=1rrQ4k5VLhhAWXQzDSCar_SmEdsbM-hq2) + +[â–ºVideo: Reliable Serial Communication demo](https://drive.google.com/open?id=1mUM-p7SE6gmyTH7zhDHy5DUyczXvmy5d) ![Hoverboard wheel](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/docs/pictures/hoverboard_wheel.JPG) @@ -45,15 +52,16 @@ A short video showing the noise performance of the Commutation method vs Advance --- ## General Notes - The C code for the controller was auto-code generated using [Matlab/Simulink](https://nl.mathworks.com/solutions/embedded-code-generation.html) from a model which I developed from scratch specifically for hoverboard control. For more details regarding the working principle of the controller please consult the [Matlab/Simulink model](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/tree/master/01_Matlab). - - A [webview](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/tree/master/01_Matlab/BLDC_controller_ert_rtw/html/webview) was created, so Matlab/Simulink installation is not needed, unless you want to regenerate the code + - A [webview](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/tree/master/01_Matlab/BLDC_controller_ert_rtw/html/webview) was created, so Matlab/Simulink installation is not needed, unless you want to regenerate the code. The webview is an html page that can be opened with browsers like: Microsoft Internet Explorer or Microsoft Edge. -### Field weakening +### Field Weakening / Phase Advance - By default the Field weakening is disabled. You can enable it in config.h file by setting the FIELD_WEAK_ENA = 1 - - In BLDC_controller_data.c you can find the field weakening Map as a function of Input target: MAP = id_fieldWeak_M1, XAXIS = r_fieldWeak_XA - - The default calibration was experimentally calibrated to my particular needs - - If you re-calibrate the field weakening map please take all the safety measures! The motors can spin very fast! - - During the recalibration make sure the values in XAXIS are equally spaced for a correct Map interpolation. + - The Field Weakening is a linear interpolation from 0 to FIELD_WEAK_MAX or PHASE_ADV_MAX (depeding if FOC or SIN is selected, respectively) + - The Field Weakening starts engaging at FIELD_WEAK_LO and reaches the maximum value at FIELD_WEAK_HI + - The figure below shows different possible calibrations for Field Weakening / Phase Advance + ![Field Weakening](https://github.com/EmanuelFeru/hoverboard-firmware-hack-FOC/blob/master/docs/pictures/FieldWeakening.png) + - If you re-calibrate the Field Weakening please take all the safety measures! The motors can spin very fast! ### Parameters @@ -71,7 +79,7 @@ Each motor is constantly monitored for errors. These errors are: - **Error 002**: Hall sensor short circuit - **Error 004**: Motor NOT able to spin (Possible causes: motor phase disconnected, MOSFET defective, operational Amplifier defective, motor blocked) -The error codes above are reported for each motor in the variables **errCode_Left** and **errCode_Right** for Left motor (long wired motor) and Right motor (short wired motor), respectively. +The error codes above are reported for each motor in the variables **errCode_Left** and **errCode_Right** for Left motor (long wired motor) and Right motor (short wired motor), respectively. In case of error, the motor power is reduced to 0, while an audible (fast beep) can be heard to notify the user. --- @@ -146,9 +154,6 @@ Currently supported: Wii Nunchuck, analog potentiometer and PPM-Sum signal from A good example of control via UART, eg. from an Arduino or raspberryPi, can be found here: https://github.com/p-h-a-i-l/hoverboard-firmware-hack -### Future work - - convert all calculations and remaining filters (for the battery voltage, current, and temperature) from floating point to fixed-point. This will reduce further the SMT32 computational load -> **DONE** - --- ## Acknowledgements diff --git a/Src/BLDC_controller.c b/Src/BLDC_controller.c index ba768e5..54551bf 100644 --- a/Src/BLDC_controller.c +++ b/Src/BLDC_controller.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'BLDC_controller'. * - * Model version : 1.1199 + * Model version : 1.1249 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Sun Nov 3 12:28:16 2019 + * C/C++ source code generated on : Thu Dec 12 20:22:31 2019 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex @@ -93,38 +93,33 @@ preprocessor word size checks. #endif #endif -uint8_T plook_u8u16_evencka(uint16_T u, uint16_T bp0, uint16_T bpSpace, uint32_T - maxIndex); uint8_T plook_u8s16_evencka(int16_T u, int16_T bp0, uint16_T bpSpace, uint32_T maxIndex); -uint8_T plook_u8s16u8n6_evenc_s(int16_T u, int16_T bp0, uint16_T bpSpace, - uint32_T maxIndex, uint8_T *fraction); -int16_T intrp1d_s16s32s32u8u8n6l_s(uint8_T bpIndex, uint8_T frac, const int16_T - table[]); +uint8_T plook_u8u16_evencka(uint16_T u, uint16_T bp0, uint16_T bpSpace, uint32_T + maxIndex); +int32_T div_nde_s32_floor(int32_T numerator, int32_T denominator); extern void Counter_Init(DW_Counter *localDW, int16_T rtp_z_cntInit); extern int16_T Counter(int16_T rtu_inc, int16_T rtu_max, boolean_T rtu_rst, DW_Counter *localDW); -extern void PI_clamp_fixdt_Reset(DW_PI_clamp_fixdt *localDW); extern void PI_clamp_fixdt(int16_T rtu_err, uint16_T rtu_P, uint16_T rtu_I, int16_T rtu_satMax, int16_T rtu_satMin, int32_T rtu_ext_limProt, int16_T *rty_out, DW_PI_clamp_fixdt *localDW); extern void Low_Pass_Filter_Reset(DW_Low_Pass_Filter *localDW); extern void Low_Pass_Filter(const int16_T rtu_u[2], uint16_T rtu_coef, int16_T rty_y[2], DW_Low_Pass_Filter *localDW); -extern void PI_clamp_fixdt_n_Reset(DW_PI_clamp_fixdt_c *localDW); -extern int16_T PI_clamp_fixdt_n(int16_T rtu_err, uint16_T rtu_P, uint16_T rtu_I, - int16_T rtu_satMax, int16_T rtu_satMin, int16_T rtu_ext_limProt, - DW_PI_clamp_fixdt_c *localDW); +extern void I_backCalc_fixdt_Init(DW_I_backCalc_fixdt *localDW, int32_T + rtp_yInit); +extern void I_backCalc_fixdt(int16_T rtu_err, uint16_T rtu_I, uint16_T rtu_Kb, + int16_T rtu_satMax, int16_T rtu_satMin, int16_T *rty_out, DW_I_backCalc_fixdt * + localDW); extern void Counter_b_Init(DW_Counter_l *localDW, uint16_T rtp_z_cntInit); extern uint16_T Counter_i(uint16_T rtu_inc, uint16_T rtu_max, boolean_T rtu_rst, DW_Counter_l *localDW); -extern void either_edge_Reset(DW_either_edge *localDW); extern boolean_T either_edge(boolean_T rtu_u, DW_either_edge *localDW); extern void Debounce_Filter_Init(DW_Debounce_Filter *localDW); -extern void Debounce_Filter_Reset(DW_Debounce_Filter *localDW); extern void Debounce_Filter(boolean_T rtu_u, uint16_T rtu_tAcv, uint16_T rtu_tDeacv, boolean_T *rty_y, DW_Debounce_Filter *localDW); -uint8_T plook_u8u16_evencka(uint16_T u, uint16_T bp0, uint16_T bpSpace, uint32_T +uint8_T plook_u8s16_evencka(int16_T u, int16_T bp0, uint16_T bpSpace, uint32_T maxIndex) { uint8_T bpIndex; @@ -140,7 +135,7 @@ uint8_T plook_u8u16_evencka(uint16_T u, uint16_T bp0, uint16_T bpSpace, uint32_T if (u <= bp0) { bpIndex = 0U; } else { - fbpIndex = (uint16_T)((uint32_T)(uint16_T)((uint32_T)u - bp0) / bpSpace); + fbpIndex = (uint16_T)((uint32_T)(uint16_T)(u - bp0) / bpSpace); if (fbpIndex < maxIndex) { bpIndex = (uint8_T)fbpIndex; } else { @@ -151,7 +146,7 @@ uint8_T plook_u8u16_evencka(uint16_T u, uint16_T bp0, uint16_T bpSpace, uint32_T return bpIndex; } -uint8_T plook_u8s16_evencka(int16_T u, int16_T bp0, uint16_T bpSpace, uint32_T +uint8_T plook_u8u16_evencka(uint16_T u, uint16_T bp0, uint16_T bpSpace, uint32_T maxIndex) { uint8_T bpIndex; @@ -167,7 +162,7 @@ uint8_T plook_u8s16_evencka(int16_T u, int16_T bp0, uint16_T bpSpace, uint32_T if (u <= bp0) { bpIndex = 0U; } else { - fbpIndex = (uint16_T)((uint32_T)(uint16_T)(u - bp0) / bpSpace); + fbpIndex = (uint16_T)((uint32_T)(uint16_T)((uint32_T)u - bp0) / bpSpace); if (fbpIndex < maxIndex) { bpIndex = (uint8_T)fbpIndex; } else { @@ -178,73 +173,29 @@ uint8_T plook_u8s16_evencka(int16_T u, int16_T bp0, uint16_T bpSpace, uint32_T return bpIndex; } -uint8_T plook_u8s16u8n6_evenc_s(int16_T u, int16_T bp0, uint16_T bpSpace, - uint32_T maxIndex, uint8_T *fraction) -{ - uint8_T bpIndex; - uint16_T uAdjust; - uint16_T fbpIndex; - - /* Prelookup - Index and Fraction - Index Search method: 'even' - Extrapolation method: 'Clip' - Use previous index: 'off' - Use last breakpoint for index at or above upper limit: 'off' - Remove protection against out-of-range input in generated code: 'off' - Rounding mode: 'simplest' - */ - if (u <= bp0) { - bpIndex = 0U; - *fraction = 0U; - } else { - uAdjust = (uint16_T)(u - bp0); - fbpIndex = (uint16_T)((uint32_T)uAdjust / bpSpace); - if (fbpIndex < maxIndex) { - bpIndex = (uint8_T)fbpIndex; - *fraction = (uint8_T)(((uint32_T)(uint16_T)((uint32_T)uAdjust - (uint16_T) - ((uint32_T)bpIndex * bpSpace)) << 6) / bpSpace); - } else { - bpIndex = (uint8_T)(maxIndex - 1U); - *fraction = 64U; - } - } - - return bpIndex; -} - -int16_T intrp1d_s16s32s32u8u8n6l_s(uint8_T bpIndex, uint8_T frac, const int16_T - table[]) +int32_T div_nde_s32_floor(int32_T numerator, int32_T denominator) { - uint32_T offset_0d; - - /* Interpolation 1-D - Interpolation method: 'Linear' - Use last breakpoint for index at or above upper limit: 'off' - Rounding mode: 'simplest' - Overflow mode: 'wrapping' - */ - offset_0d = bpIndex; - return (int16_T)((int16_T)(((table[offset_0d + 1U] - table[offset_0d]) * frac) - >> 6) + table[offset_0d]); + return (((numerator < 0) != (denominator < 0)) && (numerator % denominator != + 0) ? -1 : 0) + numerator / denominator; } -/* System initialize for atomic system: '/Counter' */ +/* System initialize for atomic system: '/Counter' */ void Counter_Init(DW_Counter *localDW, int16_T rtp_z_cntInit) { - /* InitializeConditions for UnitDelay: '/UnitDelay' */ + /* InitializeConditions for UnitDelay: '/UnitDelay' */ localDW->UnitDelay_DSTATE = rtp_z_cntInit; } -/* Output and update for atomic system: '/Counter' */ +/* Output and update for atomic system: '/Counter' */ int16_T Counter(int16_T rtu_inc, int16_T rtu_max, boolean_T rtu_rst, DW_Counter * localDW) { int16_T rtu_rst_0; int16_T rty_cnt_0; - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant23' - * UnitDelay: '/UnitDelay' + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant23' + * UnitDelay: '/UnitDelay' */ if (rtu_rst) { rtu_rst_0 = 0; @@ -252,56 +203,43 @@ int16_T Counter(int16_T rtu_inc, int16_T rtu_max, boolean_T rtu_rst, DW_Counter rtu_rst_0 = localDW->UnitDelay_DSTATE; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ rty_cnt_0 = (int16_T)(rtu_inc + rtu_rst_0); - /* MinMax: '/MinMax' */ + /* MinMax: '/MinMax' */ if (rty_cnt_0 < rtu_max) { - /* Update for UnitDelay: '/UnitDelay' */ + /* Update for UnitDelay: '/UnitDelay' */ localDW->UnitDelay_DSTATE = rty_cnt_0; } else { - /* Update for UnitDelay: '/UnitDelay' */ + /* Update for UnitDelay: '/UnitDelay' */ localDW->UnitDelay_DSTATE = rtu_max; } - /* End of MinMax: '/MinMax' */ + /* End of MinMax: '/MinMax' */ return rty_cnt_0; } -/* - * System reset for atomic system: - * '/PI_clamp_fixdt_id' - * '/PI_clamp_fixdt_iq' - */ -void PI_clamp_fixdt_Reset(DW_PI_clamp_fixdt *localDW) -{ - /* InitializeConditions for UnitDelay: '/UnitDelay1' */ - localDW->UnitDelay1_DSTATE = false; - - /* InitializeConditions for UnitDelay: '/UnitDelay' */ - localDW->UnitDelay_DSTATE = 0; -} - /* * Output and update for atomic system: - * '/PI_clamp_fixdt_id' - * '/PI_clamp_fixdt_iq' + * '/PI_clamp_fixdt' + * '/PI_clamp_fixdt' + * '/PI_clamp_fixdt' */ void PI_clamp_fixdt(int16_T rtu_err, uint16_T rtu_P, uint16_T rtu_I, int16_T rtu_satMax, int16_T rtu_satMin, int32_T rtu_ext_limProt, int16_T *rty_out, DW_PI_clamp_fixdt *localDW) { - boolean_T rtb_LowerRelop1_e; - boolean_T rtb_UpperRelop_f; - int32_T rtb_Sum1_b4; + boolean_T rtb_LowerRelop1_c; + boolean_T rtb_UpperRelop_e; + int32_T rtb_Sum1_n; int32_T q0; int32_T tmp; int16_T tmp_0; - /* Sum: '/Sum2' incorporates: - * Product: '/Divide2' + /* Sum: '/Sum2' incorporates: + * Product: '/Divide2' */ q0 = rtu_err * rtu_I; if ((q0 < 0) && (rtu_ext_limProt < MIN_int32_T - q0)) { @@ -312,10 +250,10 @@ void PI_clamp_fixdt(int16_T rtu_err, uint16_T rtu_P, uint16_T rtu_I, int16_T q0 += rtu_ext_limProt; } - /* Switch: '/Switch1' incorporates: - * Constant: '/a_elecPeriod1' - * Sum: '/Sum2' - * UnitDelay: '/UnitDelay1' + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant' + * Sum: '/Sum2' + * UnitDelay: '/UnitDelay1' */ if (localDW->UnitDelay1_DSTATE) { tmp = 0; @@ -323,14 +261,14 @@ void PI_clamp_fixdt(int16_T rtu_err, uint16_T rtu_P, uint16_T rtu_I, int16_T tmp = q0; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* Sum: '/Sum1' incorporates: - * UnitDelay: '/UnitDelay' + /* Sum: '/Sum1' incorporates: + * UnitDelay: '/UnitDelay' */ - rtb_Sum1_b4 = tmp + localDW->UnitDelay_DSTATE; + rtb_Sum1_n = tmp + localDW->UnitDelay_DSTATE; - /* Product: '/Divide5' */ + /* Product: '/Divide5' */ tmp = (rtu_err * rtu_P) >> 11; if (tmp > 32767) { tmp = 32767; @@ -340,11 +278,11 @@ void PI_clamp_fixdt(int16_T rtu_err, uint16_T rtu_P, uint16_T rtu_I, int16_T } } - /* Sum: '/Sum1' incorporates: - * DataTypeConversion: '/Data Type Conversion1' - * Product: '/Divide5' + /* Sum: '/Sum1' incorporates: + * DataTypeConversion: '/Data Type Conversion1' + * Product: '/Divide5' */ - tmp = (((rtb_Sum1_b4 >> 16) << 1) + tmp) >> 1; + tmp = (((rtb_Sum1_n >> 16) << 1) + tmp) >> 1; if (tmp > 32767) { tmp = 32767; } else { @@ -353,33 +291,33 @@ void PI_clamp_fixdt(int16_T rtu_err, uint16_T rtu_P, uint16_T rtu_I, int16_T } } - /* RelationalOperator: '/LowerRelop1' incorporates: - * Sum: '/Sum1' + /* RelationalOperator: '/LowerRelop1' incorporates: + * Sum: '/Sum1' */ - rtb_LowerRelop1_e = ((int16_T)tmp > rtu_satMax); + rtb_LowerRelop1_c = ((int16_T)tmp > rtu_satMax); - /* RelationalOperator: '/UpperRelop' incorporates: - * Sum: '/Sum1' + /* RelationalOperator: '/UpperRelop' incorporates: + * Sum: '/Sum1' */ - rtb_UpperRelop_f = ((int16_T)tmp < rtu_satMin); + rtb_UpperRelop_e = ((int16_T)tmp < rtu_satMin); - /* Switch: '/Switch1' incorporates: - * Sum: '/Sum1' - * Switch: '/Switch3' + /* Switch: '/Switch1' incorporates: + * Sum: '/Sum1' + * Switch: '/Switch3' */ - if (rtb_LowerRelop1_e) { + if (rtb_LowerRelop1_c) { *rty_out = rtu_satMax; - } else if (rtb_UpperRelop_f) { - /* Switch: '/Switch3' */ + } else if (rtb_UpperRelop_e) { + /* Switch: '/Switch3' */ *rty_out = rtu_satMin; } else { *rty_out = (int16_T)tmp; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* Signum: '/SignDeltaU2' incorporates: - * Sum: '/Sum2' + /* Signum: '/SignDeltaU2' incorporates: + * Sum: '/Sum2' */ if (q0 < 0) { q0 = -1; @@ -387,10 +325,10 @@ void PI_clamp_fixdt(int16_T rtu_err, uint16_T rtu_P, uint16_T rtu_I, int16_T q0 = (q0 > 0); } - /* End of Signum: '/SignDeltaU2' */ + /* End of Signum: '/SignDeltaU2' */ - /* Signum: '/SignDeltaU3' incorporates: - * Sum: '/Sum1' + /* Signum: '/SignDeltaU3' incorporates: + * Sum: '/Sum1' */ if ((int16_T)tmp < 0) { tmp_0 = -1; @@ -398,214 +336,153 @@ void PI_clamp_fixdt(int16_T rtu_err, uint16_T rtu_P, uint16_T rtu_I, int16_T tmp_0 = (int16_T)((int16_T)tmp > 0); } - /* End of Signum: '/SignDeltaU3' */ + /* End of Signum: '/SignDeltaU3' */ - /* Update for UnitDelay: '/UnitDelay1' incorporates: - * DataTypeConversion: '/DataTypeConv4' - * Logic: '/AND1' - * Logic: '/AND1' - * RelationalOperator: '/Equal1' + /* Update for UnitDelay: '/UnitDelay1' incorporates: + * DataTypeConversion: '/DataTypeConv4' + * Logic: '/AND1' + * Logic: '/AND1' + * RelationalOperator: '/Equal1' */ - localDW->UnitDelay1_DSTATE = ((q0 == tmp_0) && (rtb_LowerRelop1_e || - rtb_UpperRelop_f)); + localDW->UnitDelay1_DSTATE = ((q0 == tmp_0) && (rtb_LowerRelop1_c || + rtb_UpperRelop_e)); - /* Update for UnitDelay: '/UnitDelay' */ - localDW->UnitDelay_DSTATE = rtb_Sum1_b4; + /* Update for UnitDelay: '/UnitDelay' */ + localDW->UnitDelay_DSTATE = rtb_Sum1_n; } -/* System reset for atomic system: '/Low_Pass_Filter' */ +/* System reset for atomic system: '/Low_Pass_Filter' */ void Low_Pass_Filter_Reset(DW_Low_Pass_Filter *localDW) { - /* InitializeConditions for UnitDelay: '/UnitDelay3' */ + /* InitializeConditions for UnitDelay: '/UnitDelay3' */ localDW->UnitDelay3_DSTATE[0] = 0; localDW->UnitDelay3_DSTATE[1] = 0; } -/* Output and update for atomic system: '/Low_Pass_Filter' */ +/* Output and update for atomic system: '/Low_Pass_Filter' */ void Low_Pass_Filter(const int16_T rtu_u[2], uint16_T rtu_coef, int16_T rty_y[2], DW_Low_Pass_Filter *localDW) { uint16_T rtb_Sum5; - /* Sum: '/Sum5' */ + /* Sum: '/Sum5' */ rtb_Sum5 = (uint16_T)(65535U - rtu_coef); - /* Sum: '/Sum1' incorporates: - * Product: '/Divide1' - * Product: '/Divide2' - * UnitDelay: '/UnitDelay3' + /* Sum: '/Sum1' incorporates: + * Product: '/Divide1' + * Product: '/Divide2' + * UnitDelay: '/UnitDelay3' */ rty_y[0] = (int16_T)(((rtu_u[0] * rtu_coef) >> 16) + ((localDW->UnitDelay3_DSTATE[0] * rtb_Sum5) >> 16)); - /* Update for UnitDelay: '/UnitDelay3' */ + /* Update for UnitDelay: '/UnitDelay3' */ localDW->UnitDelay3_DSTATE[0] = rty_y[0]; - /* Sum: '/Sum1' incorporates: - * Product: '/Divide1' - * Product: '/Divide2' - * UnitDelay: '/UnitDelay3' + /* Sum: '/Sum1' incorporates: + * Product: '/Divide1' + * Product: '/Divide2' + * UnitDelay: '/UnitDelay3' */ rty_y[1] = (int16_T)(((rtu_u[1] * rtu_coef) >> 16) + ((localDW->UnitDelay3_DSTATE[1] * rtb_Sum5) >> 16)); - /* Update for UnitDelay: '/UnitDelay3' */ + /* Update for UnitDelay: '/UnitDelay3' */ localDW->UnitDelay3_DSTATE[1] = rty_y[1]; } -/* System reset for atomic system: '/PI_clamp_fixdt_n' */ -void PI_clamp_fixdt_n_Reset(DW_PI_clamp_fixdt_c *localDW) +/* + * System initialize for atomic system: + * '/I_backCalc_fixdt' + * '/I_backCalc_fixdt1' + * '/I_backCalc_fixdt' + */ +void I_backCalc_fixdt_Init(DW_I_backCalc_fixdt *localDW, int32_T rtp_yInit) { - /* InitializeConditions for UnitDelay: '/UnitDelay1' */ - localDW->UnitDelay1_DSTATE = false; - - /* InitializeConditions for UnitDelay: '/UnitDelay' */ - localDW->UnitDelay_DSTATE = 0; + /* InitializeConditions for UnitDelay: '/UnitDelay' */ + localDW->UnitDelay_DSTATE_h = rtp_yInit; } -/* Output and update for atomic system: '/PI_clamp_fixdt_n' */ -int16_T PI_clamp_fixdt_n(int16_T rtu_err, uint16_T rtu_P, uint16_T rtu_I, - int16_T rtu_satMax, int16_T rtu_satMin, int16_T rtu_ext_limProt, - DW_PI_clamp_fixdt_c *localDW) +/* + * Output and update for atomic system: + * '/I_backCalc_fixdt' + * '/I_backCalc_fixdt1' + * '/I_backCalc_fixdt' + */ +void I_backCalc_fixdt(int16_T rtu_err, uint16_T rtu_I, uint16_T rtu_Kb, int16_T + rtu_satMax, int16_T rtu_satMin, int16_T *rty_out, + DW_I_backCalc_fixdt *localDW) { - boolean_T rtb_LowerRelop1_ge; - boolean_T rtb_UpperRelop_cm; - int32_T rtb_Sum1_mz; - int32_T q0; - int32_T q1; - int16_T tmp; - int16_T rty_out_0; - - /* Sum: '/Sum2' incorporates: - * Product: '/Divide2' - */ - q0 = rtu_err * rtu_I; - q1 = rtu_ext_limProt << 10; - if ((q0 < 0) && (q1 < MIN_int32_T - q0)) { - q0 = MIN_int32_T; - } else if ((q0 > 0) && (q1 > MAX_int32_T - q0)) { - q0 = MAX_int32_T; - } else { - q0 += q1; - } - - /* Switch: '/Switch1' incorporates: - * Constant: '/a_elecPeriod1' - * Sum: '/Sum2' - * UnitDelay: '/UnitDelay1' - */ - if (localDW->UnitDelay1_DSTATE) { - q1 = 0; - } else { - q1 = q0; - } - - /* End of Switch: '/Switch1' */ + int32_T rtb_Sum1_e0; + int16_T rtb_DataTypeConversion1_no; - /* Sum: '/Sum1' incorporates: - * UnitDelay: '/UnitDelay' + /* Sum: '/Sum2' incorporates: + * Product: '/Divide2' + * UnitDelay: '/UnitDelay' */ - rtb_Sum1_mz = q1 + localDW->UnitDelay_DSTATE; - - /* Product: '/Divide5' */ - q1 = (rtu_err * rtu_P) >> 11; - if (q1 > 32767) { - q1 = 32767; - } else { - if (q1 < -32768) { - q1 = -32768; - } - } - - /* Sum: '/Sum1' incorporates: - * DataTypeConversion: '/Data Type Conversion1' - * Product: '/Divide5' - */ - q1 = (((rtb_Sum1_mz >> 16) << 1) + q1) >> 1; - if (q1 > 32767) { - q1 = 32767; - } else { - if (q1 < -32768) { - q1 = -32768; - } - } - - /* RelationalOperator: '/LowerRelop1' incorporates: - * Sum: '/Sum1' - */ - rtb_LowerRelop1_ge = ((int16_T)q1 > rtu_satMax); - - /* RelationalOperator: '/UpperRelop' incorporates: - * Sum: '/Sum1' - */ - rtb_UpperRelop_cm = ((int16_T)q1 < rtu_satMin); - - /* Switch: '/Switch1' incorporates: - * Sum: '/Sum1' - * Switch: '/Switch3' - */ - if (rtb_LowerRelop1_ge) { - rty_out_0 = rtu_satMax; - } else if (rtb_UpperRelop_cm) { - /* Switch: '/Switch3' */ - rty_out_0 = rtu_satMin; + rtb_Sum1_e0 = (rtu_err * rtu_I) >> 4; + if ((rtb_Sum1_e0 < 0) && (localDW->UnitDelay_DSTATE < MIN_int32_T + - rtb_Sum1_e0)) { + rtb_Sum1_e0 = MIN_int32_T; + } else if ((rtb_Sum1_e0 > 0) && (localDW->UnitDelay_DSTATE > MAX_int32_T + - rtb_Sum1_e0)) { + rtb_Sum1_e0 = MAX_int32_T; } else { - rty_out_0 = (int16_T)q1; + rtb_Sum1_e0 += localDW->UnitDelay_DSTATE; } - /* End of Switch: '/Switch1' */ + /* End of Sum: '/Sum2' */ - /* Signum: '/SignDeltaU2' incorporates: - * Sum: '/Sum2' + /* Sum: '/Sum1' incorporates: + * UnitDelay: '/UnitDelay' */ - if (q0 < 0) { - q0 = -1; - } else { - q0 = (q0 > 0); - } + rtb_Sum1_e0 += localDW->UnitDelay_DSTATE_h; - /* End of Signum: '/SignDeltaU2' */ + /* DataTypeConversion: '/Data Type Conversion1' */ + rtb_DataTypeConversion1_no = (int16_T)(rtb_Sum1_e0 >> 12); - /* Signum: '/SignDeltaU3' incorporates: - * Sum: '/Sum1' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ - if ((int16_T)q1 < 0) { - tmp = -1; + if (rtb_DataTypeConversion1_no > rtu_satMax) { + *rty_out = rtu_satMax; + } else if (rtb_DataTypeConversion1_no < rtu_satMin) { + /* Switch: '/Switch' */ + *rty_out = rtu_satMin; } else { - tmp = (int16_T)((int16_T)q1 > 0); + *rty_out = rtb_DataTypeConversion1_no; } - /* End of Signum: '/SignDeltaU3' */ + /* End of Switch: '/Switch2' */ - /* Update for UnitDelay: '/UnitDelay1' incorporates: - * DataTypeConversion: '/DataTypeConv4' - * Logic: '/AND1' - * Logic: '/AND1' - * RelationalOperator: '/Equal1' + /* Update for UnitDelay: '/UnitDelay' incorporates: + * Product: '/Divide1' + * Sum: '/Sum3' */ - localDW->UnitDelay1_DSTATE = ((q0 == tmp) && (rtb_LowerRelop1_ge || - rtb_UpperRelop_cm)); + localDW->UnitDelay_DSTATE = (int16_T)(*rty_out - rtb_DataTypeConversion1_no) * + rtu_Kb; - /* Update for UnitDelay: '/UnitDelay' */ - localDW->UnitDelay_DSTATE = rtb_Sum1_mz; - return rty_out_0; + /* Update for UnitDelay: '/UnitDelay' */ + localDW->UnitDelay_DSTATE_h = rtb_Sum1_e0; } /* * System initialize for atomic system: - * '/Counter' * '/Counter' + * '/Counter' */ void Counter_b_Init(DW_Counter_l *localDW, uint16_T rtp_z_cntInit) { - /* InitializeConditions for UnitDelay: '/UnitDelay' */ + /* InitializeConditions for UnitDelay: '/UnitDelay' */ localDW->UnitDelay_DSTATE = rtp_z_cntInit; } /* * Output and update for atomic system: - * '/Counter' * '/Counter' + * '/Counter' */ uint16_T Counter_i(uint16_T rtu_inc, uint16_T rtu_max, boolean_T rtu_rst, DW_Counter_l *localDW) @@ -613,9 +490,9 @@ uint16_T Counter_i(uint16_T rtu_inc, uint16_T rtu_max, boolean_T rtu_rst, uint16_T rtu_rst_0; uint16_T rty_cnt_0; - /* Switch: '/Switch1' incorporates: - * Constant: '/Constant23' - * UnitDelay: '/UnitDelay' + /* Switch: '/Switch1' incorporates: + * Constant: '/Constant23' + * UnitDelay: '/UnitDelay' */ if (rtu_rst) { rtu_rst_0 = 0U; @@ -623,50 +500,39 @@ uint16_T Counter_i(uint16_T rtu_inc, uint16_T rtu_max, boolean_T rtu_rst, rtu_rst_0 = localDW->UnitDelay_DSTATE; } - /* End of Switch: '/Switch1' */ + /* End of Switch: '/Switch1' */ - /* Sum: '/Sum1' */ + /* Sum: '/Sum1' */ rty_cnt_0 = (uint16_T)((uint32_T)rtu_inc + rtu_rst_0); - /* MinMax: '/MinMax' */ + /* MinMax: '/MinMax' */ if (rty_cnt_0 < rtu_max) { - /* Update for UnitDelay: '/UnitDelay' */ + /* Update for UnitDelay: '/UnitDelay' */ localDW->UnitDelay_DSTATE = rty_cnt_0; } else { - /* Update for UnitDelay: '/UnitDelay' */ + /* Update for UnitDelay: '/UnitDelay' */ localDW->UnitDelay_DSTATE = rtu_max; } - /* End of MinMax: '/MinMax' */ + /* End of MinMax: '/MinMax' */ return rty_cnt_0; } -/* - * System reset for atomic system: - * '/either_edge' - * '/either_edge' - */ -void either_edge_Reset(DW_either_edge *localDW) -{ - /* InitializeConditions for UnitDelay: '/UnitDelay' */ - localDW->UnitDelay_DSTATE = false; -} - /* * Output and update for atomic system: - * '/either_edge' + * '/either_edge' * '/either_edge' */ boolean_T either_edge(boolean_T rtu_u, DW_either_edge *localDW) { boolean_T rty_y_0; - /* RelationalOperator: '/Relational Operator' incorporates: - * UnitDelay: '/UnitDelay' + /* RelationalOperator: '/Relational Operator' incorporates: + * UnitDelay: '/UnitDelay' */ rty_y_0 = (rtu_u != localDW->UnitDelay_DSTATE); - /* Update for UnitDelay: '/UnitDelay' */ + /* Update for UnitDelay: '/UnitDelay' */ localDW->UnitDelay_DSTATE = rtu_u; return rty_y_0; } @@ -674,107 +540,98 @@ boolean_T either_edge(boolean_T rtu_u, DW_either_edge *localDW) /* System initialize for atomic system: '/Debounce_Filter' */ void Debounce_Filter_Init(DW_Debounce_Filter *localDW) { - /* SystemInitialize for IfAction SubSystem: '/Qualification' */ + /* SystemInitialize for IfAction SubSystem: '/Qualification' */ - /* SystemInitialize for Atomic SubSystem: '/Counter' */ + /* SystemInitialize for Atomic SubSystem: '/Counter' */ Counter_b_Init(&localDW->Counter_i0, 0U); - /* End of SystemInitialize for SubSystem: '/Counter' */ + /* End of SystemInitialize for SubSystem: '/Counter' */ - /* End of SystemInitialize for SubSystem: '/Qualification' */ + /* End of SystemInitialize for SubSystem: '/Qualification' */ - /* SystemInitialize for IfAction SubSystem: '/Dequalification' */ + /* SystemInitialize for IfAction SubSystem: '/Dequalification' */ - /* SystemInitialize for Atomic SubSystem: '/Counter' */ + /* SystemInitialize for Atomic SubSystem: '/Counter' */ Counter_b_Init(&localDW->Counter_h, 0U); - /* End of SystemInitialize for SubSystem: '/Counter' */ - - /* End of SystemInitialize for SubSystem: '/Dequalification' */ -} - -/* System reset for atomic system: '/Debounce_Filter' */ -void Debounce_Filter_Reset(DW_Debounce_Filter *localDW) -{ - /* InitializeConditions for UnitDelay: '/UnitDelay' */ - localDW->UnitDelay_DSTATE = false; - - /* SystemReset for Atomic SubSystem: '/either_edge' */ - either_edge_Reset(&localDW->either_edge_k); + /* End of SystemInitialize for SubSystem: '/Counter' */ - /* End of SystemReset for SubSystem: '/either_edge' */ + /* End of SystemInitialize for SubSystem: '/Dequalification' */ } /* Output and update for atomic system: '/Debounce_Filter' */ void Debounce_Filter(boolean_T rtu_u, uint16_T rtu_tAcv, uint16_T rtu_tDeacv, boolean_T *rty_y, DW_Debounce_Filter *localDW) { - uint16_T rtb_Sum1_l; + boolean_T rtb_UnitDelay_o; + uint16_T rtb_Sum1_g3; boolean_T rtb_RelationalOperator_f; - /* Outputs for Atomic SubSystem: '/either_edge' */ + /* UnitDelay: '/UnitDelay' */ + rtb_UnitDelay_o = localDW->UnitDelay_DSTATE; + + /* Outputs for Atomic SubSystem: '/either_edge' */ rtb_RelationalOperator_f = either_edge(rtu_u, &localDW->either_edge_k); - /* End of Outputs for SubSystem: '/either_edge' */ + /* End of Outputs for SubSystem: '/either_edge' */ - /* If: '/If2' incorporates: + /* If: '/If2' incorporates: + * Constant: '/Constant6' * Constant: '/Constant6' - * Constant: '/Constant6' - * Inport: '/yPrev' - * Logic: '/Logical Operator1' - * Logic: '/Logical Operator2' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator4' - * UnitDelay: '/UnitDelay' + * Inport: '/yPrev' + * Logic: '/Logical Operator1' + * Logic: '/Logical Operator2' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator4' */ - if (rtu_u && (!localDW->UnitDelay_DSTATE)) { - /* Outputs for IfAction SubSystem: '/Qualification' incorporates: - * ActionPort: '/Action Port' + if (rtu_u && (!rtb_UnitDelay_o)) { + /* Outputs for IfAction SubSystem: '/Qualification' incorporates: + * ActionPort: '/Action Port' */ - /* Outputs for Atomic SubSystem: '/Counter' */ - rtb_Sum1_l = (uint16_T) Counter_i(1U, rtu_tAcv, rtb_RelationalOperator_f, + /* Outputs for Atomic SubSystem: '/Counter' */ + rtb_Sum1_g3 = (uint16_T) Counter_i(1U, rtu_tAcv, rtb_RelationalOperator_f, &localDW->Counter_i0); - /* End of Outputs for SubSystem: '/Counter' */ + /* End of Outputs for SubSystem: '/Counter' */ - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant6' - * RelationalOperator: '/Relational Operator2' + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant6' + * RelationalOperator: '/Relational Operator2' */ - *rty_y = ((rtb_Sum1_l > rtu_tAcv) || localDW->UnitDelay_DSTATE); + *rty_y = (rtb_Sum1_g3 > rtu_tAcv); - /* End of Outputs for SubSystem: '/Qualification' */ - } else if ((!rtu_u) && localDW->UnitDelay_DSTATE) { - /* Outputs for IfAction SubSystem: '/Dequalification' incorporates: - * ActionPort: '/Action Port' + /* End of Outputs for SubSystem: '/Qualification' */ + } else if ((!rtu_u) && rtb_UnitDelay_o) { + /* Outputs for IfAction SubSystem: '/Dequalification' incorporates: + * ActionPort: '/Action Port' */ - /* Outputs for Atomic SubSystem: '/Counter' */ - rtb_Sum1_l = (uint16_T) Counter_i(1U, rtu_tDeacv, rtb_RelationalOperator_f, + /* Outputs for Atomic SubSystem: '/Counter' */ + rtb_Sum1_g3 = (uint16_T) Counter_i(1U, rtu_tDeacv, rtb_RelationalOperator_f, &localDW->Counter_h); - /* End of Outputs for SubSystem: '/Counter' */ + /* End of Outputs for SubSystem: '/Counter' */ - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant6' - * RelationalOperator: '/Relational Operator2' + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant6' + * RelationalOperator: '/Relational Operator2' */ - *rty_y = ((!(rtb_Sum1_l > rtu_tDeacv)) && localDW->UnitDelay_DSTATE); + *rty_y = !(rtb_Sum1_g3 > rtu_tDeacv); - /* End of Outputs for SubSystem: '/Dequalification' */ + /* End of Outputs for SubSystem: '/Dequalification' */ } else { - /* Outputs for IfAction SubSystem: '/Default' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Default' incorporates: + * ActionPort: '/Action Port' */ - *rty_y = localDW->UnitDelay_DSTATE; + *rty_y = rtb_UnitDelay_o; - /* End of Outputs for SubSystem: '/Default' */ + /* End of Outputs for SubSystem: '/Default' */ } - /* End of If: '/If2' */ + /* End of If: '/If2' */ - /* Update for UnitDelay: '/UnitDelay' */ + /* Update for UnitDelay: '/UnitDelay' */ localDW->UnitDelay_DSTATE = *rty_y; } @@ -787,36 +644,33 @@ void BLDC_controller_step(RT_MODEL *const rtM) ExtY *rtY = (ExtY *) rtM->outputs; uint8_T rtb_Sum; boolean_T rtb_LogicalOperator; + boolean_T rtb_RelationalOperator9; int8_T rtb_Sum2_h; boolean_T rtb_RelationalOperator4_d; boolean_T rtb_RelationalOperator1_m; uint8_T rtb_Sum_l; - uint8_T rtb_r_fieldWeak_XA_o1; - int16_T rtb_Merge; - int16_T rtb_Switch2_fv; + int16_T rtb_Switch2_k; int16_T rtb_Abs5; + int16_T rtb_Switch2_fl; int16_T rtb_Switch1_l; - int16_T rtb_Switch2_d; - uint16_T rtb_Divide2_h; - int16_T rtb_Saturation; + int16_T rtb_DataTypeConversion2; + int16_T rtb_Saturation1; + int16_T rtb_Switch2_l; + int16_T rtb_Merge; int16_T rtb_toNegative; - int16_T rtb_Gain4; - uint8_T rtb_r_fieldWeak_XA_o2; - int16_T rtb_Gain2_f; - int16_T rtb_id_fieldWeak_M1; - int16_T rtb_MinMax2; - int16_T rtb_TmpSignalConversionAtLow_Pa[2]; int32_T rtb_DataTypeConversion; int32_T rtb_Switch1; int32_T rtb_Sum1; int32_T rtb_Gain3; + int16_T rtb_TmpSignalConversionAtLow_Pa[2]; int16_T tmp[4]; int8_T UnitDelay3; + int16_T rtb_Merge_f_idx_1; /* Outputs for Atomic SubSystem: '/BLDC_controller' */ - /* Sum: '/Sum' incorporates: - * Gain: '/g_Ha' - * Gain: '/g_Hb' + /* Sum: '/Sum' incorporates: + * Gain: '/g_Ha' + * Gain: '/g_Hb' * Inport: '/b_hallA ' * Inport: '/b_hallB' * Inport: '/b_hallC' @@ -824,168 +678,85 @@ void BLDC_controller_step(RT_MODEL *const rtM) rtb_Sum = (uint8_T)((uint32_T)(uint8_T)((uint32_T)(uint8_T)(rtU->b_hallA << 2) + (uint8_T)(rtU->b_hallB << 1)) + rtU->b_hallC); - /* Saturate: '/Saturation2' incorporates: - * Inport: '/r_inpTgt' - */ - rtb_Gain3 = rtU->r_inpTgt << 4; - - /* If: '/If1' incorporates: - * Constant: '/z_ctrlTypSel1' - * Inport: '/r_inpTgt' - * Inport: '/r_inpTgt' - * Saturate: '/Saturation2' - */ - if (rtP->z_ctrlTypSel == 1) { - /* Outputs for IfAction SubSystem: '/FOC_Control_Type' incorporates: - * ActionPort: '/Action Port' - */ - /* SignalConversion: '/TmpSignal ConversionAtSelectorInport1' incorporates: - * Constant: '/Vd_max' - * Constant: '/constant1' - * Constant: '/i_max' - * Constant: '/n_max' - */ - tmp[0] = 0; - tmp[1] = rtP->Vd_max; - tmp[2] = rtP->n_max; - tmp[3] = rtP->i_max; - - /* End of Outputs for SubSystem: '/FOC_Control_Type' */ - - /* Saturate: '/Saturation2' incorporates: - * Inport: '/r_inpTgt' - */ - if (rtb_Gain3 >= 16000) { - rtb_toNegative = 16000; - } else if (rtb_Gain3 <= -16000) { - rtb_toNegative = -16000; - } else { - rtb_toNegative = (int16_T)(rtU->r_inpTgt << 4); - } - - /* Outputs for IfAction SubSystem: '/FOC_Control_Type' incorporates: - * ActionPort: '/Action Port' - */ - /* Product: '/Divide1' incorporates: - * Inport: '/z_ctrlModReq' - * Product: '/Divide4' - * Selector: '/Selector' - */ - rtb_Merge = (int16_T)(((uint16_T)((tmp[rtU->z_ctrlModReq] << 5) / 125) * - rtb_toNegative) >> 12); - - /* End of Outputs for SubSystem: '/FOC_Control_Type' */ - } else if (rtb_Gain3 >= 16000) { - /* Outputs for IfAction SubSystem: '/Commutation_Control_Type' incorporates: - * ActionPort: '/Action Port' - */ - /* Saturate: '/Saturation2' incorporates: - * Inport: '/r_inpTgt' - */ - rtb_Merge = 16000; - - /* End of Outputs for SubSystem: '/Commutation_Control_Type' */ - } else if (rtb_Gain3 <= -16000) { - /* Outputs for IfAction SubSystem: '/Commutation_Control_Type' incorporates: - * ActionPort: '/Action Port' - */ - /* Saturate: '/Saturation2' incorporates: - * Inport: '/r_inpTgt' - */ - rtb_Merge = -16000; - - /* End of Outputs for SubSystem: '/Commutation_Control_Type' */ - } else { - /* Outputs for IfAction SubSystem: '/Commutation_Control_Type' incorporates: - * ActionPort: '/Action Port' - */ - rtb_Merge = (int16_T)(rtU->r_inpTgt << 4); - - /* End of Outputs for SubSystem: '/Commutation_Control_Type' */ - } - - /* End of If: '/If1' */ - - /* Logic: '/Logical Operator' incorporates: + /* Logic: '/Logical Operator' incorporates: * Inport: '/b_hallA ' * Inport: '/b_hallB' * Inport: '/b_hallC' - * UnitDelay: '/UnitDelay1' - * UnitDelay: '/UnitDelay2' - * UnitDelay: '/UnitDelay3' + * UnitDelay: '/UnitDelay1' + * UnitDelay: '/UnitDelay2' + * UnitDelay: '/UnitDelay3' */ rtb_LogicalOperator = (boolean_T)((rtU->b_hallA != 0) ^ (rtU->b_hallB != 0) ^ (rtU->b_hallC != 0) ^ (rtDW->UnitDelay3_DSTATE_fy != 0) ^ (rtDW->UnitDelay1_DSTATE != 0)) ^ (rtDW->UnitDelay2_DSTATE_f != 0); - /* If: '/If2' incorporates: + /* If: '/If2' incorporates: * If: '/If2' - * Inport: '/z_counterRawPrev' - * UnitDelay: '/UnitDelay3' + * Inport: '/z_counterRawPrev' + * UnitDelay: '/UnitDelay3' */ if (rtb_LogicalOperator) { - /* Outputs for IfAction SubSystem: '/F01_04_Direction_Detection' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/F01_03_Direction_Detection' incorporates: + * ActionPort: '/Action Port' */ - /* UnitDelay: '/UnitDelay3' */ - UnitDelay3 = rtDW->Switch2; + /* UnitDelay: '/UnitDelay3' */ + UnitDelay3 = rtDW->Switch2_e; - /* Sum: '/Sum2' incorporates: - * Constant: '/vec_hallToPos' - * Selector: '/Selector' - * UnitDelay: '/UnitDelay2' + /* Sum: '/Sum2' incorporates: + * Constant: '/vec_hallToPos' + * Selector: '/Selector' + * UnitDelay: '/UnitDelay2' */ rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[rtb_Sum] - rtDW->UnitDelay2_DSTATE_b); - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant20' - * Constant: '/Constant23' - * Constant: '/Constant24' - * Constant: '/Constant8' - * Logic: '/Logical Operator3' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator6' + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant20' + * Constant: '/Constant23' + * Constant: '/Constant24' + * Constant: '/Constant8' + * Logic: '/Logical Operator3' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator6' */ if ((rtb_Sum2_h == 1) || (rtb_Sum2_h == -5)) { - rtDW->Switch2 = 1; + rtDW->Switch2_e = 1; } else { - rtDW->Switch2 = -1; + rtDW->Switch2_e = -1; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Update for UnitDelay: '/UnitDelay2' incorporates: - * Constant: '/vec_hallToPos' - * Selector: '/Selector' + /* Update for UnitDelay: '/UnitDelay2' incorporates: + * Constant: '/vec_hallToPos' + * Selector: '/Selector' */ rtDW->UnitDelay2_DSTATE_b = rtConstP.vec_hallToPos_Value[rtb_Sum]; - /* End of Outputs for SubSystem: '/F01_04_Direction_Detection' */ + /* End of Outputs for SubSystem: '/F01_03_Direction_Detection' */ - /* Outputs for IfAction SubSystem: '/Raw_Motor_Speed_Estimation' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Raw_Motor_Speed_Estimation' incorporates: + * ActionPort: '/Action Port' */ rtDW->z_counterRawPrev = rtDW->UnitDelay3_DSTATE; - /* Sum: '/Sum7' incorporates: - * Inport: '/z_counterRawPrev' - * UnitDelay: '/UnitDelay3' - * UnitDelay: '/UnitDelay4' + /* Sum: '/Sum7' incorporates: + * Inport: '/z_counterRawPrev' + * UnitDelay: '/UnitDelay3' + * UnitDelay: '/UnitDelay4' */ - rtb_Switch2_fv = (int16_T)(rtDW->z_counterRawPrev - - rtDW->UnitDelay4_DSTATE_p); + rtb_Switch2_k = (int16_T)(rtDW->z_counterRawPrev - rtDW->UnitDelay4_DSTATE); - /* Abs: '/Abs2' */ - if (rtb_Switch2_fv < 0) { - rtb_Switch1_l = (int16_T)-rtb_Switch2_fv; + /* Abs: '/Abs2' */ + if (rtb_Switch2_k < 0) { + rtb_Switch1_l = (int16_T)-rtb_Switch2_k; } else { - rtb_Switch1_l = rtb_Switch2_fv; + rtb_Switch1_l = rtb_Switch2_k; } - /* End of Abs: '/Abs2' */ + /* End of Abs: '/Abs2' */ - /* Relay: '/dz_cntTrnsDet' */ + /* Relay: '/dz_cntTrnsDet' */ if (rtb_Switch1_l >= rtP->dz_cntTrnsDetHi) { rtDW->dz_cntTrnsDet_Mode = true; } else { @@ -996,111 +767,111 @@ void BLDC_controller_step(RT_MODEL *const rtM) rtDW->dz_cntTrnsDet = rtDW->dz_cntTrnsDet_Mode; - /* End of Relay: '/dz_cntTrnsDet' */ + /* End of Relay: '/dz_cntTrnsDet' */ - /* RelationalOperator: '/Relational Operator4' */ - rtb_RelationalOperator4_d = (rtDW->Switch2 != UnitDelay3); + /* RelationalOperator: '/Relational Operator4' */ + rtb_RelationalOperator4_d = (rtDW->Switch2_e != UnitDelay3); - /* Switch: '/Switch3' incorporates: - * Constant: '/Constant4' - * Logic: '/Logical Operator1' - * Switch: '/Switch1' - * Switch: '/Switch2' - * UnitDelay: '/UnitDelay1' + /* Switch: '/Switch3' incorporates: + * Constant: '/Constant4' + * Logic: '/Logical Operator1' + * Switch: '/Switch1' + * Switch: '/Switch2' + * UnitDelay: '/UnitDelay1' */ if (rtb_RelationalOperator4_d && rtDW->UnitDelay1_DSTATE_n) { rtb_Switch1_l = 0; } else if (rtb_RelationalOperator4_d) { - /* Switch: '/Switch2' incorporates: - * UnitDelay: '/UnitDelay4' + /* Switch: '/Switch2' incorporates: + * UnitDelay: '/UnitDelay4' */ rtb_Switch1_l = rtDW->UnitDelay4_DSTATE_e; } else if (rtDW->dz_cntTrnsDet) { - /* Switch: '/Switch1' incorporates: - * Constant: '/cf_speedCoef' - * Product: '/Divide14' - * Switch: '/Switch2' + /* Switch: '/Switch1' incorporates: + * Constant: '/cf_speedCoef' + * Product: '/Divide14' + * Switch: '/Switch2' */ rtb_Switch1_l = (int16_T)((rtP->cf_speedCoef << 4) / rtDW->z_counterRawPrev); } else { - /* Switch: '/Switch1' incorporates: - * Constant: '/cf_speedCoef' - * Gain: '/g_Ha' - * Product: '/Divide13' - * Sum: '/Sum13' - * Switch: '/Switch2' - * UnitDelay: '/UnitDelay2' - * UnitDelay: '/UnitDelay3' - * UnitDelay: '/UnitDelay5' + /* Switch: '/Switch1' incorporates: + * Constant: '/cf_speedCoef' + * Gain: '/g_Ha' + * Product: '/Divide13' + * Sum: '/Sum13' + * Switch: '/Switch2' + * UnitDelay: '/UnitDelay2' + * UnitDelay: '/UnitDelay3' + * UnitDelay: '/UnitDelay5' */ rtb_Switch1_l = (int16_T)(((uint16_T)(rtP->cf_speedCoef << 2) << 4) / (int16_T)(((rtDW->UnitDelay2_DSTATE + rtDW->UnitDelay3_DSTATE_o) + rtDW->UnitDelay5_DSTATE) + rtDW->z_counterRawPrev)); } - /* End of Switch: '/Switch3' */ + /* End of Switch: '/Switch3' */ - /* Product: '/Divide11' */ - rtDW->Divide11 = (int16_T)(rtb_Switch1_l * rtDW->Switch2); + /* Product: '/Divide11' */ + rtDW->Divide11 = (int16_T)(rtb_Switch1_l * rtDW->Switch2_e); - /* Update for UnitDelay: '/UnitDelay4' */ - rtDW->UnitDelay4_DSTATE_p = rtDW->z_counterRawPrev; + /* Update for UnitDelay: '/UnitDelay4' */ + rtDW->UnitDelay4_DSTATE = rtDW->z_counterRawPrev; - /* Update for UnitDelay: '/UnitDelay2' incorporates: - * UnitDelay: '/UnitDelay3' + /* Update for UnitDelay: '/UnitDelay2' incorporates: + * UnitDelay: '/UnitDelay3' */ rtDW->UnitDelay2_DSTATE = rtDW->UnitDelay3_DSTATE_o; - /* Update for UnitDelay: '/UnitDelay3' incorporates: - * UnitDelay: '/UnitDelay5' + /* Update for UnitDelay: '/UnitDelay3' incorporates: + * UnitDelay: '/UnitDelay5' */ rtDW->UnitDelay3_DSTATE_o = rtDW->UnitDelay5_DSTATE; - /* Update for UnitDelay: '/UnitDelay5' */ + /* Update for UnitDelay: '/UnitDelay5' */ rtDW->UnitDelay5_DSTATE = rtDW->z_counterRawPrev; - /* Update for UnitDelay: '/UnitDelay1' */ + /* Update for UnitDelay: '/UnitDelay1' */ rtDW->UnitDelay1_DSTATE_n = rtb_RelationalOperator4_d; - /* End of Outputs for SubSystem: '/Raw_Motor_Speed_Estimation' */ + /* End of Outputs for SubSystem: '/Raw_Motor_Speed_Estimation' */ } - /* End of If: '/If2' */ + /* End of If: '/If2' */ - /* Outputs for Atomic SubSystem: '/Counter' */ + /* Outputs for Atomic SubSystem: '/Counter' */ - /* Constant: '/Constant6' incorporates: - * Constant: '/z_maxCntRst2' + /* Constant: '/Constant6' incorporates: + * Constant: '/z_maxCntRst2' */ rtb_Switch1_l = (int16_T) Counter(1, rtP->z_maxCntRst, rtb_LogicalOperator, &rtDW->Counter_e); - /* End of Outputs for SubSystem: '/Counter' */ + /* End of Outputs for SubSystem: '/Counter' */ - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant4' - * Constant: '/z_maxCntRst' - * RelationalOperator: '/Relational Operator2' + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant4' + * Constant: '/z_maxCntRst' + * RelationalOperator: '/Relational Operator2' */ if (rtb_Switch1_l > rtP->z_maxCntRst) { - rtb_Switch2_fv = 0; + rtb_Switch2_k = 0; } else { - rtb_Switch2_fv = rtDW->Divide11; + rtb_Switch2_k = rtDW->Divide11; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Abs: '/Abs5' */ - if (rtb_Switch2_fv < 0) { - rtb_Abs5 = (int16_T)-rtb_Switch2_fv; + /* Abs: '/Abs5' */ + if (rtb_Switch2_k < 0) { + rtb_Abs5 = (int16_T)-rtb_Switch2_k; } else { - rtb_Abs5 = rtb_Switch2_fv; + rtb_Abs5 = rtb_Switch2_k; } - /* End of Abs: '/Abs5' */ + /* End of Abs: '/Abs5' */ - /* Relay: '/n_commDeacv' */ + /* Relay: '/n_commDeacv' */ if (rtb_Abs5 >= rtP->n_commDeacvHi) { rtDW->n_commDeacv_Mode = true; } else { @@ -1109,76 +880,106 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - /* Logic: '/Logical Operator2' incorporates: - * Constant: '/CTRL_COMM' - * Constant: '/z_ctrlTypSel1' - * Logic: '/Logical Operator1' - * RelationalOperator: '/Relational Operator3' - * Relay: '/n_commDeacv' + /* Logic: '/Logical Operator2' incorporates: + * Logic: '/Logical Operator1' + * Relay: '/n_commDeacv' */ - rtb_LogicalOperator = ((rtP->z_ctrlTypSel == 1) && rtDW->n_commDeacv_Mode && ( - !rtDW->dz_cntTrnsDet)); - - /* RelationalOperator: '/Relational Operator9' incorporates: - * Constant: '/n_stdStillDet' + rtb_LogicalOperator = (rtDW->n_commDeacv_Mode && (!rtDW->dz_cntTrnsDet)); + + /* Switch: '/Switch2' incorporates: + * Constant: '/Constant16' + * Product: '/Divide1' + * Product: '/Divide3' + * RelationalOperator: '/Relational Operator7' + * Sum: '/Sum3' + * Switch: '/Switch3' */ - rtb_RelationalOperator4_d = (rtb_Abs5 < rtP->n_stdStillDet); + if (rtb_LogicalOperator) { + /* MinMax: '/MinMax' */ + rtb_Switch2_fl = rtb_Switch1_l; + if (!(rtb_Switch2_fl < rtDW->z_counterRawPrev)) { + rtb_Switch2_fl = rtDW->z_counterRawPrev; + } - /* If: '/If2' incorporates: - * Constant: '/b_diagEna' - * Constant: '/CTRL_COMM2' - * Constant: '/t_errDequal' - * Constant: '/t_errQual' - * RelationalOperator: '/Relational Operator2' - */ - rtb_Sum2_h = rtDW->If2_ActiveSubsystem; - UnitDelay3 = -1; - if (rtP->b_diagEna) { - UnitDelay3 = 0; - } + /* End of MinMax: '/MinMax' */ - rtDW->If2_ActiveSubsystem = UnitDelay3; - if ((rtb_Sum2_h != UnitDelay3) && (rtb_Sum2_h == 0)) { - /* Disable for Outport: '/z_errCode' incorporates: - * Outport: '/z_errCode ' + /* Switch: '/Switch3' incorporates: + * Constant: '/vec_hallToPos' + * Constant: '/Constant16' + * RelationalOperator: '/Relational Operator7' + * Selector: '/Selector' + * Sum: '/Sum1' */ - rtY->z_errCode = 0U; - - /* Disable for Outport: '/b_errFlag' */ - rtDW->Merge_n = false; - } + if (rtDW->Switch2_e == 1) { + rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum]; + } else { + rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[rtb_Sum] + 1); + } - if (UnitDelay3 == 0) { - if (0 != rtb_Sum2_h) { - /* InitializeConditions for IfAction SubSystem: '/F02_Diagnostics' incorporates: - * ActionPort: '/Action Port' + rtb_Switch2_fl = (int16_T)(((int16_T)((int16_T)((rtb_Switch2_fl << 14) / + rtDW->z_counterRawPrev) * rtDW->Switch2_e) + (rtb_Sum2_h << 14)) >> 2); + } else { + if (rtDW->Switch2_e == 1) { + /* Switch: '/Switch3' incorporates: + * Constant: '/vec_hallToPos' + * Selector: '/Selector' */ - /* InitializeConditions for If: '/If2' incorporates: - * UnitDelay: '/UnitDelay' + rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum]; + } else { + /* Switch: '/Switch3' incorporates: + * Constant: '/vec_hallToPos' + * Selector: '/Selector' + * Sum: '/Sum1' */ - rtDW->UnitDelay_DSTATE_c = 0U; + rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[rtb_Sum] + 1); + } - /* End of InitializeConditions for SubSystem: '/F02_Diagnostics' */ + rtb_Switch2_fl = (int16_T)(rtb_Sum2_h << 12); + } - /* SystemReset for IfAction SubSystem: '/F02_Diagnostics' incorporates: - * ActionPort: '/Action Port' - */ + /* End of Switch: '/Switch2' */ - /* SystemReset for Atomic SubSystem: '/Debounce_Filter' */ + /* MinMax: '/MinMax1' incorporates: + * Constant: '/Constant1' + */ + if (!(rtb_Switch2_fl > 0)) { + rtb_Switch2_fl = 0; + } - /* SystemReset for If: '/If2' */ - Debounce_Filter_Reset(&rtDW->Debounce_Filter_f); + /* End of MinMax: '/MinMax1' */ - /* End of SystemReset for SubSystem: '/Debounce_Filter' */ + /* Product: '/Divide2' */ + rtb_Switch2_fl = (int16_T)((15 * rtb_Switch2_fl) >> 4); - /* SystemReset for Atomic SubSystem: '/either_edge' */ - either_edge_Reset(&rtDW->either_edge_a); + /* DataTypeConversion: '/Data Type Conversion2' incorporates: + * Inport: '/r_inpTgt' + */ + if (rtU->r_inpTgt > 2047) { + rtb_DataTypeConversion2 = MAX_int16_T; + } else if (rtU->r_inpTgt <= -2048) { + rtb_DataTypeConversion2 = MIN_int16_T; + } else { + rtb_DataTypeConversion2 = (int16_T)(rtU->r_inpTgt << 4); + } - /* End of SystemReset for SubSystem: '/either_edge' */ + /* UnitDelay: '/UnitDelay2' */ + rtb_RelationalOperator4_d = rtDW->UnitDelay2_DSTATE_g; - /* End of SystemReset for SubSystem: '/F02_Diagnostics' */ - } + /* RelationalOperator: '/Relational Operator9' incorporates: + * Constant: '/n_stdStillDet' + */ + rtb_RelationalOperator9 = (rtb_Abs5 < rtP->n_stdStillDet); + /* If: '/If2' incorporates: + * Constant: '/b_diagEna' + * Constant: '/CTRL_COMM2' + * Constant: '/t_errDequal' + * Constant: '/t_errQual' + * Logic: '/Logical Operator2' + * RelationalOperator: '/Relational Operator2' + * UnitDelay: '/UnitDelay2' + */ + if (rtP->b_diagEna && rtDW->UnitDelay2_DSTATE_g) { /* Outputs for IfAction SubSystem: '/F02_Diagnostics' incorporates: * ActionPort: '/Action Port' */ @@ -1190,25 +991,25 @@ void BLDC_controller_step(RT_MODEL *const rtM) * RelationalOperator: '/Relational Operator7' * S-Function (sfix_bitop): '/Bitwise Operator1' * UnitDelay: '/UnitDelay' - * UnitDelay: '/UnitDelay4' + * UnitDelay: '/UnitDelay4' */ - if ((rtDW->UnitDelay_DSTATE_c & 4) != 0) { + if ((rtY->z_errCode & 4) != 0) { rtb_RelationalOperator1_m = true; } else { - if (rtDW->UnitDelay4_DSTATE < 0) { + if (rtDW->UnitDelay4_DSTATE_eu < 0) { /* Abs: '/Abs4' incorporates: - * UnitDelay: '/UnitDelay4' + * UnitDelay: '/UnitDelay4' */ - rtb_toNegative = (int16_T)-rtDW->UnitDelay4_DSTATE; + rtb_Merge_f_idx_1 = (int16_T)-rtDW->UnitDelay4_DSTATE_eu; } else { /* Abs: '/Abs4' incorporates: - * UnitDelay: '/UnitDelay4' + * UnitDelay: '/UnitDelay4' */ - rtb_toNegative = rtDW->UnitDelay4_DSTATE; + rtb_Merge_f_idx_1 = rtDW->UnitDelay4_DSTATE_eu; } - rtb_RelationalOperator1_m = ((rtb_toNegative > rtP->r_errInpTgtThres) && - rtb_RelationalOperator4_d); + rtb_RelationalOperator1_m = ((rtb_Merge_f_idx_1 > rtP->r_errInpTgtThres) && + rtb_RelationalOperator9); } /* End of Switch: '/Switch3' */ @@ -1245,177 +1046,329 @@ void BLDC_controller_step(RT_MODEL *const rtM) if (rtb_RelationalOperator1_m) { /* Outport: '/z_errCode' */ rtY->z_errCode = rtb_Sum_l; - } else { - /* Outport: '/z_errCode' incorporates: - * UnitDelay: '/UnitDelay' - */ - rtY->z_errCode = rtDW->UnitDelay_DSTATE_c; } /* End of Switch: '/Switch1' */ - - /* Update for UnitDelay: '/UnitDelay' incorporates: - * Outport: '/z_errCode' - */ - rtDW->UnitDelay_DSTATE_c = rtY->z_errCode; - /* End of Outputs for SubSystem: '/F02_Diagnostics' */ } /* End of If: '/If2' */ - /* Logic: '/Logical Operator4' incorporates: - * Constant: '/constant2' - * Constant: '/constant8' - * Inport: '/b_motEna' - * Inport: '/z_ctrlModReq' - * Logic: '/Logical Operator1' - * Logic: '/Logical Operator7' - * RelationalOperator: '/Relational Operator10' - * RelationalOperator: '/Relational Operator11' - * RelationalOperator: '/Relational Operator2' - * UnitDelay: '/UnitDelay1' - */ - rtb_RelationalOperator1_m = ((!rtU->b_motEna) || rtDW->Merge_n || - (rtU->z_ctrlModReq == 0) || ((rtU->z_ctrlModReq != rtDW->UnitDelay1_DSTATE_p) - && (rtDW->UnitDelay1_DSTATE_p != 0))); - - /* Chart: '/F03_02_Control_Mode_Manager' incorporates: - * Constant: '/constant' - * Constant: '/constant1' - * Constant: '/constant5' - * Constant: '/constant6' - * Constant: '/constant7' - * Inport: '/z_ctrlModReq' - * Logic: '/Logical Operator3' - * Logic: '/Logical Operator6' - * Logic: '/Logical Operator9' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator3' - * RelationalOperator: '/Relational Operator4' - * RelationalOperator: '/Relational Operator5' - * RelationalOperator: '/Relational Operator6' + /* If: '/If4' incorporates: + * UnitDelay: '/UnitDelay2' */ - if (rtDW->is_active_c1_BLDC_controller == 0U) { - rtDW->is_active_c1_BLDC_controller = 1U; - rtDW->is_c1_BLDC_controller = IN_OPEN; - rtb_Sum_l = OPEN_MODE; - } else if (rtDW->is_c1_BLDC_controller == IN_ACTIVE) { - if (rtb_RelationalOperator1_m) { - rtDW->is_ACTIVE = IN_NO_ACTIVE_CHILD; - rtDW->is_c1_BLDC_controller = IN_OPEN; - rtb_Sum_l = OPEN_MODE; - } else { - switch (rtDW->is_ACTIVE) { - case IN_SPEED_MODE: - rtb_Sum_l = SPD_MODE; - break; + rtb_Sum2_h = rtDW->If4_ActiveSubsystem; + UnitDelay3 = -1; + if (rtDW->UnitDelay2_DSTATE_g) { + UnitDelay3 = 0; + } - case IN_TORQUE_MODE: - rtb_Sum_l = TRQ_MODE; - break; + rtDW->If4_ActiveSubsystem = UnitDelay3; + if ((rtb_Sum2_h != UnitDelay3) && (rtb_Sum2_h == 0)) { + /* Disable for If: '/If2' */ + rtDW->If2_ActiveSubsystem = -1; + } - default: - rtb_Sum_l = VLT_MODE; - break; - } - } - } else { - rtb_Sum_l = OPEN_MODE; - if ((!rtb_RelationalOperator1_m) && ((rtU->z_ctrlModReq == 1) || - (rtU->z_ctrlModReq == 2) || (rtU->z_ctrlModReq == 3)) && - rtb_RelationalOperator4_d) { - rtDW->is_c1_BLDC_controller = IN_ACTIVE; - if (rtU->z_ctrlModReq == 3) { - rtDW->is_ACTIVE = IN_TORQUE_MODE; - rtb_Sum_l = TRQ_MODE; - } else if (rtU->z_ctrlModReq == 2) { - rtDW->is_ACTIVE = IN_SPEED_MODE; - rtb_Sum_l = SPD_MODE; + if (UnitDelay3 == 0) { + /* Outputs for IfAction SubSystem: '/F03_Control_Mode_Manager' incorporates: + * ActionPort: '/Action Port' + */ + /* Logic: '/Logical Operator4' incorporates: + * Constant: '/constant2' + * Constant: '/constant8' + * Inport: '/b_motEna' + * Inport: '/z_ctrlModReq' + * Logic: '/Logical Operator1' + * Logic: '/Logical Operator7' + * RelationalOperator: '/Relational Operator10' + * RelationalOperator: '/Relational Operator11' + * RelationalOperator: '/Relational Operator2' + * UnitDelay: '/UnitDelay1' + */ + rtb_RelationalOperator1_m = ((!rtU->b_motEna) || rtDW->Merge_n || + (rtU->z_ctrlModReq == 0) || ((rtU->z_ctrlModReq != rtDW->z_ctrlMod) && + (rtDW->z_ctrlMod != 0))); + + /* Chart: '/F03_02_Control_Mode_Manager' incorporates: + * Constant: '/constant' + * Constant: '/constant1' + * Constant: '/constant5' + * Constant: '/constant6' + * Constant: '/constant7' + * Inport: '/z_ctrlModReq' + * Logic: '/Logical Operator3' + * Logic: '/Logical Operator6' + * Logic: '/Logical Operator9' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator3' + * RelationalOperator: '/Relational Operator4' + * RelationalOperator: '/Relational Operator5' + * RelationalOperator: '/Relational Operator6' + */ + if (rtDW->is_active_c1_BLDC_controller == 0U) { + rtDW->is_active_c1_BLDC_controller = 1U; + rtDW->is_c1_BLDC_controller = IN_OPEN; + rtDW->z_ctrlMod = OPEN_MODE; + } else if (rtDW->is_c1_BLDC_controller == IN_ACTIVE) { + if (rtb_RelationalOperator1_m) { + rtDW->is_ACTIVE = IN_NO_ACTIVE_CHILD; + rtDW->is_c1_BLDC_controller = IN_OPEN; + rtDW->z_ctrlMod = OPEN_MODE; } else { - rtDW->is_ACTIVE = IN_VOLTAGE_MODE; - rtb_Sum_l = VLT_MODE; + switch (rtDW->is_ACTIVE) { + case IN_SPEED_MODE: + rtDW->z_ctrlMod = SPD_MODE; + break; + + case IN_TORQUE_MODE: + rtDW->z_ctrlMod = TRQ_MODE; + break; + + default: + rtDW->z_ctrlMod = VLT_MODE; + break; + } + } + } else { + rtDW->z_ctrlMod = OPEN_MODE; + if ((!rtb_RelationalOperator1_m) && ((rtU->z_ctrlModReq == 1) || + (rtU->z_ctrlModReq == 2) || (rtU->z_ctrlModReq == 3)) && + rtb_RelationalOperator9) { + rtDW->is_c1_BLDC_controller = IN_ACTIVE; + if (rtU->z_ctrlModReq == 3) { + rtDW->is_ACTIVE = IN_TORQUE_MODE; + rtDW->z_ctrlMod = TRQ_MODE; + } else if (rtU->z_ctrlModReq == 2) { + rtDW->is_ACTIVE = IN_SPEED_MODE; + rtDW->z_ctrlMod = SPD_MODE; + } else { + rtDW->is_ACTIVE = IN_VOLTAGE_MODE; + rtDW->z_ctrlMod = VLT_MODE; + } } - } - } - - /* End of Chart: '/F03_02_Control_Mode_Manager' */ - - /* Switch: '/Switch2' incorporates: - * Constant: '/Constant16' - * Product: '/Divide1' - * Product: '/Divide3' - * RelationalOperator: '/Relational Operator7' - * Sum: '/Sum3' - * Switch: '/Switch3' - */ - if (rtb_LogicalOperator) { - /* MinMax: '/MinMax' */ - rtb_Switch2_d = rtb_Switch1_l; - if (!(rtb_Switch2_d < rtDW->z_counterRawPrev)) { - rtb_Switch2_d = rtDW->z_counterRawPrev; } - /* End of MinMax: '/MinMax' */ + /* End of Chart: '/F03_02_Control_Mode_Manager' */ - /* Switch: '/Switch3' incorporates: - * Constant: '/Constant16' - * Constant: '/vec_hallToPos' - * RelationalOperator: '/Relational Operator7' - * Selector: '/Selector' - * Sum: '/Sum1' + /* If: '/If1' incorporates: + * Constant: '/z_ctrlTypSel1' + * DataTypeConversion: '/Data Type Conversion2' + * Inport: '/r_inpTgt' + * Saturate: '/Saturation' */ - if (rtDW->Switch2 == 1) { - rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum]; - } else { - rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[rtb_Sum] + 1); - } - - rtb_Switch2_d = (int16_T)(((int16_T)((int16_T)((rtb_Switch2_d << 14) / - rtDW->z_counterRawPrev) * rtDW->Switch2) + (rtb_Sum2_h << 14)) >> 2); - } else { - if (rtDW->Switch2 == 1) { - /* Switch: '/Switch3' incorporates: - * Constant: '/vec_hallToPos' - * Selector: '/Selector' + if (rtP->z_ctrlTypSel == 2) { + /* Outputs for IfAction SubSystem: '/FOC_Control_Type' incorporates: + * ActionPort: '/Action Port' */ - rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum]; - } else { - /* Switch: '/Switch3' incorporates: - * Constant: '/vec_hallToPos' - * Selector: '/Selector' - * Sum: '/Sum1' + /* SignalConversion: '/TmpSignal ConversionAtSelectorInport1' incorporates: + * Constant: '/Vd_max' + * Constant: '/constant1' + * Constant: '/i_max' + * Constant: '/n_max' */ - rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[rtb_Sum] + 1); - } + tmp[0] = 0; + tmp[1] = rtP->Vd_max; + tmp[2] = rtP->n_max; + tmp[3] = rtP->i_max; - rtb_Switch2_d = (int16_T)(rtb_Sum2_h << 12); - } + /* End of Outputs for SubSystem: '/FOC_Control_Type' */ - /* End of Switch: '/Switch2' */ + /* Saturate: '/Saturation' incorporates: + * DataTypeConversion: '/Data Type Conversion2' + */ + if (rtb_DataTypeConversion2 > 16000) { + rtb_Merge = 16000; + } else if (rtb_DataTypeConversion2 < -16000) { + rtb_Merge = -16000; + } else { + rtb_Merge = rtb_DataTypeConversion2; + } - /* MinMax: '/MinMax1' incorporates: - * Constant: '/Constant1' - */ - if (!(rtb_Switch2_d > 0)) { - rtb_Switch2_d = 0; + /* Outputs for IfAction SubSystem: '/FOC_Control_Type' incorporates: + * ActionPort: '/Action Port' + */ + /* Product: '/Divide1' incorporates: + * Inport: '/z_ctrlModReq' + * Product: '/Divide4' + * Selector: '/Selector' + */ + rtb_Merge = (int16_T)(((uint16_T)((tmp[rtU->z_ctrlModReq] << 5) / 125) * + rtb_Merge) >> 12); + + /* End of Outputs for SubSystem: '/FOC_Control_Type' */ + } else if (rtb_DataTypeConversion2 > 16000) { + /* Outputs for IfAction SubSystem: '/Default_Control_Type' incorporates: + * ActionPort: '/Action Port' + */ + /* Saturate: '/Saturation' incorporates: + * Inport: '/r_inpTgt' + */ + rtb_Merge = 16000; + + /* End of Outputs for SubSystem: '/Default_Control_Type' */ + } else if (rtb_DataTypeConversion2 < -16000) { + /* Outputs for IfAction SubSystem: '/Default_Control_Type' incorporates: + * ActionPort: '/Action Port' + */ + /* Saturate: '/Saturation' incorporates: + * Inport: '/r_inpTgt' + */ + rtb_Merge = -16000; + + /* End of Outputs for SubSystem: '/Default_Control_Type' */ + } else { + /* Outputs for IfAction SubSystem: '/Default_Control_Type' incorporates: + * ActionPort: '/Action Port' + */ + rtb_Merge = rtb_DataTypeConversion2; + + /* End of Outputs for SubSystem: '/Default_Control_Type' */ + } + + /* End of If: '/If1' */ + + /* If: '/If2' incorporates: + * Inport: '/r_inpTgtScaRaw' + */ + rtb_Sum2_h = rtDW->If2_ActiveSubsystem; + UnitDelay3 = (int8_T)!(rtDW->z_ctrlMod == 0); + rtDW->If2_ActiveSubsystem = UnitDelay3; + switch (UnitDelay3) { + case 0: + if (UnitDelay3 != rtb_Sum2_h) { + /* SystemReset for IfAction SubSystem: '/Open_Mode' incorporates: + * ActionPort: '/Action Port' + */ + /* SystemReset for Atomic SubSystem: '/rising_edge_init' */ + /* SystemReset for If: '/If2' incorporates: + * UnitDelay: '/UnitDelay' + * UnitDelay: '/UnitDelay' + */ + rtDW->UnitDelay_DSTATE_e = true; + + /* End of SystemReset for SubSystem: '/rising_edge_init' */ + + /* SystemReset for Atomic SubSystem: '/Rate_Limiter' */ + rtDW->UnitDelay_DSTATE = 0; + + /* End of SystemReset for SubSystem: '/Rate_Limiter' */ + /* End of SystemReset for SubSystem: '/Open_Mode' */ + } + + /* Outputs for IfAction SubSystem: '/Open_Mode' incorporates: + * ActionPort: '/Action Port' + */ + /* DataTypeConversion: '/Data Type Conversion' incorporates: + * UnitDelay: '/UnitDelay4' + */ + rtb_Gain3 = rtDW->UnitDelay4_DSTATE_eu << 12; + rtb_DataTypeConversion = (rtb_Gain3 & 134217728) != 0 ? rtb_Gain3 | + -134217728 : rtb_Gain3 & 134217727; + + /* Outputs for Atomic SubSystem: '/rising_edge_init' */ + /* UnitDelay: '/UnitDelay' */ + rtb_RelationalOperator9 = rtDW->UnitDelay_DSTATE_e; + + /* Update for UnitDelay: '/UnitDelay' incorporates: + * Constant: '/Constant' + */ + rtDW->UnitDelay_DSTATE_e = false; + + /* End of Outputs for SubSystem: '/rising_edge_init' */ + + /* Outputs for Atomic SubSystem: '/Rate_Limiter' */ + /* Switch: '/Switch1' incorporates: + * UnitDelay: '/UnitDelay' + */ + if (rtb_RelationalOperator9) { + rtb_Switch1 = rtb_DataTypeConversion; + } else { + rtb_Switch1 = rtDW->UnitDelay_DSTATE; + } + + /* End of Switch: '/Switch1' */ + + /* Sum: '/Sum1' */ + rtb_Gain3 = -rtb_Switch1; + rtb_Sum1 = (rtb_Gain3 & 134217728) != 0 ? rtb_Gain3 | -134217728 : + rtb_Gain3 & 134217727; + + /* Switch: '/Switch2' incorporates: + * Constant: '/dV_openRate' + * RelationalOperator: '/LowerRelop1' + */ + if (rtb_Sum1 > rtP->dV_openRate) { + rtb_Sum1 = rtP->dV_openRate; + } else { + /* Gain: '/Gain3' */ + rtb_Gain3 = -rtP->dV_openRate; + rtb_Gain3 = (rtb_Gain3 & 134217728) != 0 ? rtb_Gain3 | -134217728 : + rtb_Gain3 & 134217727; + + /* Switch: '/Switch' incorporates: + * RelationalOperator: '/UpperRelop' + */ + if (rtb_Sum1 < rtb_Gain3) { + rtb_Sum1 = rtb_Gain3; + } + + /* End of Switch: '/Switch' */ + } + + /* End of Switch: '/Switch2' */ + + /* Sum: '/Sum2' */ + rtb_Gain3 = rtb_Sum1 + rtb_Switch1; + rtb_Switch1 = (rtb_Gain3 & 134217728) != 0 ? rtb_Gain3 | -134217728 : + rtb_Gain3 & 134217727; + + /* Switch: '/Switch2' */ + if (rtb_RelationalOperator9) { + /* Update for UnitDelay: '/UnitDelay' */ + rtDW->UnitDelay_DSTATE = rtb_DataTypeConversion; + } else { + /* Update for UnitDelay: '/UnitDelay' */ + rtDW->UnitDelay_DSTATE = rtb_Switch1; + } + + /* End of Switch: '/Switch2' */ + /* End of Outputs for SubSystem: '/Rate_Limiter' */ + + /* DataTypeConversion: '/Data Type Conversion1' */ + rtDW->Merge1 = (int16_T)(rtb_Switch1 >> 12); + + /* End of Outputs for SubSystem: '/Open_Mode' */ + break; + + case 1: + /* Outputs for IfAction SubSystem: '/Default_Mode' incorporates: + * ActionPort: '/Action Port' + */ + rtDW->Merge1 = rtb_Merge; + + /* End of Outputs for SubSystem: '/Default_Mode' */ + break; + } + + /* End of If: '/If2' */ + /* End of Outputs for SubSystem: '/F03_Control_Mode_Manager' */ } - /* End of MinMax: '/MinMax1' */ + /* End of If: '/If4' */ - /* Product: '/Divide2' */ - rtb_Divide2_h = (uint16_T)((15 * rtb_Switch2_d) >> 4); + /* UnitDelay: '/UnitDelay5' */ + rtb_RelationalOperator9 = rtDW->UnitDelay5_DSTATE_l; /* Saturate: '/Saturation' incorporates: * Inport: '/i_phaAB' */ rtb_Gain3 = rtU->i_phaAB << 4; - if (rtb_Gain3 >= 32000) { - rtb_Saturation = 32000; - } else if (rtb_Gain3 <= -32000) { - rtb_Saturation = -32000; + if (rtb_Gain3 >= 27200) { + rtb_Merge = 27200; + } else if (rtb_Gain3 <= -27200) { + rtb_Merge = -27200; } else { - rtb_Saturation = (int16_T)(rtU->i_phaAB << 4); + rtb_Merge = (int16_T)(rtU->i_phaAB << 4); } /* End of Saturate: '/Saturation' */ @@ -1424,171 +1377,197 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Inport: '/i_phaBC' */ rtb_Gain3 = rtU->i_phaBC << 4; - if (rtb_Gain3 >= 32000) { - rtb_Switch2_d = 32000; - } else if (rtb_Gain3 <= -32000) { - rtb_Switch2_d = -32000; + if (rtb_Gain3 >= 27200) { + rtb_Saturation1 = 27200; + } else if (rtb_Gain3 <= -27200) { + rtb_Saturation1 = -27200; } else { - rtb_Switch2_d = (int16_T)(rtU->i_phaBC << 4); + rtb_Saturation1 = (int16_T)(rtU->i_phaBC << 4); } /* End of Saturate: '/Saturation1' */ + /* If: '/If3' incorporates: + * Constant: '/CTRL_COMM2' + * Constant: '/b_fieldWeakEna' + * Constant: '/z_ctrlTypSel1' + * Logic: '/Logical Operator1' + * RelationalOperator: '/Relational Operator1' + * UnitDelay: '/UnitDelay5' + */ + if (rtP->b_fieldWeakEna && rtDW->UnitDelay5_DSTATE_l && (rtP->z_ctrlTypSel != + 0)) { + /* Outputs for IfAction SubSystem: '/F04_Field_Weakening' incorporates: + * ActionPort: '/Action Port' + */ + /* Abs: '/Abs5' incorporates: + * DataTypeConversion: '/Data Type Conversion2' + */ + if (rtb_DataTypeConversion2 < 0) { + rtb_DataTypeConversion2 = (int16_T)-rtb_DataTypeConversion2; + } + + /* End of Abs: '/Abs5' */ + + /* Switch: '/Switch2' incorporates: + * Constant: '/r_fieldWeakHi' + * Constant: '/r_fieldWeakLo' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' + */ + if (rtb_DataTypeConversion2 > rtP->r_fieldWeakHi) { + rtb_DataTypeConversion2 = rtP->r_fieldWeakHi; + } else { + if (rtb_DataTypeConversion2 < rtP->r_fieldWeakLo) { + /* Switch: '/Switch' incorporates: + * Constant: '/r_fieldWeakLo' + */ + rtb_DataTypeConversion2 = rtP->r_fieldWeakLo; + } + } + + /* End of Switch: '/Switch2' */ + + /* Switch: '/Switch2' incorporates: + * Constant: '/CTRL_COMM2' + * Constant: '/a_phaAdvMax' + * Constant: '/id_fieldWeakMax' + * RelationalOperator: '/Relational Operator1' + */ + if (rtP->z_ctrlTypSel == 2) { + rtb_Merge_f_idx_1 = rtP->id_fieldWeakMax; + } else { + rtb_Merge_f_idx_1 = rtP->a_phaAdvMax; + } + + /* End of Switch: '/Switch2' */ + + /* Switch: '/Switch2' incorporates: + * Constant: '/n_fieldWeakAuthHi' + * Constant: '/n_fieldWeakAuthLo' + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' + */ + if (rtb_Abs5 > rtP->n_fieldWeakAuthHi) { + rtb_Switch2_l = rtP->n_fieldWeakAuthHi; + } else if (rtb_Abs5 < rtP->n_fieldWeakAuthLo) { + /* Switch: '/Switch' incorporates: + * Constant: '/n_fieldWeakAuthLo' + */ + rtb_Switch2_l = rtP->n_fieldWeakAuthLo; + } else { + rtb_Switch2_l = rtb_Abs5; + } + + /* End of Switch: '/Switch2' */ + + /* Product: '/Divide3' incorporates: + * Constant: '/n_fieldWeakAuthHi' + * Constant: '/n_fieldWeakAuthLo' + * Constant: '/r_fieldWeakHi' + * Constant: '/r_fieldWeakLo' + * Product: '/Divide1' + * Product: '/Divide14' + * Product: '/Divide2' + * Sum: '/Sum1' + * Sum: '/Sum2' + * Sum: '/Sum3' + * Sum: '/Sum4' + */ + rtDW->Divide3 = (int16_T)(((uint16_T)(((uint32_T)(uint16_T)(((int16_T) + (rtb_DataTypeConversion2 - rtP->r_fieldWeakLo) << 15) / (int16_T) + (rtP->r_fieldWeakHi - rtP->r_fieldWeakLo)) * (uint16_T)(((int16_T) + (rtb_Switch2_l - rtP->n_fieldWeakAuthLo) << 15) / (int16_T) + (rtP->n_fieldWeakAuthHi - rtP->n_fieldWeakAuthLo))) >> 15) * + rtb_Merge_f_idx_1) >> 15); + + /* End of Outputs for SubSystem: '/F04_Field_Weakening' */ + } + + /* End of If: '/If3' */ + /* If: '/If1' incorporates: * Constant: '/z_ctrlTypSel1' */ rtb_Sum2_h = rtDW->If1_ActiveSubsystem; UnitDelay3 = -1; - if (rtP->z_ctrlTypSel == 1) { + if (rtP->z_ctrlTypSel == 2) { UnitDelay3 = 0; } rtDW->If1_ActiveSubsystem = UnitDelay3; if ((rtb_Sum2_h != UnitDelay3) && (rtb_Sum2_h == 0)) { - /* Disable for If: '/If2' */ + /* Disable for If: '/If2' */ if (rtDW->If2_ActiveSubsystem_a == 0) { - /* Disable for Outport: '/iq' */ + /* Disable for Outport: '/iq' */ rtDW->Sum1[0] = 0; - /* Disable for Outport: '/id' */ + /* Disable for Outport: '/id' */ rtDW->Sum1[1] = 0; } rtDW->If2_ActiveSubsystem_a = -1; - /* End of Disable for If: '/If2' */ - - /* Disable for If: '/If1' */ - if (rtDW->If1_ActiveSubsystem_e == 0) { - /* Disable for Outport: '/Vd' */ - rtDW->Switch1 = 0; - } - - rtDW->If1_ActiveSubsystem_e = -1; - - /* End of Disable for If: '/If1' */ - - /* Disable for If: '/If1' */ - if (rtDW->If1_ActiveSubsystem_f == 0) { - /* Disable for Outport: '/iq_limProt' */ - rtDW->Divide4 = 0; - } + /* End of Disable for If: '/If2' */ - rtDW->If1_ActiveSubsystem_f = -1; - - /* End of Disable for If: '/If1' */ - - /* Disable for If: '/If2' */ - if (rtDW->If2_ActiveSubsystem_c == 0) { - /* Disable for Outport: '/n_limProt' */ - rtDW->Divide1 = 0; - } - - rtDW->If2_ActiveSubsystem_c = -1; - - /* End of Disable for If: '/If2' */ - - /* Disable for SwitchCase: '/Switch Case' */ - rtDW->SwitchCase_ActiveSubsystem = -1; - - /* Disable for Outport: '/r_phaA' */ + /* Disable for Outport: '/V_phaABC_FOC' */ rtDW->Gain4[0] = 0; - - /* Disable for Outport: '/r_phaB' */ rtDW->Gain4[1] = 0; - - /* Disable for Outport: '/r_phaC ' */ rtDW->Gain4[2] = 0; - /* Disable for Outport: '/Vq' */ - rtDW->Merge = 0; - - /* Disable for Outport: '/r_devSignal1' */ + /* Disable for Outport: '/r_devSignal1' */ rtDW->Sum1[0] = 0; - /* Disable for Outport: '/r_devSignal2' */ + /* Disable for Outport: '/r_devSignal2' */ rtDW->Sum1[1] = 0; } if (UnitDelay3 == 0) { if (0 != rtb_Sum2_h) { - /* InitializeConditions for IfAction SubSystem: '/F04_Field_Oriented_Control' incorporates: - * ActionPort: '/Action Port' + /* InitializeConditions for IfAction SubSystem: '/F05_Field_Oriented_Control' incorporates: + * ActionPort: '/Action Port' */ /* InitializeConditions for If: '/If1' incorporates: - * UnitDelay: '/UnitDelay4' + * UnitDelay: '/UnitDelay4' */ - rtDW->UnitDelay4_DSTATE_er = 0; + rtDW->UnitDelay4_DSTATE_h = 0; - /* End of InitializeConditions for SubSystem: '/F04_Field_Oriented_Control' */ - } - - /* Outputs for IfAction SubSystem: '/F04_Field_Oriented_Control' incorporates: - * ActionPort: '/Action Port' - */ - /* Relay: '/n_fieldWeakAuth' */ - if (rtb_Abs5 >= rtP->n_fieldWeakAuthHi) { - rtDW->n_fieldWeakAuth_Mode = true; - } else { - if (rtb_Abs5 <= rtP->n_fieldWeakAuthLo) { - rtDW->n_fieldWeakAuth_Mode = false; - } + /* End of InitializeConditions for SubSystem: '/F05_Field_Oriented_Control' */ } - /* Switch: '/Switch1' incorporates: - * Constant: '/a_elecPeriod1' - * Constant: '/b_fieldWeakEna' - * Logic: '/Logical Operator2' - * Relay: '/n_fieldWeakAuth' + /* Outputs for IfAction SubSystem: '/F05_Field_Oriented_Control' incorporates: + * ActionPort: '/Action Port' */ - if (rtP->b_fieldWeakEna && rtDW->n_fieldWeakAuth_Mode) { - /* Abs: '/Abs5' */ - if (rtb_Merge < 0) { - rtb_id_fieldWeak_M1 = (int16_T)-rtb_Merge; - } else { - rtb_id_fieldWeak_M1 = rtb_Merge; - } - - /* End of Abs: '/Abs5' */ - - /* PreLookup: '/r_fieldWeak_XA' */ - rtb_r_fieldWeak_XA_o1 = plook_u8s16u8n6_evenc_s(rtb_id_fieldWeak_M1, - rtP->r_fieldWeak_XA[0], (uint16_T)(rtP->r_fieldWeak_XA[1] - - rtP->r_fieldWeak_XA[0]), 11U, &rtb_r_fieldWeak_XA_o2); - - /* Interpolation_n-D: '/id_fieldWeak_M1' */ - rtb_id_fieldWeak_M1 = intrp1d_s16s32s32u8u8n6l_s(rtb_r_fieldWeak_XA_o1, - rtb_r_fieldWeak_XA_o2, rtP->id_fieldWeak_M1); + /* Abs: '/Abs1' */ + if (rtDW->Merge1 < 0) { + rtb_Switch2_l = (int16_T)-rtDW->Merge1; } else { - rtb_id_fieldWeak_M1 = 0; + rtb_Switch2_l = rtDW->Merge1; } - /* End of Switch: '/Switch1' */ - - /* Gain: '/toNegative' */ - rtb_toNegative = (int16_T)-rtb_id_fieldWeak_M1; + /* End of Abs: '/Abs1' */ - /* Gain: '/Gain4' incorporates: - * Constant: '/i_max' - */ - rtb_Gain4 = (int16_T)-rtP->i_max; + /* Gain: '/toNegative' */ + rtb_toNegative = (int16_T)-rtDW->Divide3; - /* If: '/If1' incorporates: - * Constant: '/b_selPhaABCurrMeas' + /* If: '/If1' incorporates: + * Constant: '/b_selPhaABCurrMeas' */ if (rtP->b_selPhaABCurrMeas) { - /* Outputs for IfAction SubSystem: '/Clarke_PhasesAB' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Clarke_PhasesAB' incorporates: + * ActionPort: '/Action Port' */ - /* Gain: '/Gain4' */ - rtb_Gain3 = 18919 * rtb_Saturation; + /* Gain: '/Gain4' */ + rtb_Gain3 = 18919 * rtb_Merge; - /* Gain: '/Gain2' */ - rtb_DataTypeConversion = 18919 * rtb_Switch2_d; + /* Gain: '/Gain2' */ + rtb_DataTypeConversion = 18919 * rtb_Saturation1; - /* Sum: '/Sum1' incorporates: - * Gain: '/Gain2' - * Gain: '/Gain4' + /* Sum: '/Sum1' incorporates: + * Gain: '/Gain2' + * Gain: '/Gain4' */ rtb_Gain3 = (((rtb_Gain3 < 0 ? 32767 : 0) + rtb_Gain3) >> 15) + (int16_T) (((rtb_DataTypeConversion < 0 ? 16383 : 0) + rtb_DataTypeConversion) >> @@ -1601,16 +1580,16 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - rtb_Gain2_f = (int16_T)rtb_Gain3; + rtb_DataTypeConversion2 = (int16_T)rtb_Gain3; - /* End of Sum: '/Sum1' */ - /* End of Outputs for SubSystem: '/Clarke_PhasesAB' */ + /* End of Sum: '/Sum1' */ + /* End of Outputs for SubSystem: '/Clarke_PhasesAB' */ } else { - /* Outputs for IfAction SubSystem: '/Clarke_PhasesBC' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Clarke_PhasesBC' incorporates: + * ActionPort: '/Action Port' */ - /* Sum: '/Sum3' */ - rtb_Gain3 = rtb_Saturation - rtb_Switch2_d; + /* Sum: '/Sum3' */ + rtb_Gain3 = rtb_Merge - rtb_Saturation1; if (rtb_Gain3 > 32767) { rtb_Gain3 = 32767; } else { @@ -1619,14 +1598,15 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - /* Gain: '/Gain2' incorporates: - * Sum: '/Sum3' + /* Gain: '/Gain2' incorporates: + * Sum: '/Sum3' */ rtb_Gain3 *= 18919; - rtb_Gain2_f = (int16_T)(((rtb_Gain3 < 0 ? 32767 : 0) + rtb_Gain3) >> 15); + rtb_DataTypeConversion2 = (int16_T)(((rtb_Gain3 < 0 ? 32767 : 0) + + rtb_Gain3) >> 15); - /* Sum: '/Sum1' */ - rtb_Gain3 = -rtb_Saturation - rtb_Switch2_d; + /* Sum: '/Sum1' */ + rtb_Gain3 = -rtb_Merge - rtb_Saturation1; if (rtb_Gain3 > 32767) { rtb_Gain3 = 32767; } else { @@ -1635,25 +1615,19 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - rtb_Saturation = (int16_T)rtb_Gain3; + rtb_Merge = (int16_T)rtb_Gain3; - /* End of Sum: '/Sum1' */ - /* End of Outputs for SubSystem: '/Clarke_PhasesBC' */ + /* End of Sum: '/Sum1' */ + /* End of Outputs for SubSystem: '/Clarke_PhasesBC' */ } - /* End of If: '/If1' */ - - /* PreLookup: '/a_elecAngle_XA' */ - rtb_r_fieldWeak_XA_o1 = plook_u8u16_evencka(rtb_Divide2_h, 0U, 128U, 180U); - - /* Interpolation_n-D: '/r_sin_M1' */ - rtb_MinMax2 = rtConstP.r_sin_M1_Table[rtb_r_fieldWeak_XA_o1]; + /* End of If: '/If1' */ - /* Interpolation_n-D: '/r_cos_M1' */ - rtb_Switch2_d = rtConstP.r_cos_M1_Table[rtb_r_fieldWeak_XA_o1]; + /* PreLookup: '/a_elecAngle_XA' */ + rtb_Sum_l = plook_u8s16_evencka(rtb_Switch2_fl, 0, 128U, 180U); - /* If: '/If2' incorporates: - * Constant: '/cf_currFilt' + /* If: '/If2' incorporates: + * Constant: '/cf_currFilt' * Inport: '/b_motEna' */ rtb_Sum2_h = rtDW->If2_ActiveSubsystem_a; @@ -1664,38 +1638,38 @@ void BLDC_controller_step(RT_MODEL *const rtM) rtDW->If2_ActiveSubsystem_a = UnitDelay3; if ((rtb_Sum2_h != UnitDelay3) && (rtb_Sum2_h == 0)) { - /* Disable for Outport: '/iq' */ + /* Disable for Outport: '/iq' */ rtDW->Sum1[0] = 0; - /* Disable for Outport: '/id' */ + /* Disable for Outport: '/id' */ rtDW->Sum1[1] = 0; } if (UnitDelay3 == 0) { if (0 != rtb_Sum2_h) { - /* SystemReset for IfAction SubSystem: '/Current_Filtering' incorporates: - * ActionPort: '/Action Port' + /* SystemReset for IfAction SubSystem: '/Current_Filtering' incorporates: + * ActionPort: '/Action Port' */ - /* SystemReset for Atomic SubSystem: '/Low_Pass_Filter' */ + /* SystemReset for Atomic SubSystem: '/Low_Pass_Filter' */ - /* SystemReset for If: '/If2' */ + /* SystemReset for If: '/If2' */ Low_Pass_Filter_Reset(&rtDW->Low_Pass_Filter_m); - /* End of SystemReset for SubSystem: '/Low_Pass_Filter' */ + /* End of SystemReset for SubSystem: '/Low_Pass_Filter' */ - /* End of SystemReset for SubSystem: '/Current_Filtering' */ + /* End of SystemReset for SubSystem: '/Current_Filtering' */ } - /* Sum: '/Sum6' incorporates: - * Interpolation_n-D: '/r_cos_M1' - * Interpolation_n-D: '/r_sin_M1' - * Product: '/Divide1' - * Product: '/Divide4' + /* Sum: '/Sum6' incorporates: + * Interpolation_n-D: '/r_cos_M1' + * Interpolation_n-D: '/r_sin_M1' + * Product: '/Divide1' + * Product: '/Divide4' */ - rtb_Gain3 = (int16_T)((rtb_Gain2_f * - rtConstP.r_cos_M1_Table[rtb_r_fieldWeak_XA_o1]) >> 14) - (int16_T) - ((rtb_Saturation * rtConstP.r_sin_M1_Table[rtb_r_fieldWeak_XA_o1]) >> 14); + rtb_Gain3 = (int16_T)((rtb_DataTypeConversion2 * + rtConstP.r_cos_M1_Table[rtb_Sum_l]) >> 14) - (int16_T)((rtb_Merge * + rtConstP.r_sin_M1_Table[rtb_Sum_l]) >> 14); if (rtb_Gain3 > 32767) { rtb_Gain3 = 32767; } else { @@ -1704,25 +1678,25 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - /* Outputs for IfAction SubSystem: '/Current_Filtering' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Current_Filtering' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion: '/TmpSignal ConversionAtLow_Pass_FilterInport1' incorporates: - * Sum: '/Sum6' + /* SignalConversion: '/TmpSignal ConversionAtLow_Pass_FilterInport1' incorporates: + * Sum: '/Sum6' */ rtb_TmpSignalConversionAtLow_Pa[0] = (int16_T)rtb_Gain3; - /* End of Outputs for SubSystem: '/Current_Filtering' */ + /* End of Outputs for SubSystem: '/Current_Filtering' */ - /* Sum: '/Sum1' incorporates: - * Interpolation_n-D: '/r_cos_M1' - * Interpolation_n-D: '/r_sin_M1' - * Product: '/Divide2' - * Product: '/Divide3' + /* Sum: '/Sum1' incorporates: + * Interpolation_n-D: '/r_cos_M1' + * Interpolation_n-D: '/r_sin_M1' + * Product: '/Divide2' + * Product: '/Divide3' */ - rtb_Gain3 = (int16_T)((rtb_Saturation * - rtConstP.r_cos_M1_Table[rtb_r_fieldWeak_XA_o1]) >> 14) + (int16_T) - ((rtb_Gain2_f * rtConstP.r_sin_M1_Table[rtb_r_fieldWeak_XA_o1]) >> 14); + rtb_Gain3 = (int16_T)((rtb_Merge * rtConstP.r_cos_M1_Table[rtb_Sum_l]) >> + 14) + (int16_T)((rtb_DataTypeConversion2 * + rtConstP.r_sin_M1_Table[rtb_Sum_l]) >> 14); if (rtb_Gain3 > 32767) { rtb_Gain3 = 32767; } else { @@ -1731,575 +1705,416 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - /* Outputs for IfAction SubSystem: '/Current_Filtering' incorporates: - * ActionPort: '/Action Port' + /* Outputs for IfAction SubSystem: '/Current_Filtering' incorporates: + * ActionPort: '/Action Port' */ - /* SignalConversion: '/TmpSignal ConversionAtLow_Pass_FilterInport1' incorporates: - * Sum: '/Sum1' + /* SignalConversion: '/TmpSignal ConversionAtLow_Pass_FilterInport1' incorporates: + * Sum: '/Sum1' */ rtb_TmpSignalConversionAtLow_Pa[1] = (int16_T)rtb_Gain3; - /* Outputs for Atomic SubSystem: '/Low_Pass_Filter' */ + /* Outputs for Atomic SubSystem: '/Low_Pass_Filter' */ Low_Pass_Filter(rtb_TmpSignalConversionAtLow_Pa, rtP->cf_currFilt, rtDW->Sum1, &rtDW->Low_Pass_Filter_m); - /* End of Outputs for SubSystem: '/Low_Pass_Filter' */ + /* End of Outputs for SubSystem: '/Low_Pass_Filter' */ - /* End of Outputs for SubSystem: '/Current_Filtering' */ + /* End of Outputs for SubSystem: '/Current_Filtering' */ } - /* End of If: '/If2' */ + /* End of If: '/If2' */ - /* If: '/If1' incorporates: - * Constant: '/Vd_max1' - * Constant: '/cf_idKi1' - * Constant: '/cf_idKp1' - * Constant: '/constant1' - * Gain: '/Gain3' - * Sum: '/Sum3' + /* If: '/If3' incorporates: + * Constant: '/Vd_max1' + * Constant: '/i_max' + * UnitDelay: '/UnitDelay5' */ - rtb_Sum2_h = rtDW->If1_ActiveSubsystem_e; - UnitDelay3 = -1; - if (rtb_LogicalOperator) { - UnitDelay3 = 0; - } - - rtDW->If1_ActiveSubsystem_e = UnitDelay3; - if ((rtb_Sum2_h != UnitDelay3) && (rtb_Sum2_h == 0)) { - /* Disable for Outport: '/Vd' */ - rtDW->Switch1 = 0; - } - - if (UnitDelay3 == 0) { - if (0 != rtb_Sum2_h) { - /* SystemReset for IfAction SubSystem: '/Vd_Calculation' incorporates: - * ActionPort: '/Action Port' - */ - - /* SystemReset for Atomic SubSystem: '/PI_clamp_fixdt_id' */ - - /* SystemReset for If: '/If1' */ - PI_clamp_fixdt_Reset(&rtDW->PI_clamp_fixdt_id); - - /* End of SystemReset for SubSystem: '/PI_clamp_fixdt_id' */ - - /* End of SystemReset for SubSystem: '/Vd_Calculation' */ - } - - /* Outputs for IfAction SubSystem: '/Vd_Calculation' incorporates: - * ActionPort: '/Action Port' - */ - /* Switch: '/Switch2' incorporates: - * Constant: '/i_max' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' - */ - if (rtb_toNegative > rtP->i_max) { - rtb_toNegative = rtP->i_max; - } else { - if (rtb_toNegative < rtb_Gain4) { - /* Switch: '/Switch' */ - rtb_toNegative = rtb_Gain4; - } - } - - /* End of Switch: '/Switch2' */ - - /* Sum: '/Sum3' */ - rtb_Gain3 = rtb_toNegative - rtDW->Sum1[1]; - if (rtb_Gain3 > 32767) { - rtb_Gain3 = 32767; - } else { - if (rtb_Gain3 < -32768) { - rtb_Gain3 = -32768; - } - } - - /* Outputs for Atomic SubSystem: '/PI_clamp_fixdt_id' */ - PI_clamp_fixdt((int16_T)rtb_Gain3, rtP->cf_idKp, rtP->cf_idKi, rtP->Vd_max, - (int16_T)-rtP->Vd_max, 0, &rtDW->Switch1, - &rtDW->PI_clamp_fixdt_id); - - /* End of Outputs for SubSystem: '/PI_clamp_fixdt_id' */ - - /* End of Outputs for SubSystem: '/Vd_Calculation' */ - } - - /* End of If: '/If1' */ - - /* Abs: '/Abs5' */ - if (rtDW->Switch1 < 0) { - rtb_toNegative = (int16_T)-rtDW->Switch1; - } else { - rtb_toNegative = rtDW->Switch1; - } - - /* End of Abs: '/Abs5' */ - - /* PreLookup: '/Vq_max_XA' */ - rtb_r_fieldWeak_XA_o1 = plook_u8s16_evencka(rtb_toNegative, rtP->Vq_max_XA[0], - (uint16_T)(rtP->Vq_max_XA[1] - rtP->Vq_max_XA[0]), 45U); - - /* Gain: '/Gain5' incorporates: - * Interpolation_n-D: '/Vq_max_M1' - */ - rtb_Gain2_f = (int16_T)-rtP->Vq_max_M1[rtb_r_fieldWeak_XA_o1]; - - /* Interpolation_n-D: '/iq_maxSca_M1' incorporates: - * Constant: '/i_max' - * Product: '/Divide4' - */ - rtb_Gain3 = rtb_id_fieldWeak_M1 << 16; - rtb_Gain3 = (rtb_Gain3 == MIN_int32_T) && (rtP->i_max == -1) ? MAX_int32_T : - rtb_Gain3 / rtP->i_max; - if (rtb_Gain3 < 0) { - rtb_Gain3 = 0; - } else { - if (rtb_Gain3 > 65535) { - rtb_Gain3 = 65535; - } - } - - /* Product: '/Divide1' incorporates: - * Constant: '/i_max' - * Interpolation_n-D: '/iq_maxSca_M1' - * PreLookup: '/iq_maxSca_XA' - * Product: '/Divide4' - */ - rtb_id_fieldWeak_M1 = (int16_T) - ((rtConstP.iq_maxSca_M1_Table[plook_u8u16_evencka((uint16_T)rtb_Gain3, 0U, - 1311U, 49U)] * rtP->i_max) >> 16); - - /* Gain: '/Gain1' */ - rtb_Saturation = (int16_T)-rtb_id_fieldWeak_M1; - - /* If: '/If1' incorporates: - * Constant: '/CTRL_COMM' - * Constant: '/CTRL_COMM1' - * Logic: '/Logical Operator2' - * RelationalOperator: '/Relational Operator1' - * RelationalOperator: '/Relational Operator2' - */ - rtb_Sum2_h = rtDW->If1_ActiveSubsystem_f; - UnitDelay3 = -1; - if ((rtb_Sum_l == 1) || (rtb_Sum_l == 2)) { - UnitDelay3 = 0; - } - - rtDW->If1_ActiveSubsystem_f = UnitDelay3; - if ((rtb_Sum2_h != UnitDelay3) && (rtb_Sum2_h == 0)) { - /* Disable for Outport: '/iq_limProt' */ - rtDW->Divide4 = 0; - } - - if (UnitDelay3 == 0) { - /* Outputs for IfAction SubSystem: '/Current_Limit_Protection' incorporates: + if (rtDW->UnitDelay5_DSTATE_l) { + /* Outputs for IfAction SubSystem: '/Motor_Limitations' incorporates: * ActionPort: '/Action Port' */ - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' - */ - if (rtDW->Sum1[0] > rtb_id_fieldWeak_M1) { - rtb_toNegative = rtb_id_fieldWeak_M1; - } else if (rtDW->Sum1[0] < rtb_Saturation) { - /* Switch: '/Switch' */ - rtb_toNegative = rtb_Saturation; - } else { - rtb_toNegative = rtDW->Sum1[0]; - } + rtDW->Vd_max1 = rtP->Vd_max; - /* End of Switch: '/Switch2' */ + /* Gain: '/Gain3' incorporates: + * Constant: '/Vd_max1' + */ + rtDW->Gain3 = (int16_T)-rtDW->Vd_max1; - /* Product: '/Divide4' incorporates: - * Constant: '/cf_iqKpLimProt' - * Sum: '/Sum3' + /* Interpolation_n-D: '/Vq_max_M1' incorporates: + * Abs: '/Abs5' + * PreLookup: '/Vq_max_XA' + * UnitDelay: '/UnitDelay4' */ - rtb_Gain3 = ((int16_T)(rtb_toNegative - rtDW->Sum1[0]) * - rtP->cf_iqKpLimProt) >> 8; - if (rtb_Gain3 > 32767) { - rtb_Gain3 = 32767; + if (rtDW->UnitDelay4_DSTATE_h < 0) { + rtb_Merge_f_idx_1 = (int16_T)-rtDW->UnitDelay4_DSTATE_h; } else { - if (rtb_Gain3 < -32768) { - rtb_Gain3 = -32768; - } + rtb_Merge_f_idx_1 = rtDW->UnitDelay4_DSTATE_h; } - rtDW->Divide4 = (int16_T)rtb_Gain3; + rtDW->Vq_max_M1 = rtP->Vq_max_M1[plook_u8s16_evencka(rtb_Merge_f_idx_1, + rtP->Vq_max_XA[0], (uint16_T)(rtP->Vq_max_XA[1] - rtP->Vq_max_XA[0]), + 45U)]; - /* End of Product: '/Divide4' */ - /* End of Outputs for SubSystem: '/Current_Limit_Protection' */ - } - - /* End of If: '/If1' */ - - /* Gain: '/Gain6' incorporates: - * Constant: '/n_max1' - */ - rtb_toNegative = (int16_T)-rtP->n_max; - - /* If: '/If2' incorporates: - * Constant: '/CTRL_COMM2' - * Constant: '/CTRL_COMM3' - * Logic: '/Logical Operator1' - * RelationalOperator: '/Relational Operator3' - * RelationalOperator: '/Relational Operator4' - */ - rtb_Sum2_h = rtDW->If2_ActiveSubsystem_c; - UnitDelay3 = -1; - if ((rtb_Sum_l == 1) || (rtb_Sum_l == 3)) { - UnitDelay3 = 0; - } + /* End of Interpolation_n-D: '/Vq_max_M1' */ - rtDW->If2_ActiveSubsystem_c = UnitDelay3; - if ((rtb_Sum2_h != UnitDelay3) && (rtb_Sum2_h == 0)) { - /* Disable for Outport: '/n_limProt' */ - rtDW->Divide1 = 0; - } + /* Gain: '/Gain5' */ + rtDW->Gain5 = (int16_T)-rtDW->Vq_max_M1; + rtDW->i_max = rtP->i_max; - if (UnitDelay3 == 0) { - /* Outputs for IfAction SubSystem: '/Speed_Limit_Protection' incorporates: - * ActionPort: '/Action Port' + /* Interpolation_n-D: '/iq_maxSca_M1' incorporates: + * Constant: '/i_max' + * Product: '/Divide4' */ - /* Switch: '/Switch2' incorporates: - * Constant: '/n_max1' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Switch: '/Switch' - */ - if (rtb_Switch2_fv > rtP->n_max) { - rtb_toNegative = rtP->n_max; + rtb_Gain3 = rtDW->Divide3 << 16; + rtb_Gain3 = (rtb_Gain3 == MIN_int32_T) && (rtDW->i_max == -1) ? + MAX_int32_T : rtb_Gain3 / rtDW->i_max; + if (rtb_Gain3 < 0) { + rtb_Gain3 = 0; } else { - if (!(rtb_Switch2_fv < rtb_toNegative)) { - rtb_toNegative = rtb_Switch2_fv; + if (rtb_Gain3 > 65535) { + rtb_Gain3 = 65535; } } - /* End of Switch: '/Switch2' */ - - /* Product: '/Divide1' incorporates: - * Constant: '/cf_nKpLimProt' - * Sum: '/Sum1' + /* Product: '/Divide1' incorporates: + * Interpolation_n-D: '/iq_maxSca_M1' + * PreLookup: '/iq_maxSca_XA' + * Product: '/Divide4' */ - rtb_Gain3 = ((int16_T)(rtb_toNegative - rtb_Switch2_fv) * - rtP->cf_nKpLimProt) >> 8; - if (rtb_Gain3 > 32767) { - rtb_Gain3 = 32767; - } else { - if (rtb_Gain3 < -32768) { - rtb_Gain3 = -32768; + rtDW->Divide1_a = (int16_T) + ((rtConstP.iq_maxSca_M1_Table[plook_u8u16_evencka((uint16_T)rtb_Gain3, + 0U, 1311U, 49U)] * rtDW->i_max) >> 16); + + /* Gain: '/Gain1' */ + rtDW->Gain1 = (int16_T)-rtDW->Divide1_a; + + /* SwitchCase: '/Switch Case' incorporates: + * Constant: '/n_max1' + * Constant: '/Constant1' + * Constant: '/cf_KbLimProt' + * Constant: '/cf_nKiLimProt' + * Constant: '/Constant' + * Constant: '/Constant1' + * Constant: '/cf_KbLimProt' + * Constant: '/cf_iqKiLimProt' + * Constant: '/cf_nKiLimProt' + * Sum: '/Sum1' + * Sum: '/Sum1' + * Sum: '/Sum2' + */ + switch (rtDW->z_ctrlMod) { + case 1: + /* Abs: '/Abs5' */ + if (rtDW->Sum1[0] < 0) { + rtb_Merge_f_idx_1 = (int16_T)-rtDW->Sum1[0]; + } else { + rtb_Merge_f_idx_1 = rtDW->Sum1[0]; } - } - rtDW->Divide1 = (int16_T)rtb_Gain3; + /* End of Abs: '/Abs5' */ - /* End of Product: '/Divide1' */ - /* End of Outputs for SubSystem: '/Speed_Limit_Protection' */ - } + /* Outputs for IfAction SubSystem: '/Voltage_Mode_Protection' incorporates: + * ActionPort: '/Action Port' + */ - /* End of If: '/If2' */ + /* Outputs for Atomic SubSystem: '/I_backCalc_fixdt' */ + I_backCalc_fixdt((int16_T)(rtDW->Divide1_a - rtb_Merge_f_idx_1), + rtP->cf_iqKiLimProt, rtP->cf_KbLimProt, rtb_Switch2_l, + 0, &rtDW->Switch2_c, &rtDW->I_backCalc_fixdt_i); - /* SwitchCase: '/Switch Case' incorporates: - * Constant: '/cf_iqKiLimProt' - * Constant: '/cf_nKi' - * Constant: '/cf_nKp' - * Interpolation_n-D: '/Vq_max_M1' - * Product: '/Divide1' - * SignalConversion: '/Signal Conversion2' - * Sum: '/Sum3' - */ - rtb_Sum2_h = rtDW->SwitchCase_ActiveSubsystem; - switch (rtb_Sum_l) { - case 1: - UnitDelay3 = 0; - break; + /* End of Outputs for SubSystem: '/I_backCalc_fixdt' */ - case 2: - UnitDelay3 = 1; - break; + /* Outputs for Atomic SubSystem: '/I_backCalc_fixdt1' */ + I_backCalc_fixdt((int16_T)(rtP->n_max - rtb_Abs5), rtP->cf_nKiLimProt, + rtP->cf_KbLimProt, rtb_Switch2_l, 0, &rtDW->Switch2_l, + &rtDW->I_backCalc_fixdt1); - case 3: - UnitDelay3 = 2; - break; + /* End of Outputs for SubSystem: '/I_backCalc_fixdt1' */ - default: - UnitDelay3 = 3; - break; - } + /* End of Outputs for SubSystem: '/Voltage_Mode_Protection' */ + break; - rtDW->SwitchCase_ActiveSubsystem = UnitDelay3; - switch (UnitDelay3) { - case 0: - /* Outputs for IfAction SubSystem: '/Voltage_Mode' incorporates: - * ActionPort: '/Action Port' - */ - /* Sum: '/Sum3' */ - rtb_Gain3 = (rtb_Merge + rtDW->Divide4) + rtDW->Divide1; - if (rtb_Gain3 > 32767) { - rtb_Gain3 = 32767; - } else { - if (rtb_Gain3 < -32768) { - rtb_Gain3 = -32768; + case 2: + /* Outputs for IfAction SubSystem: '/Speed_Mode_Protection' incorporates: + * ActionPort: '/Action Port' + */ + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' + */ + if (rtDW->Sum1[0] > rtDW->Divide1_a) { + rtb_Merge_f_idx_1 = rtDW->Divide1_a; + } else if (rtDW->Sum1[0] < rtDW->Gain1) { + /* Switch: '/Switch' */ + rtb_Merge_f_idx_1 = rtDW->Gain1; + } else { + rtb_Merge_f_idx_1 = rtDW->Sum1[0]; } - } - /* Switch: '/Switch2' incorporates: - * Interpolation_n-D: '/Vq_max_M1' - * RelationalOperator: '/LowerRelop1' - * RelationalOperator: '/UpperRelop' - * Sum: '/Sum3' - * Switch: '/Switch' - */ - if ((int16_T)rtb_Gain3 > rtP->Vq_max_M1[rtb_r_fieldWeak_XA_o1]) { - /* SignalConversion: '/Signal Conversion2' */ - rtDW->Merge = rtP->Vq_max_M1[rtb_r_fieldWeak_XA_o1]; - } else if ((int16_T)rtb_Gain3 < rtb_Gain2_f) { - /* Switch: '/Switch' incorporates: - * SignalConversion: '/Signal Conversion2' + /* End of Switch: '/Switch2' */ + + /* Product: '/Divide1' incorporates: + * Constant: '/cf_iqKiLimProt' + * Sum: '/Sum3' */ - rtDW->Merge = rtb_Gain2_f; - } else { - /* SignalConversion: '/Signal Conversion2' */ - rtDW->Merge = (int16_T)rtb_Gain3; - } + rtDW->Divide1 = (int16_T)(rtb_Merge_f_idx_1 - rtDW->Sum1[0]) * + rtP->cf_iqKiLimProt; - /* End of Switch: '/Switch2' */ - /* End of Outputs for SubSystem: '/Voltage_Mode' */ - break; + /* End of Outputs for SubSystem: '/Speed_Mode_Protection' */ + break; - case 1: - if (UnitDelay3 != rtb_Sum2_h) { - /* SystemReset for IfAction SubSystem: '/Speed_Mode' incorporates: - * ActionPort: '/Action Port' + case 3: + /* Outputs for IfAction SubSystem: '/Torque_Mode_Protection' incorporates: + * ActionPort: '/Action Port' */ - /* SystemReset for Atomic SubSystem: '/PI_clamp_fixdt_n' */ - - /* SystemReset for SwitchCase: '/Switch Case' */ - PI_clamp_fixdt_n_Reset(&rtDW->PI_clamp_fixdt_n_o); + /* Outputs for Atomic SubSystem: '/I_backCalc_fixdt' */ + I_backCalc_fixdt((int16_T)(rtP->n_max - rtb_Abs5), rtP->cf_nKiLimProt, + rtP->cf_KbLimProt, rtDW->Vq_max_M1, 0, &rtDW->Switch2, + &rtDW->I_backCalc_fixdt_g); - /* End of SystemReset for SubSystem: '/PI_clamp_fixdt_n' */ + /* End of Outputs for SubSystem: '/I_backCalc_fixdt' */ - /* End of SystemReset for SubSystem: '/Speed_Mode' */ + /* End of Outputs for SubSystem: '/Torque_Mode_Protection' */ + break; } - /* Outputs for IfAction SubSystem: '/Speed_Mode' incorporates: - * ActionPort: '/Action Port' - */ - /* Sum: '/Sum3' */ - rtb_Gain3 = rtb_Merge - rtb_Switch2_fv; - if (rtb_Gain3 > 32767) { - rtb_Gain3 = 32767; - } else { - if (rtb_Gain3 < -32768) { - rtb_Gain3 = -32768; - } - } + /* End of SwitchCase: '/Switch Case' */ - /* Outputs for Atomic SubSystem: '/PI_clamp_fixdt_n' */ - rtDW->Merge = (int16_T) PI_clamp_fixdt_n((int16_T)rtb_Gain3, rtP->cf_nKp, - rtP->cf_nKi, rtP->Vq_max_M1[rtb_r_fieldWeak_XA_o1], rtb_Gain2_f, - (int16_T)((rtDW->Divide4 * rtP->cf_iqKiLimProt) >> 10), - &rtDW->PI_clamp_fixdt_n_o); + /* Gain: '/Gain4' */ + rtDW->Gain4_c = (int16_T)-rtDW->i_max; - /* End of Outputs for SubSystem: '/PI_clamp_fixdt_n' */ + /* End of Outputs for SubSystem: '/Motor_Limitations' */ + } - /* End of Outputs for SubSystem: '/Speed_Mode' */ - break; + /* End of If: '/If3' */ - case 2: - if (UnitDelay3 != rtb_Sum2_h) { - /* SystemReset for IfAction SubSystem: '/Torque_Mode' incorporates: - * ActionPort: '/Action Port' + /* If: '/If1' incorporates: + * UnitDelay: '/UnitDelay6' + */ + if (rtDW->UnitDelay6_DSTATE) { + /* Outputs for IfAction SubSystem: '/FOC' incorporates: + * ActionPort: '/Action Port' + */ + /* If: '/If1' incorporates: + * Constant: '/cf_idKi1' + * Constant: '/cf_idKp1' + * Constant: '/constant1' + * Sum: '/Sum3' + */ + if (rtb_LogicalOperator) { + /* Outputs for IfAction SubSystem: '/Vd_Calculation' incorporates: + * ActionPort: '/Action Port' + */ + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ + if (rtb_toNegative > rtDW->i_max) { + rtb_toNegative = rtDW->i_max; + } else { + if (rtb_toNegative < rtDW->Gain4_c) { + /* Switch: '/Switch' */ + rtb_toNegative = rtDW->Gain4_c; + } + } - /* SystemReset for Atomic SubSystem: '/PI_clamp_fixdt_iq' */ + /* End of Switch: '/Switch2' */ - /* SystemReset for SwitchCase: '/Switch Case' */ - PI_clamp_fixdt_Reset(&rtDW->PI_clamp_fixdt_iq); + /* Sum: '/Sum3' */ + rtb_Gain3 = rtb_toNegative - rtDW->Sum1[1]; + if (rtb_Gain3 > 32767) { + rtb_Gain3 = 32767; + } else { + if (rtb_Gain3 < -32768) { + rtb_Gain3 = -32768; + } + } - /* End of SystemReset for SubSystem: '/PI_clamp_fixdt_iq' */ + /* Outputs for Atomic SubSystem: '/PI_clamp_fixdt' */ + PI_clamp_fixdt((int16_T)rtb_Gain3, rtP->cf_idKp, rtP->cf_idKi, + rtDW->Vd_max1, rtDW->Gain3, 0, &rtDW->Switch1, + &rtDW->PI_clamp_fixdt_k); - /* End of SystemReset for SubSystem: '/Torque_Mode' */ - } + /* End of Outputs for SubSystem: '/PI_clamp_fixdt' */ - /* Outputs for IfAction SubSystem: '/Torque_Mode' incorporates: - * ActionPort: '/Action Port' - */ - /* Sum: '/Sum2' */ - rtb_Gain3 = rtb_Merge + rtDW->Divide1; - if (rtb_Gain3 > 32767) { - rtb_Gain3 = 32767; - } else { - if (rtb_Gain3 < -32768) { - rtb_Gain3 = -32768; - } + /* End of Outputs for SubSystem: '/Vd_Calculation' */ } - /* Switch: '/Switch2' incorporates: - * RelationalOperator: '/LowerRelop1' - * Sum: '/Sum2' + /* End of If: '/If1' */ + + /* SwitchCase: '/Switch Case' incorporates: + * Constant: '/cf_nKi' + * Constant: '/cf_nKp' + * Constant: '/cf_iqKi' + * Constant: '/cf_iqKp' + * Constant: '/constant2' + * Inport: '/r_inpTgtSca' + * Sum: '/Sum3' + * Sum: '/Sum2' */ - if (!((int16_T)rtb_Gain3 > rtb_id_fieldWeak_M1)) { - /* Switch: '/Switch' incorporates: - * RelationalOperator: '/UpperRelop' + switch (rtDW->z_ctrlMod) { + case 1: + /* Outputs for IfAction SubSystem: '/Voltage_Mode' incorporates: + * ActionPort: '/Action Port' */ - if ((int16_T)rtb_Gain3 < rtb_Saturation) { - rtb_id_fieldWeak_M1 = rtb_Saturation; - } else { - rtb_id_fieldWeak_M1 = (int16_T)rtb_Gain3; + /* MinMax: '/MinMax' */ + if (!(rtb_Switch2_l < rtDW->Switch2_c)) { + rtb_Switch2_l = rtDW->Switch2_c; } - /* End of Switch: '/Switch' */ - } - - /* End of Switch: '/Switch2' */ - - /* Sum: '/Sum1' */ - rtb_Gain3 = rtb_id_fieldWeak_M1 - rtDW->Sum1[0]; - if (rtb_Gain3 > 32767) { - rtb_Gain3 = 32767; - } else { - if (rtb_Gain3 < -32768) { - rtb_Gain3 = -32768; + if (!(rtb_Switch2_l < rtDW->Switch2_l)) { + rtb_Switch2_l = rtDW->Switch2_l; } - } - /* Outputs for Atomic SubSystem: '/PI_clamp_fixdt_iq' */ + /* End of MinMax: '/MinMax' */ - /* SignalConversion: '/Signal Conversion2' incorporates: - * Constant: '/cf_iqKi' - * Constant: '/cf_iqKp' - * Constant: '/constant' - * Interpolation_n-D: '/Vq_max_M1' - * Sum: '/Sum1' - */ - PI_clamp_fixdt((int16_T)rtb_Gain3, rtP->cf_iqKp, rtP->cf_iqKi, - rtP->Vq_max_M1[rtb_r_fieldWeak_XA_o1], rtb_Gain2_f, 0, - &rtDW->Merge, &rtDW->PI_clamp_fixdt_iq); + /* Signum: '/SignDeltaU2' */ + if (rtDW->Merge1 < 0) { + rtb_Merge_f_idx_1 = -1; + } else { + rtb_Merge_f_idx_1 = (int16_T)(rtDW->Merge1 > 0); + } - /* End of Outputs for SubSystem: '/PI_clamp_fixdt_iq' */ + /* End of Signum: '/SignDeltaU2' */ - /* End of Outputs for SubSystem: '/Torque_Mode' */ - break; + /* Product: '/Divide1' */ + rtb_Merge = (int16_T)(rtb_Switch2_l * rtb_Merge_f_idx_1); - case 3: - if (UnitDelay3 != rtb_Sum2_h) { - /* SystemReset for IfAction SubSystem: '/Open_Mode' incorporates: - * ActionPort: '/Action Port' - */ - /* SystemReset for Atomic SubSystem: '/rising_edge_init' */ - /* SystemReset for SwitchCase: '/Switch Case' incorporates: - * UnitDelay: '/UnitDelay' - * UnitDelay: '/UnitDelay' + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' */ - rtDW->UnitDelay_DSTATE_g = true; + if (rtb_Merge > rtDW->Vq_max_M1) { + /* SignalConversion: '/Signal Conversion2' */ + rtDW->Merge = rtDW->Vq_max_M1; + } else if (rtb_Merge < rtDW->Gain5) { + /* Switch: '/Switch' incorporates: + * SignalConversion: '/Signal Conversion2' + */ + rtDW->Merge = rtDW->Gain5; + } else { + /* SignalConversion: '/Signal Conversion2' incorporates: + * Switch: '/Switch' + */ + rtDW->Merge = rtb_Merge; + } - /* End of SystemReset for SubSystem: '/rising_edge_init' */ + /* End of Switch: '/Switch2' */ + /* End of Outputs for SubSystem: '/Voltage_Mode' */ + break; - /* SystemReset for Atomic SubSystem: '/Rate_Limiter' */ - rtDW->UnitDelay_DSTATE = 0; + case 2: + /* Outputs for IfAction SubSystem: '/Speed_Mode' incorporates: + * ActionPort: '/Action Port' + */ + /* Sum: '/Sum3' */ + rtb_Gain3 = rtDW->Merge1 - rtb_Switch2_k; + if (rtb_Gain3 > 32767) { + rtb_Gain3 = 32767; + } else { + if (rtb_Gain3 < -32768) { + rtb_Gain3 = -32768; + } + } - /* End of SystemReset for SubSystem: '/Rate_Limiter' */ - /* End of SystemReset for SubSystem: '/Open_Mode' */ - } + /* Outputs for Atomic SubSystem: '/PI_clamp_fixdt' */ + PI_clamp_fixdt((int16_T)rtb_Gain3, rtP->cf_nKp, rtP->cf_nKi, + rtDW->Vq_max_M1, rtDW->Gain5, rtDW->Divide1, &rtDW->Merge, + &rtDW->PI_clamp_fixdt_o); - /* Outputs for IfAction SubSystem: '/Open_Mode' incorporates: - * ActionPort: '/Action Port' - */ - /* DataTypeConversion: '/Data Type Conversion' incorporates: - * UnitDelay: '/UnitDelay4' - */ - rtb_Gain3 = rtDW->UnitDelay4_DSTATE_er << 12; - rtb_DataTypeConversion = (rtb_Gain3 & 134217728) != 0 ? rtb_Gain3 | - -134217728 : rtb_Gain3 & 134217727; + /* End of Outputs for SubSystem: '/PI_clamp_fixdt' */ - /* Outputs for Atomic SubSystem: '/rising_edge_init' */ - /* UnitDelay: '/UnitDelay' */ - rtb_RelationalOperator4_d = rtDW->UnitDelay_DSTATE_g; + /* End of Outputs for SubSystem: '/Speed_Mode' */ + break; - /* Update for UnitDelay: '/UnitDelay' incorporates: - * Constant: '/Constant' - */ - rtDW->UnitDelay_DSTATE_g = false; + case 3: + /* Outputs for IfAction SubSystem: '/Torque_Mode' incorporates: + * ActionPort: '/Action Port' + */ + /* Gain: '/Gain4' */ + rtb_Merge = (int16_T)-rtDW->Switch2; - /* End of Outputs for SubSystem: '/rising_edge_init' */ + /* Switch: '/Switch2' incorporates: + * RelationalOperator: '/LowerRelop1' + * RelationalOperator: '/UpperRelop' + * Switch: '/Switch' + */ + if (rtDW->Merge1 > rtDW->Divide1_a) { + rtb_Merge_f_idx_1 = rtDW->Divide1_a; + } else if (rtDW->Merge1 < rtDW->Gain1) { + /* Switch: '/Switch' */ + rtb_Merge_f_idx_1 = rtDW->Gain1; + } else { + rtb_Merge_f_idx_1 = rtDW->Merge1; + } - /* Outputs for Atomic SubSystem: '/Rate_Limiter' */ - /* Switch: '/Switch1' incorporates: - * UnitDelay: '/UnitDelay' - */ - if (rtb_RelationalOperator4_d) { - rtb_Switch1 = rtb_DataTypeConversion; - } else { - rtb_Switch1 = rtDW->UnitDelay_DSTATE; - } + /* End of Switch: '/Switch2' */ - /* End of Switch: '/Switch1' */ + /* Sum: '/Sum2' */ + rtb_Gain3 = rtb_Merge_f_idx_1 - rtDW->Sum1[0]; + if (rtb_Gain3 > 32767) { + rtb_Gain3 = 32767; + } else { + if (rtb_Gain3 < -32768) { + rtb_Gain3 = -32768; + } + } - /* Sum: '/Sum1' */ - rtb_Gain3 = -rtb_Switch1; - rtb_Sum1 = (rtb_Gain3 & 134217728) != 0 ? rtb_Gain3 | -134217728 : - rtb_Gain3 & 134217727; + /* MinMax: '/MinMax1' */ + if (rtDW->Vq_max_M1 < rtDW->Switch2) { + rtb_Merge_f_idx_1 = rtDW->Vq_max_M1; + } else { + rtb_Merge_f_idx_1 = rtDW->Switch2; + } - /* Switch: '/Switch2' incorporates: - * Constant: '/dV_openRate' - * RelationalOperator: '/LowerRelop1' - */ - if (rtb_Sum1 > rtP->dV_openRate) { - rtb_Sum1 = rtP->dV_openRate; - } else { - /* Gain: '/Gain3' */ - rtb_Gain3 = -rtP->dV_openRate; - rtb_Gain3 = (rtb_Gain3 & 134217728) != 0 ? rtb_Gain3 | -134217728 : - rtb_Gain3 & 134217727; + /* End of MinMax: '/MinMax1' */ - /* Switch: '/Switch' incorporates: - * RelationalOperator: '/UpperRelop' - */ - if (rtb_Sum1 < rtb_Gain3) { - rtb_Sum1 = rtb_Gain3; + /* MinMax: '/MinMax2' */ + if (!(rtb_Merge > rtDW->Gain5)) { + rtb_Merge = rtDW->Gain5; } - /* End of Switch: '/Switch' */ - } + /* End of MinMax: '/MinMax2' */ - /* End of Switch: '/Switch2' */ + /* Outputs for Atomic SubSystem: '/PI_clamp_fixdt' */ + PI_clamp_fixdt((int16_T)rtb_Gain3, rtP->cf_iqKp, rtP->cf_iqKi, + rtb_Merge_f_idx_1, rtb_Merge, 0, &rtDW->Merge, + &rtDW->PI_clamp_fixdt_a); - /* Sum: '/Sum2' */ - rtb_Gain3 = rtb_Sum1 + rtb_Switch1; - rtb_Switch1 = (rtb_Gain3 & 134217728) != 0 ? rtb_Gain3 | -134217728 : - rtb_Gain3 & 134217727; + /* End of Outputs for SubSystem: '/PI_clamp_fixdt' */ - /* Switch: '/Switch2' */ - if (rtb_RelationalOperator4_d) { - /* Update for UnitDelay: '/UnitDelay' */ - rtDW->UnitDelay_DSTATE = rtb_DataTypeConversion; - } else { - /* Update for UnitDelay: '/UnitDelay' */ - rtDW->UnitDelay_DSTATE = rtb_Switch1; - } + /* End of Outputs for SubSystem: '/Torque_Mode' */ + break; - /* End of Switch: '/Switch2' */ - /* End of Outputs for SubSystem: '/Rate_Limiter' */ + default: + /* Outputs for IfAction SubSystem: '/Open_Mode' incorporates: + * ActionPort: '/Action Port' + */ + rtDW->Merge = rtDW->Merge1; - /* DataTypeConversion: '/Data Type Conversion1' */ - rtDW->Merge = (int16_T)(rtb_Switch1 >> 12); + /* End of Outputs for SubSystem: '/Open_Mode' */ + break; + } - /* End of Outputs for SubSystem: '/Open_Mode' */ - break; + /* End of SwitchCase: '/Switch Case' */ + /* End of Outputs for SubSystem: '/FOC' */ } - /* End of SwitchCase: '/Switch Case' */ + /* End of If: '/If1' */ - /* Sum: '/Sum6' incorporates: - * Product: '/Divide1' - * Product: '/Divide4' + /* Sum: '/Sum6' incorporates: + * Interpolation_n-D: '/r_cos_M1' + * Interpolation_n-D: '/r_sin_M1' + * Product: '/Divide1' + * Product: '/Divide4' */ - rtb_Gain3 = (int16_T)((rtDW->Switch1 * rtb_Switch2_d) >> 14) - (int16_T) - ((rtDW->Merge * rtb_MinMax2) >> 14); + rtb_Gain3 = (int16_T)((rtDW->Switch1 * rtConstP.r_cos_M1_Table[rtb_Sum_l]) >> + 14) - (int16_T)((rtDW->Merge * + rtConstP.r_sin_M1_Table[rtb_Sum_l]) >> 14); if (rtb_Gain3 > 32767) { rtb_Gain3 = 32767; } else { @@ -2308,12 +2123,15 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - /* Sum: '/Sum1' incorporates: - * Product: '/Divide2' - * Product: '/Divide3' + /* Sum: '/Sum1' incorporates: + * Interpolation_n-D: '/r_cos_M1' + * Interpolation_n-D: '/r_sin_M1' + * Product: '/Divide2' + * Product: '/Divide3' */ - rtb_DataTypeConversion = (int16_T)((rtDW->Switch1 * rtb_MinMax2) >> 14) + - (int16_T)((rtDW->Merge * rtb_Switch2_d) >> 14); + rtb_DataTypeConversion = (int16_T)((rtDW->Switch1 * + rtConstP.r_sin_M1_Table[rtb_Sum_l]) >> 14) + (int16_T)((rtDW->Merge * + rtConstP.r_cos_M1_Table[rtb_Sum_l]) >> 14); if (rtb_DataTypeConversion > 32767) { rtb_DataTypeConversion = 32767; } else { @@ -2322,15 +2140,15 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - /* Gain: '/Gain1' incorporates: - * Sum: '/Sum1' + /* Gain: '/Gain1' incorporates: + * Sum: '/Sum1' */ - rtb_DataTypeConversion = 14189 * (int16_T)rtb_DataTypeConversion; + rtb_DataTypeConversion *= 14189; - /* Sum: '/Sum6' incorporates: - * Gain: '/Gain1' - * Gain: '/Gain3' - * Sum: '/Sum6' + /* Sum: '/Sum6' incorporates: + * Gain: '/Gain1' + * Gain: '/Gain3' + * Sum: '/Sum6' */ rtb_DataTypeConversion = (((rtb_DataTypeConversion < 0 ? 16383 : 0) + rtb_DataTypeConversion) >> 14) - ((int16_T)(((int16_T)rtb_Gain3 < 0) + @@ -2343,9 +2161,9 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - /* Sum: '/Sum2' incorporates: - * Sum: '/Sum6' - * Sum: '/Sum6' + /* Sum: '/Sum2' incorporates: + * Sum: '/Sum6' + * Sum: '/Sum6' */ rtb_Switch1 = -(int16_T)rtb_Gain3 - (int16_T)rtb_DataTypeConversion; if (rtb_Switch1 > 32767) { @@ -2356,39 +2174,39 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - /* MinMax: '/MinMax1' incorporates: - * Sum: '/Sum2' - * Sum: '/Sum6' - * Sum: '/Sum6' + /* MinMax: '/MinMax1' incorporates: + * Sum: '/Sum2' + * Sum: '/Sum6' + * Sum: '/Sum6' */ - rtb_Switch2_d = (int16_T)rtb_Gain3; + rtb_Switch2_l = (int16_T)rtb_Gain3; if (!((int16_T)rtb_Gain3 < (int16_T)rtb_DataTypeConversion)) { - rtb_Switch2_d = (int16_T)rtb_DataTypeConversion; + rtb_Switch2_l = (int16_T)rtb_DataTypeConversion; } - if (!(rtb_Switch2_d < (int16_T)rtb_Switch1)) { - rtb_Switch2_d = (int16_T)rtb_Switch1; + if (!(rtb_Switch2_l < (int16_T)rtb_Switch1)) { + rtb_Switch2_l = (int16_T)rtb_Switch1; } - /* MinMax: '/MinMax2' incorporates: - * Sum: '/Sum2' - * Sum: '/Sum6' - * Sum: '/Sum6' + /* MinMax: '/MinMax2' incorporates: + * Sum: '/Sum2' + * Sum: '/Sum6' + * Sum: '/Sum6' */ - rtb_Saturation = (int16_T)rtb_Gain3; + rtb_Merge = (int16_T)rtb_Gain3; if (!((int16_T)rtb_Gain3 > (int16_T)rtb_DataTypeConversion)) { - rtb_Saturation = (int16_T)rtb_DataTypeConversion; + rtb_Merge = (int16_T)rtb_DataTypeConversion; } - if (!(rtb_Saturation > (int16_T)rtb_Switch1)) { - rtb_Saturation = (int16_T)rtb_Switch1; + if (!(rtb_Merge > (int16_T)rtb_Switch1)) { + rtb_Merge = (int16_T)rtb_Switch1; } - /* Sum: '/Add' incorporates: - * MinMax: '/MinMax1' - * MinMax: '/MinMax2' + /* Sum: '/Add' incorporates: + * MinMax: '/MinMax1' + * MinMax: '/MinMax2' */ - rtb_Sum1 = rtb_Switch2_d + rtb_Saturation; + rtb_Sum1 = rtb_Switch2_l + rtb_Merge; if (rtb_Sum1 > 32767) { rtb_Sum1 = 32767; } else { @@ -2397,15 +2215,15 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - /* Gain: '/Gain2' incorporates: - * Sum: '/Add' + /* Gain: '/Gain2' incorporates: + * Sum: '/Add' */ - rtb_Gain2_f = (int16_T)(rtb_Sum1 >> 1); + rtb_DataTypeConversion2 = (int16_T)(rtb_Sum1 >> 1); - /* Sum: '/Add1' incorporates: - * Sum: '/Sum6' + /* Sum: '/Add1' incorporates: + * Sum: '/Sum6' */ - rtb_Gain3 = (int16_T)rtb_Gain3 - rtb_Gain2_f; + rtb_Gain3 = (int16_T)rtb_Gain3 - rtb_DataTypeConversion2; if (rtb_Gain3 > 32767) { rtb_Gain3 = 32767; } else { @@ -2414,15 +2232,15 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - /* Gain: '/Gain4' incorporates: - * Sum: '/Add1' + /* Gain: '/Gain4' incorporates: + * Sum: '/Add1' */ - rtDW->Gain4[0] = (int16_T)((18919 * rtb_Gain3) >> 18); + rtDW->Gain4[0] = (int16_T)((18919 * rtb_Gain3) >> 14); - /* Sum: '/Add1' incorporates: - * Sum: '/Sum6' + /* Sum: '/Add1' incorporates: + * Sum: '/Sum6' */ - rtb_Gain3 = (int16_T)rtb_DataTypeConversion - rtb_Gain2_f; + rtb_Gain3 = (int16_T)rtb_DataTypeConversion - rtb_DataTypeConversion2; if (rtb_Gain3 > 32767) { rtb_Gain3 = 32767; } else { @@ -2431,15 +2249,15 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - /* Gain: '/Gain4' incorporates: - * Sum: '/Add1' + /* Gain: '/Gain4' incorporates: + * Sum: '/Add1' */ - rtDW->Gain4[1] = (int16_T)((18919 * rtb_Gain3) >> 18); + rtDW->Gain4[1] = (int16_T)((18919 * rtb_Gain3) >> 14); - /* Sum: '/Add1' incorporates: - * Sum: '/Sum2' + /* Sum: '/Add1' incorporates: + * Sum: '/Sum2' */ - rtb_Gain3 = (int16_T)rtb_Switch1 - rtb_Gain2_f; + rtb_Gain3 = (int16_T)rtb_Switch1 - rtb_DataTypeConversion2; if (rtb_Gain3 > 32767) { rtb_Gain3 = 32767; } else { @@ -2448,139 +2266,212 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - /* Gain: '/Gain4' incorporates: - * Sum: '/Add1' + /* Gain: '/Gain4' incorporates: + * Sum: '/Add1' */ - rtDW->Gain4[2] = (int16_T)((18919 * rtb_Gain3) >> 18); + rtDW->Gain4[2] = (int16_T)((18919 * rtb_Gain3) >> 14); - /* Update for UnitDelay: '/UnitDelay4' */ - rtDW->UnitDelay4_DSTATE_er = rtDW->Merge; + /* Update for UnitDelay: '/UnitDelay4' */ + rtDW->UnitDelay4_DSTATE_h = rtDW->Switch1; - /* End of Outputs for SubSystem: '/F04_Field_Oriented_Control' */ + /* End of Outputs for SubSystem: '/F05_Field_Oriented_Control' */ } /* End of If: '/If1' */ - /* Switch: '/Switch2' incorporates: + /* Switch: '/Switch2' incorporates: * Constant: '/z_ctrlTypSel1' - * Constant: '/CTRL_COMM1' - * DataTypeConversion: '/Data Type Conversion10' - * DataTypeConversion: '/Data Type Conversion8' - * RelationalOperator: '/Relational Operator6' + * Constant: '/CTRL_COMM1' + * RelationalOperator: '/Relational Operator6' */ - if (rtP->z_ctrlTypSel == 1) { - rtb_Merge = (int16_T)(rtDW->Merge >> 4); + if (rtP->z_ctrlTypSel == 2) { + rtb_Merge = rtDW->Merge; } else { - rtb_Merge = (int16_T)(rtb_Merge >> 4); + rtb_Merge = rtDW->Merge1; } - /* End of Switch: '/Switch2' */ + /* End of Switch: '/Switch2' */ - /* Switch: '/Switch1' incorporates: - * Constant: '/vec_hallToPos' - * LookupNDDirect: '/z_commutMap_M1' - * Product: '/Divide2' - * Selector: '/Selector' + /* If: '/If' incorporates: + * Constant: '/vec_hallToPos' + * Constant: '/z_ctrlTypSel1' + * Constant: '/CTRL_COMM2' + * Constant: '/CTRL_COMM3' + * Inport: '/V_phaABC_FOC_in' + * Logic: '/Logical Operator1' + * Logic: '/Logical Operator2' + * LookupNDDirect: '/z_commutMap_M1' + * RelationalOperator: '/Relational Operator1' + * RelationalOperator: '/Relational Operator2' + * Selector: '/Selector' * - * About '/z_commutMap_M1': + * About '/z_commutMap_M1': * 2-dimensional Direct Look-Up returning a Column */ - if (rtb_LogicalOperator) { - rtb_Switch2_d = rtDW->Gain4[0]; - rtb_Saturation = rtDW->Gain4[1]; - rtb_id_fieldWeak_M1 = rtDW->Gain4[2]; + if (rtb_LogicalOperator && (rtP->z_ctrlTypSel == 2)) { + /* Outputs for IfAction SubSystem: '/FOC_Method' incorporates: + * ActionPort: '/Action Port' + */ + rtb_DataTypeConversion2 = rtDW->Gain4[0]; + rtb_Merge_f_idx_1 = rtDW->Gain4[1]; + rtb_Saturation1 = rtDW->Gain4[2]; + + /* End of Outputs for SubSystem: '/FOC_Method' */ + } else if (rtb_LogicalOperator && (rtP->z_ctrlTypSel == 1)) { + /* Outputs for IfAction SubSystem: '/SIN_Method' incorporates: + * ActionPort: '/Action Port' + */ + /* Switch: '/Switch_PhaAdv' incorporates: + * Constant: '/b_fieldWeakEna' + * Product: '/Divide2' + * Product: '/Divide3' + * Sum: '/Sum3' + */ + if (rtP->b_fieldWeakEna) { + /* Sum: '/Sum3' incorporates: + * Product: '/Product2' + */ + rtb_Saturation1 = (int16_T)((int16_T)((int16_T)(rtDW->Divide3 * + rtDW->Switch2_e) << 2) + rtb_Switch2_fl); + rtb_Saturation1 -= (int16_T)(23040 * (int16_T)div_nde_s32_floor + (rtb_Saturation1, 23040)); + } else { + rtb_Saturation1 = rtb_Switch2_fl; + } + + /* End of Switch: '/Switch_PhaAdv' */ + + /* PreLookup: '/a_elecAngle_XA' */ + rtb_Sum = plook_u8s16_evencka(rtb_Saturation1, 0, 128U, 180U); + + /* Product: '/Divide2' incorporates: + * Interpolation_n-D: '/r_sin3PhaA_M1' + * Interpolation_n-D: '/r_sin3PhaB_M1' + * Interpolation_n-D: '/r_sin3PhaC_M1' + */ + rtb_DataTypeConversion2 = (int16_T)((rtDW->Merge1 * + rtConstP.r_sin3PhaA_M1_Table[rtb_Sum]) >> 14); + rtb_Merge_f_idx_1 = (int16_T)((rtDW->Merge1 * + rtConstP.r_sin3PhaB_M1_Table[rtb_Sum]) >> 14); + rtb_Saturation1 = (int16_T)((rtDW->Merge1 * + rtConstP.r_sin3PhaC_M1_Table[rtb_Sum]) >> 14); + + /* End of Outputs for SubSystem: '/SIN_Method' */ } else { + /* Outputs for IfAction SubSystem: '/COM_Method' incorporates: + * ActionPort: '/Action Port' + */ if (rtConstP.vec_hallToPos_Value[rtb_Sum] > 5) { - /* LookupNDDirect: '/z_commutMap_M1' + /* LookupNDDirect: '/z_commutMap_M1' * - * About '/z_commutMap_M1': + * About '/z_commutMap_M1': * 2-dimensional Direct Look-Up returning a Column */ rtb_Sum2_h = 5; } else if (rtConstP.vec_hallToPos_Value[rtb_Sum] < 0) { - /* LookupNDDirect: '/z_commutMap_M1' + /* LookupNDDirect: '/z_commutMap_M1' * - * About '/z_commutMap_M1': + * About '/z_commutMap_M1': * 2-dimensional Direct Look-Up returning a Column */ rtb_Sum2_h = 0; } else { - /* LookupNDDirect: '/z_commutMap_M1' incorporates: - * Constant: '/vec_hallToPos' - * Selector: '/Selector' + /* LookupNDDirect: '/z_commutMap_M1' incorporates: + * Constant: '/vec_hallToPos' + * Selector: '/Selector' * - * About '/z_commutMap_M1': + * About '/z_commutMap_M1': * 2-dimensional Direct Look-Up returning a Column */ rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum]; } - /* LookupNDDirect: '/z_commutMap_M1' incorporates: - * Constant: '/vec_hallToPos' - * Selector: '/Selector' + /* LookupNDDirect: '/z_commutMap_M1' incorporates: + * Constant: '/vec_hallToPos' + * Selector: '/Selector' * - * About '/z_commutMap_M1': + * About '/z_commutMap_M1': * 2-dimensional Direct Look-Up returning a Column */ rtb_DataTypeConversion = rtb_Sum2_h * 3; - rtb_Switch2_d = (int16_T)(rtb_Merge * + + /* Product: '/Divide2' incorporates: + * LookupNDDirect: '/z_commutMap_M1' + * + * About '/z_commutMap_M1': + * 2-dimensional Direct Look-Up returning a Column + */ + rtb_DataTypeConversion2 = (int16_T)(rtb_Merge * rtConstP.z_commutMap_M1_table[rtb_DataTypeConversion]); - rtb_Saturation = (int16_T)(rtConstP.z_commutMap_M1_table[1 + + rtb_Merge_f_idx_1 = (int16_T)(rtConstP.z_commutMap_M1_table[1 + rtb_DataTypeConversion] * rtb_Merge); - rtb_id_fieldWeak_M1 = (int16_T)(rtConstP.z_commutMap_M1_table[2 + + rtb_Saturation1 = (int16_T)(rtConstP.z_commutMap_M1_table[2 + rtb_DataTypeConversion] * rtb_Merge); + + /* End of Outputs for SubSystem: '/COM_Method' */ } - /* End of Switch: '/Switch1' */ + /* End of If: '/If' */ + + /* Outport: '/DC_phaA' incorporates: + * DataTypeConversion: '/Data Type Conversion6' + */ + rtY->DC_phaA = (int16_T)(rtb_DataTypeConversion2 >> 4); - /* Update for UnitDelay: '/UnitDelay3' incorporates: + /* Outport: '/DC_phaB' incorporates: + * DataTypeConversion: '/Data Type Conversion6' + */ + rtY->DC_phaB = (int16_T)(rtb_Merge_f_idx_1 >> 4); + + /* Update for UnitDelay: '/UnitDelay3' incorporates: * Inport: '/b_hallA ' */ rtDW->UnitDelay3_DSTATE_fy = rtU->b_hallA; - /* Update for UnitDelay: '/UnitDelay1' incorporates: + /* Update for UnitDelay: '/UnitDelay1' incorporates: * Inport: '/b_hallB' */ rtDW->UnitDelay1_DSTATE = rtU->b_hallB; - /* Update for UnitDelay: '/UnitDelay2' incorporates: + /* Update for UnitDelay: '/UnitDelay2' incorporates: * Inport: '/b_hallC' */ rtDW->UnitDelay2_DSTATE_f = rtU->b_hallC; - /* Update for UnitDelay: '/UnitDelay3' */ + /* Update for UnitDelay: '/UnitDelay3' */ rtDW->UnitDelay3_DSTATE = rtb_Switch1_l; - /* Update for UnitDelay: '/UnitDelay4' */ + /* Update for UnitDelay: '/UnitDelay4' */ rtDW->UnitDelay4_DSTATE_e = rtb_Abs5; - /* Update for UnitDelay: '/UnitDelay4' */ - rtDW->UnitDelay4_DSTATE = rtb_Merge; - - /* Update for UnitDelay: '/UnitDelay1' */ - rtDW->UnitDelay1_DSTATE_p = rtb_Sum_l; + /* Update for UnitDelay: '/UnitDelay2' incorporates: + * UnitDelay: '/UnitDelay6' + */ + rtDW->UnitDelay2_DSTATE_g = rtDW->UnitDelay6_DSTATE; - /* End of Outputs for SubSystem: '/BLDC_controller' */ + /* Update for UnitDelay: '/UnitDelay4' */ + rtDW->UnitDelay4_DSTATE_eu = rtb_Merge; - /* Outport: '/DC_phaA' */ - rtY->DC_phaA = rtb_Switch2_d; + /* Update for UnitDelay: '/UnitDelay5' */ + rtDW->UnitDelay5_DSTATE_l = rtb_RelationalOperator4_d; - /* Outport: '/DC_phaB' */ - rtY->DC_phaB = rtb_Saturation; + /* Update for UnitDelay: '/UnitDelay6' */ + rtDW->UnitDelay6_DSTATE = rtb_RelationalOperator9; - /* Outport: '/DC_phaC' */ - rtY->DC_phaC = rtb_id_fieldWeak_M1; + /* Outport: '/DC_phaC' incorporates: + * DataTypeConversion: '/Data Type Conversion6' + */ + rtY->DC_phaC = (int16_T)(rtb_Saturation1 >> 4); - /* Outputs for Atomic SubSystem: '/BLDC_controller' */ /* Outport: '/n_mot' incorporates: * DataTypeConversion: '/Data Type Conversion1' */ - rtY->n_mot = (int16_T)(rtb_Switch2_fv >> 4); + rtY->n_mot = (int16_T)(rtb_Switch2_k >> 4); /* Outport: '/a_elecAngle' incorporates: * DataTypeConversion: '/Data Type Conversion7' */ - rtY->a_elecAngle = (int16_T)((uint32_T)rtb_Divide2_h >> 6); + rtY->a_elecAngle = (int16_T)(rtb_Switch2_fl >> 6); /* Outport: '/r_devSignal1' incorporates: * DataTypeConversion: '/Data Type Conversion4' @@ -2602,45 +2493,42 @@ void BLDC_controller_initialize(RT_MODEL *const rtM) DW *rtDW = ((DW *) rtM->dwork); /* Start for Atomic SubSystem: '/BLDC_controller' */ - /* Start for If: '/If2' */ + /* Start for If: '/If4' */ + rtDW->If4_ActiveSubsystem = -1; + + /* Start for IfAction SubSystem: '/F03_Control_Mode_Manager' */ + /* Start for If: '/If2' */ rtDW->If2_ActiveSubsystem = -1; + /* End of Start for SubSystem: '/F03_Control_Mode_Manager' */ + /* Start for If: '/If1' */ rtDW->If1_ActiveSubsystem = -1; - /* Start for IfAction SubSystem: '/F04_Field_Oriented_Control' */ - /* Start for If: '/If2' */ + /* Start for IfAction SubSystem: '/F05_Field_Oriented_Control' */ + /* Start for If: '/If2' */ rtDW->If2_ActiveSubsystem_a = -1; - /* Start for If: '/If1' */ - rtDW->If1_ActiveSubsystem_e = -1; - - /* Start for If: '/If1' */ - rtDW->If1_ActiveSubsystem_f = -1; - - /* Start for If: '/If2' */ - rtDW->If2_ActiveSubsystem_c = -1; - - /* Start for SwitchCase: '/Switch Case' */ - rtDW->SwitchCase_ActiveSubsystem = -1; - - /* End of Start for SubSystem: '/F04_Field_Oriented_Control' */ + /* End of Start for SubSystem: '/F05_Field_Oriented_Control' */ /* End of Start for SubSystem: '/BLDC_controller' */ /* SystemInitialize for Atomic SubSystem: '/BLDC_controller' */ - /* InitializeConditions for UnitDelay: '/UnitDelay3' */ + /* InitializeConditions for UnitDelay: '/UnitDelay3' */ rtDW->UnitDelay3_DSTATE = rtP->z_maxCntRst; - /* SystemInitialize for IfAction SubSystem: '/Raw_Motor_Speed_Estimation' */ - /* SystemInitialize for Outport: '/z_counter' */ + /* InitializeConditions for UnitDelay: '/UnitDelay2' */ + rtDW->UnitDelay2_DSTATE_g = true; + + /* SystemInitialize for IfAction SubSystem: '/Raw_Motor_Speed_Estimation' */ + /* SystemInitialize for Outport: '/z_counter' */ rtDW->z_counterRawPrev = rtP->z_maxCntRst; - /* End of SystemInitialize for SubSystem: '/Raw_Motor_Speed_Estimation' */ + /* End of SystemInitialize for SubSystem: '/Raw_Motor_Speed_Estimation' */ - /* SystemInitialize for Atomic SubSystem: '/Counter' */ + /* SystemInitialize for Atomic SubSystem: '/Counter' */ Counter_Init(&rtDW->Counter_e, rtP->z_maxCntRst); - /* End of SystemInitialize for SubSystem: '/Counter' */ + /* End of SystemInitialize for SubSystem: '/Counter' */ /* SystemInitialize for IfAction SubSystem: '/F02_Diagnostics' */ @@ -2651,15 +2539,68 @@ void BLDC_controller_initialize(RT_MODEL *const rtM) /* End of SystemInitialize for SubSystem: '/F02_Diagnostics' */ - /* SystemInitialize for IfAction SubSystem: '/F04_Field_Oriented_Control' */ - /* SystemInitialize for IfAction SubSystem: '/Open_Mode' */ - /* SystemInitialize for Atomic SubSystem: '/rising_edge_init' */ - /* InitializeConditions for UnitDelay: '/UnitDelay' */ - rtDW->UnitDelay_DSTATE_g = true; + /* SystemInitialize for IfAction SubSystem: '/F03_Control_Mode_Manager' */ + /* SystemInitialize for IfAction SubSystem: '/Open_Mode' */ + /* SystemInitialize for Atomic SubSystem: '/rising_edge_init' */ + /* InitializeConditions for UnitDelay: '/UnitDelay' */ + rtDW->UnitDelay_DSTATE_e = true; + + /* End of SystemInitialize for SubSystem: '/rising_edge_init' */ + /* End of SystemInitialize for SubSystem: '/Open_Mode' */ + /* End of SystemInitialize for SubSystem: '/F03_Control_Mode_Manager' */ + + /* SystemInitialize for IfAction SubSystem: '/F05_Field_Oriented_Control' */ + /* SystemInitialize for IfAction SubSystem: '/Motor_Limitations' */ + + /* SystemInitialize for IfAction SubSystem: '/Voltage_Mode_Protection' */ + + /* SystemInitialize for Atomic SubSystem: '/I_backCalc_fixdt' */ + I_backCalc_fixdt_Init(&rtDW->I_backCalc_fixdt_i, 0); + + /* End of SystemInitialize for SubSystem: '/I_backCalc_fixdt' */ + + /* SystemInitialize for Atomic SubSystem: '/I_backCalc_fixdt1' */ + I_backCalc_fixdt_Init(&rtDW->I_backCalc_fixdt1, 0); + + /* End of SystemInitialize for SubSystem: '/I_backCalc_fixdt1' */ + + /* End of SystemInitialize for SubSystem: '/Voltage_Mode_Protection' */ + + /* SystemInitialize for IfAction SubSystem: '/Torque_Mode_Protection' */ + + /* SystemInitialize for Atomic SubSystem: '/I_backCalc_fixdt' */ + I_backCalc_fixdt_Init(&rtDW->I_backCalc_fixdt_g, 0); + + /* End of SystemInitialize for SubSystem: '/I_backCalc_fixdt' */ + + /* End of SystemInitialize for SubSystem: '/Torque_Mode_Protection' */ + + /* SystemInitialize for Outport: '/Vd_max' */ + rtDW->Vd_max1 = 14400; + + /* SystemInitialize for Outport: '/Vd_min' */ + rtDW->Gain3 = -14400; + + /* SystemInitialize for Outport: '/Vq_max' */ + rtDW->Vq_max_M1 = 14400; + + /* SystemInitialize for Outport: '/Vq_min' */ + rtDW->Gain5 = -14400; + + /* SystemInitialize for Outport: '/id_max' */ + rtDW->i_max = 12000; + + /* SystemInitialize for Outport: '/id_min' */ + rtDW->Gain4_c = -12000; + + /* SystemInitialize for Outport: '/iq_max' */ + rtDW->Divide1_a = 12000; + + /* SystemInitialize for Outport: '/iq_min' */ + rtDW->Gain1 = -12000; - /* End of SystemInitialize for SubSystem: '/rising_edge_init' */ - /* End of SystemInitialize for SubSystem: '/Open_Mode' */ - /* End of SystemInitialize for SubSystem: '/F04_Field_Oriented_Control' */ + /* End of SystemInitialize for SubSystem: '/Motor_Limitations' */ + /* End of SystemInitialize for SubSystem: '/F05_Field_Oriented_Control' */ /* End of SystemInitialize for SubSystem: '/BLDC_controller' */ } diff --git a/Src/BLDC_controller_data.c b/Src/BLDC_controller_data.c index 7c7dd15..5a11f15 100644 --- a/Src/BLDC_controller_data.c +++ b/Src/BLDC_controller_data.c @@ -3,9 +3,9 @@ * * Code generated for Simulink model 'BLDC_controller'. * - * Model version : 1.1199 + * Model version : 1.1249 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Sun Nov 3 12:28:16 2019 + * C/C++ source code generated on : Thu Dec 12 20:22:31 2019 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex @@ -21,13 +21,74 @@ /* Constant parameters (auto storage) */ const ConstP rtConstP = { - /* Computed Parameter: z_commutMap_M1_table - * Referenced by: '/z_commutMap_M1' - */ - { -1, 1, 0, -1, 0, 1, 0, -1, 1, 1, -1, 0, 1, 0, -1, 0, 1, -1 }, + /* Computed Parameter: r_sin3PhaA_M1_Table + * Referenced by: '/r_sin3PhaA_M1' + */ + { -13091, -13634, -14126, -14565, -14953, -15289, -15577, -15816, -16009, + -16159, -16269, -16340, -16377, -16383, -16362, -16317, -16253, -16172, + -16079, -15977, -15870, -15762, -15656, -15555, -15461, -15377, -15306, + -15248, -15206, -15180, -15172, -15180, -15206, -15248, -15306, -15377, + -15461, -15555, -15656, -15762, -15870, -15977, -16079, -16172, -16253, + -16317, -16362, -16383, -16377, -16340, -16269, -16159, -16009, -15816, + -15577, -15289, -14953, -14565, -14126, -13634, -13091, -12496, -11849, + -11154, -10411, -9623, -8791, -7921, -7014, -6075, -5107, -4115, -3104, + -2077, -1041, 0, 1041, 2077, 3104, 4115, 5107, 6075, 7014, 7921, 8791, 9623, + 10411, 11154, 11849, 12496, 13091, 13634, 14126, 14565, 14953, 15289, 15577, + 15816, 16009, 16159, 16269, 16340, 16377, 16383, 16362, 16317, 16253, 16172, + 16079, 15977, 15870, 15762, 15656, 15555, 15461, 15377, 15306, 15248, 15206, + 15180, 15172, 15180, 15206, 15248, 15306, 15377, 15461, 15555, 15656, 15762, + 15870, 15977, 16079, 16172, 16253, 16317, 16362, 16383, 16377, 16340, 16269, + 16159, 16009, 15816, 15577, 15289, 14953, 14565, 14126, 13634, 13091, 12496, + 11849, 11154, 10411, 9623, 8791, 7921, 7014, 6075, 5107, 4115, 3104, 2077, + 1041, 0, -1041, -2077, -3104, -4115, -5107, -6075, -7014, -7921, -8791, + -9623, -10411, -11154, -11849, -12496, -13091 }, + + /* Computed Parameter: r_sin3PhaB_M1_Table + * Referenced by: '/r_sin3PhaB_M1' + */ + { 15172, 15180, 15206, 15248, 15306, 15377, 15461, 15555, 15656, 15762, 15870, + 15977, 16079, 16172, 16253, 16317, 16362, 16383, 16377, 16340, 16269, 16159, + 16009, 15816, 15577, 15289, 14953, 14565, 14126, 13634, 13091, 12496, 11849, + 11154, 10411, 9623, 8791, 7921, 7014, 6075, 5107, 4115, 3104, 2077, 1041, 0, + -1041, -2077, -3104, -4115, -5107, -6075, -7014, -7921, -8791, -9623, -10411, + -11154, -11849, -12496, -13091, -13634, -14126, -14565, -14953, -15289, + -15577, -15816, -16009, -16159, -16269, -16340, -16377, -16383, -16362, + -16317, -16253, -16172, -16079, -15977, -15870, -15762, -15656, -15555, + -15461, -15377, -15306, -15248, -15206, -15180, -15172, -15180, -15206, + -15248, -15306, -15377, -15461, -15555, -15656, -15762, -15870, -15977, + -16079, -16172, -16253, -16317, -16362, -16383, -16377, -16340, -16269, + -16159, -16009, -15816, -15577, -15289, -14953, -14565, -14126, -13634, + -13091, -12496, -11849, -11154, -10411, -9623, -8791, -7921, -7014, -6075, + -5107, -4115, -3104, -2077, -1041, 0, 1041, 2077, 3104, 4115, 5107, 6075, + 7014, 7921, 8791, 9623, 10411, 11154, 11849, 12496, 13091, 13634, 14126, + 14565, 14953, 15289, 15577, 15816, 16009, 16159, 16269, 16340, 16377, 16383, + 16362, 16317, 16253, 16172, 16079, 15977, 15870, 15762, 15656, 15555, 15461, + 15377, 15306, 15248, 15206, 15180, 15172 }, + + /* Computed Parameter: r_sin3PhaC_M1_Table + * Referenced by: '/r_sin3PhaC_M1' + */ + { -13091, -12496, -11849, -11154, -10411, -9623, -8791, -7921, -7014, -6075, + -5107, -4115, -3104, -2077, -1041, 0, 1041, 2077, 3104, 4115, 5107, 6075, + 7014, 7921, 8791, 9623, 10411, 11154, 11849, 12496, 13091, 13634, 14126, + 14565, 14953, 15289, 15577, 15816, 16009, 16159, 16269, 16340, 16377, 16383, + 16362, 16317, 16253, 16172, 16079, 15977, 15870, 15762, 15656, 15555, 15461, + 15377, 15306, 15248, 15206, 15180, 15172, 15180, 15206, 15248, 15306, 15377, + 15461, 15555, 15656, 15762, 15870, 15977, 16079, 16172, 16253, 16317, 16362, + 16383, 16377, 16340, 16269, 16159, 16009, 15816, 15577, 15289, 14953, 14565, + 14126, 13634, 13091, 12496, 11849, 11154, 10411, 9623, 8791, 7921, 7014, + 6075, 5107, 4115, 3104, 2077, 1041, 0, -1041, -2077, -3104, -4115, -5107, + -6075, -7014, -7921, -8791, -9623, -10411, -11154, -11849, -12496, -13091, + -13634, -14126, -14565, -14953, -15289, -15577, -15816, -16009, -16159, + -16269, -16340, -16377, -16383, -16362, -16317, -16253, -16172, -16079, + -15977, -15870, -15762, -15656, -15555, -15461, -15377, -15306, -15248, + -15206, -15180, -15172, -15180, -15206, -15248, -15306, -15377, -15461, + -15555, -15656, -15762, -15870, -15977, -16079, -16172, -16253, -16317, + -16362, -16383, -16377, -16340, -16269, -16159, -16009, -15816, -15577, + -15289, -14953, -14565, -14126, -13634, -13091 }, /* Computed Parameter: r_sin_M1_Table - * Referenced by: '/r_sin_M1' + * Referenced by: '/r_sin_M1' */ { 8192, 8682, 9162, 9630, 10087, 10531, 10963, 11381, 11786, 12176, 12551, 12911, 13255, 13583, 13894, 14189, 14466, 14726, 14968, 15191, 15396, 15582, @@ -48,7 +109,7 @@ const ConstP rtConstP = { 2280, 2845, 3406, 3964, 4516, 5063, 5604, 6138, 6664, 7182, 7692, 8192 }, /* Computed Parameter: r_cos_M1_Table - * Referenced by: '/r_cos_M1' + * Referenced by: '/r_cos_M1' */ { 14189, 13894, 13583, 13255, 12911, 12551, 12176, 11786, 11381, 10963, 10531, 10087, 9630, 9162, 8682, 8192, 7692, 7182, 6664, 6138, 5604, 5063, 4516, @@ -69,7 +130,7 @@ const ConstP rtConstP = { 16026, 15897, 15749, 15582, 15396, 15191, 14968, 14726, 14466, 14189 }, /* Computed Parameter: iq_maxSca_M1_Table - * Referenced by: '/iq_maxSca_M1' + * Referenced by: '/iq_maxSca_M1' */ { 65535U, 65523U, 65484U, 65418U, 65326U, 65207U, 65062U, 64890U, 64691U, 64465U, 64211U, 63930U, 63620U, 63281U, 62913U, 62516U, 62088U, 61630U, @@ -78,82 +139,67 @@ const ConstP rtConstP = { 45470U, 44069U, 42581U, 40997U, 39307U, 37494U, 35541U, 33422U, 31105U, 28540U, 25655U, 22323U, 18304U, 12974U }, + /* Computed Parameter: z_commutMap_M1_table + * Referenced by: '/z_commutMap_M1' + */ + { -1, 1, 0, -1, 0, 1, 0, -1, 1, 1, -1, 0, 1, 0, -1, 0, 1, -1 }, + /* Computed Parameter: vec_hallToPos_Value - * Referenced by: '/vec_hallToPos' + * Referenced by: '/vec_hallToPos' */ { 0, 2, 0, 1, 4, 3, 5, 0 } }; P rtP_Left = { /* Variable: dV_openRate - * Referenced by: '/dV_openRate' + * Referenced by: '/dV_openRate' */ - 4096, + 12288, /* Variable: dz_cntTrnsDetHi - * Referenced by: '/dz_cntTrnsDet' + * Referenced by: '/dz_cntTrnsDet' */ 40, /* Variable: dz_cntTrnsDetLo - * Referenced by: '/dz_cntTrnsDet' + * Referenced by: '/dz_cntTrnsDet' */ 20, - /* Variable: r_errInpTgtThres - * Referenced by: '/r_errInpTgtThres' - */ - 200, - /* Variable: z_maxCntRst * Referenced by: - * '/Counter' - * '/z_maxCntRst' - * '/z_maxCntRst2' - * '/UnitDelay3' - * '/z_counter' + * '/Counter' + * '/z_maxCntRst' + * '/z_maxCntRst2' + * '/UnitDelay3' + * '/z_counter' */ 2000, /* Variable: cf_speedCoef - * Referenced by: '/cf_speedCoef' + * Referenced by: '/cf_speedCoef' */ 10667U, /* Variable: t_errDequal * Referenced by: '/t_errDequal' */ - 32000U, + 10667U, /* Variable: t_errQual * Referenced by: '/t_errQual' */ - 9600U, - - /* Variable: cf_idKp - * Referenced by: '/cf_idKp1' - */ - 819U, - - /* Variable: cf_iqKp - * Referenced by: '/cf_iqKp' - */ - 2048U, - - /* Variable: cf_nKp - * Referenced by: '/cf_nKp' - */ - 4833U, + 3200U, /* Variable: Vd_max * Referenced by: - * '/Vd_max1' - * '/Vd_max' + * '/Vd_max1' + * '/Vd_max' */ 14400, /* Variable: Vq_max_M1 - * Referenced by: '/Vq_max_M1' + * Referenced by: '/Vq_max_M1' */ { 14400, 14396, 14386, 14368, 14343, 14311, 14271, 14225, 14171, 14109, 14040, 13963, 13879, 13786, 13685, 13576, 13459, 13333, 13198, 13053, 12900, 12736, @@ -161,102 +207,137 @@ P rtP_Left = { 9790, 9433, 9051, 8640, 8196, 7713, 7184, 6597, 5935, 5170, 4245, 3019, 0 }, /* Variable: Vq_max_XA - * Referenced by: '/Vq_max_XA' + * Referenced by: '/Vq_max_XA' */ { 0, 320, 640, 960, 1280, 1600, 1920, 2240, 2560, 2880, 3200, 3520, 3840, 4160, 4480, 4800, 5120, 5440, 5760, 6080, 6400, 6720, 7040, 7360, 7680, 8000, 8320, 8640, 8960, 9280, 9600, 9920, 10240, 10560, 10880, 11200, 11520, 11840, 12160, 12480, 12800, 13120, 13440, 13760, 14080, 14400 }, + /* Variable: a_phaAdvMax + * Referenced by: '/a_phaAdvMax' + */ + 400, + /* Variable: i_max * Referenced by: - * '/i_max' - * '/i_max' + * '/i_max' + * '/i_max' */ 12000, - /* Variable: id_fieldWeak_M1 - * Referenced by: '/id_fieldWeak_M1' + /* Variable: id_fieldWeakMax + * Referenced by: '/id_fieldWeakMax' */ - { 0, 80, 240, 560, 1040, 1680, 2400, 3040, 3520, 3840, 4000, 4000 }, + 4000, /* Variable: n_commAcvLo - * Referenced by: '/n_commDeacv' + * Referenced by: '/n_commDeacv' */ 240, /* Variable: n_commDeacvHi - * Referenced by: '/n_commDeacv' + * Referenced by: '/n_commDeacv' */ 480, /* Variable: n_fieldWeakAuthHi - * Referenced by: '/n_fieldWeakAuth' + * Referenced by: '/n_fieldWeakAuthHi' */ - 3200, + 6400, /* Variable: n_fieldWeakAuthLo - * Referenced by: '/n_fieldWeakAuth' + * Referenced by: '/n_fieldWeakAuthLo' */ - 2240, + 4800, /* Variable: n_max * Referenced by: - * '/n_max1' - * '/n_max' + * '/n_max1' + * '/n_max' */ - 12800, + 16000, /* Variable: n_stdStillDet - * Referenced by: '/n_stdStillDet' + * Referenced by: '/n_stdStillDet' */ 48, - /* Variable: r_fieldWeak_XA - * Referenced by: '/r_fieldWeak_XA' + /* Variable: r_errInpTgtThres + * Referenced by: '/r_errInpTgtThres' + */ + 6400, + + /* Variable: r_fieldWeakHi + * Referenced by: '/r_fieldWeakHi' + */ + 24000, + + /* Variable: r_fieldWeakLo + * Referenced by: '/r_fieldWeakLo' + */ + 16000, + + /* Variable: cf_KbLimProt + * Referenced by: + * '/cf_KbLimProt' + * '/cf_KbLimProt' + */ + 768U, + + /* Variable: cf_idKp + * Referenced by: '/cf_idKp1' + */ + 819U, + + /* Variable: cf_iqKp + * Referenced by: '/cf_iqKp' */ - { 9120, 9600, 10080, 10560, 11040, 11520, 12000, 12480, 12960, 13440, 13920, - 14400 }, + 1229U, + + /* Variable: cf_nKp + * Referenced by: '/cf_nKp' + */ + 4833U, /* Variable: cf_currFilt - * Referenced by: '/cf_currFilt' + * Referenced by: '/cf_currFilt' */ 7864U, /* Variable: cf_idKi - * Referenced by: '/cf_idKi1' + * Referenced by: '/cf_idKi1' */ - 246U, + 737U, /* Variable: cf_iqKi - * Referenced by: '/cf_iqKi' + * Referenced by: '/cf_iqKi' */ - 410U, + 1229U, /* Variable: cf_iqKiLimProt - * Referenced by: '/cf_iqKiLimProt' + * Referenced by: + * '/cf_iqKiLimProt' + * '/cf_iqKiLimProt' */ - 167U, + 737U, /* Variable: cf_nKi - * Referenced by: '/cf_nKi' - */ - 84U, - - /* Variable: cf_iqKpLimProt - * Referenced by: '/cf_iqKpLimProt' + * Referenced by: '/cf_nKi' */ - 1843U, + 251U, - /* Variable: cf_nKpLimProt - * Referenced by: '/cf_nKpLimProt' + /* Variable: cf_nKiLimProt + * Referenced by: + * '/cf_nKiLimProt' + * '/cf_nKiLimProt' */ - 1280U, + 246U, /* Variable: z_ctrlTypSel * Referenced by: '/z_ctrlTypSel1' */ - 1U, + 2U, /* Variable: b_diagEna * Referenced by: '/b_diagEna' @@ -264,12 +345,14 @@ P rtP_Left = { 1, /* Variable: b_fieldWeakEna - * Referenced by: '/b_fieldWeakEna' + * Referenced by: + * '/b_fieldWeakEna' + * '/b_fieldWeakEna' */ 0, /* Variable: b_selPhaABCurrMeas - * Referenced by: '/b_selPhaABCurrMeas' + * Referenced by: '/b_selPhaABCurrMeas' */ 1 }; /* Modifiable parameters */ diff --git a/Src/bldc.c b/Src/bldc.c index de41c0f..a2ec2ce 100644 --- a/Src/bldc.c +++ b/Src/bldc.c @@ -6,7 +6,7 @@ * â–º smooth torque output * â–º improved motor efficiency -> lower energy consumption * -* Copyright (C) 2019 Emanuel FERU +* Copyright (C) 2019-2020 Emanuel FERU * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -46,7 +46,8 @@ extern ExtY rtY_Right; /* External outputs */ static int16_t pwm_margin = 100; /* This margin allows to always have a window in the PWM signal for proper Phase currents measurement */ -uint8_t ctrlModReq = CTRL_MOD_REQ; +extern uint8_t ctrlModReq; +static int16_t curDC_max = (I_DC_MAX * A2BIT_CONV); int16_t curL_phaA = 0, curL_phaB = 0, curL_DC = 0; int16_t curR_phaB = 0, curR_phaC = 0, curR_DC = 0; uint8_t errCode_Left = 0; @@ -116,13 +117,13 @@ void DMA1_Channel1_IRQHandler(void) { // Disable PWM when current limit is reached (current chopping) // This is the Level 2 of current protection. The Level 1 should kick in first given by I_MOT_MAX - if(ABS(curL_DC) > I_DC_MAX || timeout > TIMEOUT || enable == 0) { + if(ABS(curL_DC) > curDC_max || timeout > TIMEOUT || enable == 0) { LEFT_TIM->BDTR &= ~TIM_BDTR_MOE; } else { LEFT_TIM->BDTR |= TIM_BDTR_MOE; } - if(ABS(curR_DC) > I_DC_MAX || timeout > TIMEOUT || enable == 0) { + if(ABS(curR_DC) > curDC_max || timeout > TIMEOUT || enable == 0) { RIGHT_TIM->BDTR &= ~TIM_BDTR_MOE; } else { RIGHT_TIM->BDTR |= TIM_BDTR_MOE; diff --git a/Src/comms.c b/Src/comms.c index 58b71fc..d5c146d 100644 --- a/Src/comms.c +++ b/Src/comms.c @@ -6,16 +6,8 @@ #include "config.h" #include "comms.h" -UART_HandleTypeDef huart2; - -#ifdef DEBUG_SERIAL_USART3 -#define UART_DMA_CHANNEL DMA1_Channel2 -#endif - -#ifdef DEBUG_SERIAL_USART2 -#define UART_DMA_CHANNEL DMA1_Channel7 -#endif - +extern UART_HandleTypeDef huart2; +extern UART_HandleTypeDef huart3; static volatile uint8_t uart_buf[100]; static volatile int16_t ch_buf[8]; @@ -47,19 +39,29 @@ void consoleScope(void) { #endif #if defined DEBUG_SERIAL_ASCII && (defined DEBUG_SERIAL_USART2 || defined DEBUG_SERIAL_USART3) - memset((void *)(uintptr_t)uart_buf, 0, sizeof(uart_buf)); - sprintf((char *)(uintptr_t)uart_buf, "1:%i 2:%i 3:%i 4:%i 5:%i 6:%i 7:%i 8:%i\r\n", ch_buf[0], ch_buf[1], ch_buf[2], ch_buf[3], ch_buf[4], ch_buf[5], ch_buf[6], ch_buf[7]); + // memset((void *)(uintptr_t)uart_buf, 0, sizeof(uart_buf)); + int strLength; + strLength = sprintf((char *)(uintptr_t)uart_buf, + "1:%i 2:%i 3:%i 4:%i 5:%i 6:%i 7:%i 8:%i\r\n", + ch_buf[0], ch_buf[1], ch_buf[2], ch_buf[3], ch_buf[4], ch_buf[5], ch_buf[6], ch_buf[7]); if(UART_DMA_CHANNEL->CNDTR == 0) { - UART_DMA_CHANNEL->CCR &= ~DMA_CCR_EN; - UART_DMA_CHANNEL->CNDTR = strlen((char *)(uintptr_t)uart_buf); - UART_DMA_CHANNEL->CMAR = (uint32_t)uart_buf; - UART_DMA_CHANNEL->CCR |= DMA_CCR_EN; + UART_DMA_CHANNEL->CCR &= ~DMA_CCR_EN; + UART_DMA_CHANNEL->CNDTR = strLength; + UART_DMA_CHANNEL->CMAR = (uint32_t)uart_buf; + UART_DMA_CHANNEL->CCR |= DMA_CCR_EN; } #endif } void consoleLog(char *message) { - HAL_UART_Transmit_DMA(&huart2, (uint8_t *)message, (uint16_t)strlen(message)); + #if defined DEBUG_SERIAL_ASCII && (defined DEBUG_SERIAL_USART2 || defined DEBUG_SERIAL_USART3) + if(UART_DMA_CHANNEL->CNDTR == 0) { + UART_DMA_CHANNEL->CCR &= ~DMA_CCR_EN; + UART_DMA_CHANNEL->CNDTR = strlen((char *)(uintptr_t)message); + UART_DMA_CHANNEL->CMAR = (uint32_t)message; + UART_DMA_CHANNEL->CCR |= DMA_CCR_EN; + } + #endif } diff --git a/Src/main.c b/Src/main.c index d46a913..9d06160 100644 --- a/Src/main.c +++ b/Src/main.c @@ -4,6 +4,7 @@ * Copyright (C) 2017-2018 Rene Hopf * Copyright (C) 2017-2018 Nico Stute * Copyright (C) 2017-2018 Niklas Fauth +* Copyright (C) 2019-2020 Emanuel FERU * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,18 +42,18 @@ RT_MODEL rtM_Left_; /* Real-time model */ RT_MODEL rtM_Right_; /* Real-time model */ -RT_MODEL *const rtM_Left = &rtM_Left_; -RT_MODEL *const rtM_Right = &rtM_Right_; +RT_MODEL *const rtM_Left = &rtM_Left_; +RT_MODEL *const rtM_Right = &rtM_Right_; -P rtP_Left; /* Block parameters (auto storage) */ -DW rtDW_Left; /* Observable states */ -ExtU rtU_Left; /* External inputs */ -ExtY rtY_Left; /* External outputs */ +P rtP_Left; /* Block parameters (auto storage) */ +DW rtDW_Left; /* Observable states */ +ExtU rtU_Left; /* External inputs */ +ExtY rtY_Left; /* External outputs */ -P rtP_Right; /* Block parameters (auto storage) */ -DW rtDW_Right; /* Observable states */ -ExtU rtU_Right; /* External inputs */ -ExtY rtY_Right; /* External outputs */ +P rtP_Right; /* Block parameters (auto storage) */ +DW rtDW_Right; /* Observable states */ +ExtU rtU_Right; /* External inputs */ +ExtY rtY_Right; /* External outputs */ extern uint8_t errCode_Left; /* Global variable to handle Motor error codes */ extern uint8_t errCode_Right; /* Global variable to handle Motor error codes */ @@ -70,7 +71,11 @@ extern volatile adc_buf_t adc_buffer; LCD_PCF8574_HandleTypeDef lcd; #endif extern I2C_HandleTypeDef hi2c2; -extern UART_HandleTypeDef huart2; +#ifndef TRANSPOTTER + extern UART_HandleTypeDef huart2; + extern UART_HandleTypeDef huart3; + static UART_HandleTypeDef huart; +#endif #if defined(DEBUG_I2C_LCD) || defined(SUPPORT_LCD) extern uint8_t LCDerrorFlag; @@ -92,37 +97,66 @@ extern UART_HandleTypeDef huart2; uint16_t saveValue = 0; uint16_t counter = 0; +#else + uint8_t nunchuck_connected = 1; #endif +#if defined(CONTROL_SERIAL_USART2) || defined(CONTROL_SERIAL_USART3) typedef struct{ - int16_t steer; - int16_t speed; - //uint32_t crc; + uint16_t start; + int16_t steer; + int16_t speed; + uint16_t checksum; } Serialcommand; - static volatile Serialcommand command; +static int16_t timeoutCnt = 0; // Timeout counter for Rx Serial command +#endif +static uint8_t timeoutFlag = 0; // Timeout Flag for Rx Serial command: 0 = OK, 1 = Problem detected (line disconnected or wrong Rx data) + +#if defined(FEEDBACK_SERIAL_USART2) || defined(FEEDBACK_SERIAL_USART3) +typedef struct{ + uint16_t start; + int16_t cmd1; + int16_t cmd2; + int16_t speedR; + int16_t speedL; + int16_t speedR_meas; + int16_t speedL_meas; + int16_t batVoltage; + int16_t boardTemp; + uint16_t checksum; +} SerialFeedback; +static SerialFeedback Feedback; +#endif +static uint8_t serialSendCounter; // serial send counter +#if defined(CONTROL_NUNCHUCK) || defined(SUPPORT_NUNCHUCK) || defined(CONTROL_PPM) || defined(CONTROL_ADC) static uint8_t button1, button2; +#endif -static int cmd1; // normalized input value. -1000 to 1000 -static int cmd2; // normalized input value. -1000 to 1000 -static int16_t steer; // local variable for steering. -1000 to 1000 -static int16_t speed; // local variable for speed. -1000 to 1000 -static int16_t steerFixdt; // local fixed-point variable for steering low-pass filter -static int16_t speedFixdt; // local fixed-point variable for speed low-pass filter -static int16_t steerRateFixdt; // local fixed-point variable for steering rate limiter -static int16_t speedRateFixdt; // local fixed-point variable for speed rate limiter +uint8_t ctrlModReqRaw = CTRL_MOD_REQ; +uint8_t ctrlModReq = CTRL_MOD_REQ; // Final control mode request +static int cmd1; // normalized input value. -1000 to 1000 +static int cmd2; // normalized input value. -1000 to 1000 +static int16_t speed; // local variable for speed. -1000 to 1000 +#ifndef TRANSPOTTER + static int16_t steer; // local variable for steering. -1000 to 1000 + static int16_t steerFixdt; // local fixed-point variable for steering low-pass filter + static int16_t speedFixdt; // local fixed-point variable for speed low-pass filter + static int16_t steerRateFixdt; // local fixed-point variable for steering rate limiter + static int16_t speedRateFixdt; // local fixed-point variable for speed rate limiter +#endif -extern volatile int pwml; // global variable for pwm left. -1000 to 1000 -extern volatile int pwmr; // global variable for pwm right. -1000 to 1000 +extern volatile int pwml; // global variable for pwm left. -1000 to 1000 +extern volatile int pwmr; // global variable for pwm right. -1000 to 1000 -extern uint8_t buzzerFreq; // global variable for the buzzer pitch. can be 1, 2, 3, 4, 5, 6, 7... -extern uint8_t buzzerPattern; // global variable for the buzzer pattern. can be 1, 2, 3, 4, 5, 6, 7... +extern uint8_t buzzerFreq; // global variable for the buzzer pitch. can be 1, 2, 3, 4, 5, 6, 7... +extern uint8_t buzzerPattern; // global variable for the buzzer pattern. can be 1, 2, 3, 4, 5, 6, 7... -extern uint8_t enable; // global variable for motor enable +extern uint8_t enable; // global variable for motor enable -extern volatile uint32_t timeout; // global variable for timeout -extern int16_t batVoltage; // global variable for battery voltage +extern volatile uint32_t timeout; // global variable for timeout +extern int16_t batVoltage; // global variable for battery voltage static uint32_t inactivity_timeout_counter; @@ -136,6 +170,7 @@ void poweroff(void) { // if (abs(speed) < 20) { // wait for the speed to drop, then shut down -> this is commented out for SAFETY reasons buzzerPattern = 0; enable = 0; + consoleLog("-- Motors disabled --\r\n"); for (int i = 0; i < 8; i++) { buzzerFreq = (uint8_t)i; HAL_Delay(100); @@ -175,10 +210,6 @@ int main(void) { MX_ADC1_Init(); MX_ADC2_Init(); - #if defined(DEBUG_SERIAL_USART2) || defined(DEBUG_SERIAL_USART3) - UART_Init(); - #endif - HAL_GPIO_WritePin(OFF_PORT, OFF_PIN, 1); HAL_ADC_Start(&hadc1); @@ -193,16 +224,24 @@ int main(void) { rtP_Left.b_selPhaABCurrMeas = 1; // Left motor measured current phases = {iA, iB} -> do NOT change rtP_Left.z_ctrlTypSel = CTRL_TYP_SEL; rtP_Left.b_diagEna = DIAG_ENA; + rtP_Left.i_max = (I_MOT_MAX * A2BIT_CONV) << 4; // fixdt(1,16,4) + rtP_Left.n_max = N_MOT_MAX << 4; // fixdt(1,16,4) rtP_Left.b_fieldWeakEna = FIELD_WEAK_ENA; - rtP_Left.i_max = I_MOT_MAX; - rtP_Left.n_max = N_MOT_MAX; + rtP_Left.id_fieldWeakMax = (FIELD_WEAK_MAX * A2BIT_CONV) << 4; // fixdt(1,16,4) + rtP_Left.a_phaAdvMax = PHASE_ADV_MAX << 4; // fixdt(1,16,4) + rtP_Left.r_fieldWeakHi = FIELD_WEAK_HI << 4; // fixdt(1,16,4) + rtP_Left.r_fieldWeakLo = FIELD_WEAK_LO << 4; // fixdt(1,16,4) rtP_Right.b_selPhaABCurrMeas = 0; // Left motor measured current phases = {iB, iC} -> do NOT change rtP_Right.z_ctrlTypSel = CTRL_TYP_SEL; rtP_Right.b_diagEna = DIAG_ENA; + rtP_Right.i_max = (I_MOT_MAX * A2BIT_CONV) << 4; // fixdt(1,16,4) + rtP_Right.n_max = N_MOT_MAX << 4; // fixdt(1,16,4) rtP_Right.b_fieldWeakEna = FIELD_WEAK_ENA; - rtP_Right.i_max = I_MOT_MAX; - rtP_Right.n_max = N_MOT_MAX; + rtP_Right.id_fieldWeakMax = (FIELD_WEAK_MAX * A2BIT_CONV) << 4; // fixdt(1,16,4) + rtP_Right.a_phaAdvMax = PHASE_ADV_MAX << 4; // fixdt(1,16,4) + rtP_Right.r_fieldWeakHi = FIELD_WEAK_HI << 4; // fixdt(1,16,4) + rtP_Right.r_fieldWeakLo = FIELD_WEAK_LO << 4; // fixdt(1,16,4) /* Pack LEFT motor data into RTM */ rtM_Left->defaultParam = &rtP_Left; @@ -230,24 +269,24 @@ int main(void) { HAL_GPIO_WritePin(LED_PORT, LED_PIN, 1); -#ifdef TRANSPOTTER - int lastDistance = 0; - enable = 1; - uint8_t checkRemote = 0; + #ifdef TRANSPOTTER + int lastDistance = 0; + enable = 1; + uint8_t checkRemote = 0; - HAL_FLASH_Unlock(); + HAL_FLASH_Unlock(); - /* EEPROM Init */ - EE_Init(); + /* EEPROM Init */ + EE_Init(); - EE_ReadVariable(VirtAddVarTab[0], &saveValue); + EE_ReadVariable(VirtAddVarTab[0], &saveValue); - HAL_FLASH_Lock(); - float setDistance = saveValue / 1000.0; - if (setDistance < 0.2) { - setDistance = 1.0; - } -#endif + HAL_FLASH_Lock(); + float setDistance = saveValue / 1000.0; + if (setDistance < 0.2) { + setDistance = 1.0; + } + #endif #ifdef CONTROL_PPM PPM_Init(); @@ -258,9 +297,16 @@ int main(void) { Nunchuck_Init(); #endif - #ifdef CONTROL_SERIAL_USART2 - UART_Control_Init(); - HAL_UART_Receive_DMA(&huart2, (uint8_t *)&command, 4); + #if defined(CONTROL_SERIAL_USART2) || defined(FEEDBACK_SERIAL_USART2) || defined(DEBUG_SERIAL_USART2) + UART2_Init(); + huart = huart2; + #endif + #if defined(CONTROL_SERIAL_USART3) || defined(FEEDBACK_SERIAL_USART3) || defined(DEBUG_SERIAL_USART3) + UART3_Init(); + huart = huart3; + #endif + #if defined(CONTROL_SERIAL_USART2) || defined(CONTROL_SERIAL_USART3) + HAL_UART_Receive_DMA(&huart, (uint8_t *)&command, sizeof(command)); #endif #if defined(DEBUG_I2C_LCD) || defined(SUPPORT_LCD) @@ -308,7 +354,6 @@ int main(void) { LCD_WriteString(&lcd, "m)"); #endif - int16_t lastSpeedL = 0, lastSpeedR = 0; int16_t speedL = 0, speedR = 0; @@ -397,41 +442,37 @@ int main(void) { #endif #if defined(CONTROL_NUNCHUCK) || defined(SUPPORT_NUNCHUCK) - #ifdef TRANSPOTTER if (nunchuck_connected != 0) { - #endif - Nunchuck_Read(); - cmd1 = CLAMP((nunchuck_data[0] - 127) * 8, -1000, 1000); // x - axis. Nunchuck joystick readings range 30 - 230 - cmd2 = CLAMP((nunchuck_data[1] - 128) * 8, -1000, 1000); // y - axis + Nunchuck_Read(); + cmd1 = CLAMP((nunchuck_data[0] - 127) * 8, INPUT_MIN, INPUT_MAX); // x - axis. Nunchuck joystick readings range 30 - 230 + cmd2 = CLAMP((nunchuck_data[1] - 128) * 8, INPUT_MIN, INPUT_MAX); // y - axis - button1 = (uint8_t)nunchuck_data[5] & 1; - button2 = (uint8_t)(nunchuck_data[5] >> 1) & 1; - #ifdef TRANSPOTTER + button1 = (uint8_t)nunchuck_data[5] & 1; + button2 = (uint8_t)(nunchuck_data[5] >> 1) & 1; } - #endif #endif #ifdef CONTROL_PPM - cmd1 = CLAMP((ppm_captured_value[0] - 500) * 2, -1000, 1000); - cmd2 = CLAMP((ppm_captured_value[1] - 500) * 2, -1000, 1000); - button1 = ppm_captured_value[5] > 500; + cmd1 = CLAMP((ppm_captured_value[0] - INPUT_MID) * 2, INPUT_MIN, INPUT_MAX); + cmd2 = CLAMP((ppm_captured_value[1] - INPUT_MID) * 2, INPUT_MIN, INPUT_MAX); + button1 = ppm_captured_value[5] > INPUT_MID; float scale = ppm_captured_value[2] / 1000.0f; #endif #ifdef CONTROL_ADC // ADC values range: 0-4095, see ADC-calibration in config.h #ifdef ADC1_MID_POT - cmd1 = CLAMP((adc_buffer.l_tx2 - ADC1_MID) * 1000 / (ADC1_MAX - ADC1_MID), 0, 1000) - -CLAMP((ADC1_MID - adc_buffer.l_tx2) * 1000 / (ADC1_MID - ADC1_MIN), 0, 1000); // ADC1 + cmd1 = CLAMP((adc_buffer.l_tx2 - ADC1_MID) * INPUT_MAX / (ADC1_MAX - ADC1_MID), 0, INPUT_MAX) + -CLAMP((ADC1_MID - adc_buffer.l_tx2) * INPUT_MAX / (ADC1_MID - ADC1_MIN), 0, INPUT_MAX); // ADC1 #else - cmd1 = CLAMP((adc_buffer.l_tx2 - ADC1_MIN) * 1000 / (ADC1_MAX - ADC1_MIN), 0, 1000); // ADC1 + cmd1 = CLAMP((adc_buffer.l_tx2 - ADC1_MIN) * INPUT_MAX / (ADC1_MAX - ADC1_MIN), 0, INPUT_MAX); // ADC1 #endif #ifdef ADC2_MID_POT - cmd2 = CLAMP((adc_buffer.l_rx2 - ADC2_MID) * 1000 / (ADC2_MAX - ADC2_MID), 0, 1000) - -CLAMP((ADC2_MID - adc_buffer.l_rx2) * 1000 / (ADC2_MID - ADC2_MIN), 0, 1000); // ADC2 + cmd2 = CLAMP((adc_buffer.l_rx2 - ADC2_MID) * INPUT_MAX / (ADC2_MAX - ADC2_MID), 0, INPUT_MAX) + -CLAMP((ADC2_MID - adc_buffer.l_rx2) * INPUT_MAX / (ADC2_MID - ADC2_MIN), 0, INPUT_MAX); // ADC2 #else - cmd2 = CLAMP((adc_buffer.l_rx2 - ADC2_MIN) * 1000 / (ADC2_MAX - ADC2_MIN), 0, 1000); // ADC2 + cmd2 = CLAMP((adc_buffer.l_rx2 - ADC2_MIN) * INPUT_MAX / (ADC2_MAX - ADC2_MIN), 0, INPUT_MAX); // ADC2 #endif // use ADCs as button inputs: @@ -441,11 +482,41 @@ int main(void) { timeout = 0; #endif - #ifdef CONTROL_SERIAL_USART2 - cmd1 = CLAMP((int16_t)command.steer, -1000, 1000); - cmd2 = CLAMP((int16_t)command.speed, -1000, 1000); + #if defined CONTROL_SERIAL_USART2 || defined CONTROL_SERIAL_USART3 + + // Handle received data validity, timeout and fix out-of-sync if necessary + if (command.start == START_FRAME && command.checksum == (uint16_t)(command.start ^ command.steer ^ command.speed)) { + if (timeoutFlag) { // Check for previous timeout flag + if (timeoutCnt-- <= 0) // Timeout de-qualification + timeoutFlag = 0; // Timeout flag cleared + } else { + cmd1 = CLAMP((int16_t)command.steer, INPUT_MIN, INPUT_MAX); + cmd2 = CLAMP((int16_t)command.speed, INPUT_MIN, INPUT_MAX); + command.start = 0xFFFF; // Change the Start Frame for timeout detection in the next cycle + timeoutCnt = 0; // Reset the timeout counter + } + } else { + if (timeoutCnt++ >= SERIAL_TIMEOUT) { // Timeout qualification + timeoutFlag = 1; // Timeout detected + timeoutCnt = SERIAL_TIMEOUT; // Limit timout counter value + } + // Check the received Start Frame. If it is NOT OK, most probably we are out-of-sync. + // Try to re-sync by reseting the DMA + if (command.start != START_FRAME && command.start != 0xFFFF) { + HAL_UART_DMAStop(&huart); + HAL_UART_Receive_DMA(&huart, (uint8_t *)&command, sizeof(command)); + } + } + if (timeoutFlag) { // In case of timeout bring the system to a Safe State + ctrlModReq = 0; // OPEN_MODE request. This will bring the motor power to 0 in a controlled way + cmd1 = 0; + cmd2 = 0; + } else { + ctrlModReq = ctrlModReqRaw; // Follow the Mode request + } timeout = 0; + #endif #ifndef TRANSPOTTER @@ -491,6 +562,9 @@ int main(void) { } #endif + lastSpeedL = speedL; + lastSpeedR = speedR; + #ifdef TRANSPOTTER if (timeout > TIMEOUT) { pwml = 0; @@ -509,12 +583,7 @@ int main(void) { nunchuck_connected = 0; } - #endif - lastSpeedL = speedL; - lastSpeedR = speedR; - - #ifdef TRANSPOTTER if ((distance / 1345.0) - setDistance > 0.5 && (lastDistance / 1345.0) - setDistance > 0.5) { // Error, robot too far away! enable = 0; longBeep(); @@ -544,7 +613,7 @@ int main(void) { nunchuck_connected = 1; } } - } + } #endif #ifdef SUPPORT_LCD @@ -570,25 +639,51 @@ int main(void) { #endif - if (inactivity_timeout_counter % 25 == 0) { - // ####### CALC BOARD TEMPERATURE ####### - filtLowPass16(adc_buffer.temp, TEMP_FILT_COEF, &board_temp_adcFixdt); - board_temp_adcFilt = board_temp_adcFixdt >> 4; // convert fixed-point to integer - board_temp_deg_c = (TEMP_CAL_HIGH_DEG_C - TEMP_CAL_LOW_DEG_C) * (board_temp_adcFilt - TEMP_CAL_LOW_ADC) / (TEMP_CAL_HIGH_ADC - TEMP_CAL_LOW_ADC) + TEMP_CAL_LOW_DEG_C; + // ####### CALC BOARD TEMPERATURE ####### + filtLowPass16(adc_buffer.temp, TEMP_FILT_COEF, &board_temp_adcFixdt); + board_temp_adcFilt = board_temp_adcFixdt >> 4; // convert fixed-point to integer + board_temp_deg_c = (TEMP_CAL_HIGH_DEG_C - TEMP_CAL_LOW_DEG_C) * (board_temp_adcFilt - TEMP_CAL_LOW_ADC) / (TEMP_CAL_HIGH_ADC - TEMP_CAL_LOW_ADC) + TEMP_CAL_LOW_DEG_C; + + serialSendCounter++; // Increment the counter + if (serialSendCounter > 20) { // Send data every 100 ms = 20 * 5 ms, where 5 ms is approximately the main loop duration + serialSendCounter = 0; // Reset the counter // ####### DEBUG SERIAL OUT ####### - #ifdef CONTROL_ADC - setScopeChannel(0, (int)adc_buffer.l_tx2); // 1: ADC1 - setScopeChannel(1, (int)adc_buffer.l_rx2); // 2: ADC2 - #endif - setScopeChannel(2, (int16_t)speedR); // 1: output command: [-1000, 1000] - setScopeChannel(3, (int16_t)speedL); // 2: output command: [-1000, 1000] - setScopeChannel(4, (int16_t)adc_buffer.batt1); // 5: for battery voltage calibration - setScopeChannel(5, (int16_t)(batVoltage * BAT_CALIB_REAL_VOLTAGE / BAT_CALIB_ADC)); // 6: for verifying battery voltage calibration - setScopeChannel(6, (int16_t)board_temp_adcFilt); // 7: for board temperature calibration - setScopeChannel(7, (int16_t)board_temp_deg_c); // 8: for verifying board temperature calibration - consoleScope(); - } + #if defined(DEBUG_SERIAL_USART2) || defined(DEBUG_SERIAL_USART3) + #ifdef CONTROL_ADC + setScopeChannel(0, (int16_t)adc_buffer.l_tx2); // 1: ADC1 + setScopeChannel(1, (int16_t)adc_buffer.l_rx2); // 2: ADC2 + #endif + setScopeChannel(2, (int16_t)speedR); // 1: output command: [-1000, 1000] + setScopeChannel(3, (int16_t)speedL); // 2: output command: [-1000, 1000] + setScopeChannel(4, (int16_t)adc_buffer.batt1); // 5: for battery voltage calibration + setScopeChannel(5, (int16_t)(batVoltage * BAT_CALIB_REAL_VOLTAGE / BAT_CALIB_ADC)); // 6: for verifying battery voltage calibration + setScopeChannel(6, (int16_t)board_temp_adcFilt); // 7: for board temperature calibration + setScopeChannel(7, (int16_t)board_temp_deg_c); // 8: for verifying board temperature calibration + consoleScope(); + + // ####### FEEDBACK SERIAL OUT ####### + #elif defined(FEEDBACK_SERIAL_USART2) || defined(FEEDBACK_SERIAL_USART3) + if(UART_DMA_CHANNEL->CNDTR == 0) { + Feedback.start = (uint16_t)START_FRAME; + Feedback.cmd1 = (int16_t)cmd1; + Feedback.cmd2 = (int16_t)cmd2; + Feedback.speedR = (int16_t)speedR; + Feedback.speedL = (int16_t)speedL; + Feedback.speedR_meas = (int16_t)rtY_Left.n_mot; + Feedback.speedL_meas = (int16_t)rtY_Right.n_mot; + Feedback.batVoltage = (int16_t)(batVoltage * BAT_CALIB_REAL_VOLTAGE / BAT_CALIB_ADC); + Feedback.boardTemp = (int16_t)board_temp_deg_c; + Feedback.checksum = (uint16_t)(Feedback.start ^ Feedback.cmd1 ^ Feedback.cmd2 ^ Feedback.speedR ^ Feedback.speedL + ^ Feedback.speedR_meas ^ Feedback.speedL_meas ^ Feedback.batVoltage ^ Feedback.boardTemp); + + UART_DMA_CHANNEL->CCR &= ~DMA_CCR_EN; + UART_DMA_CHANNEL->CNDTR = sizeof(Feedback); + UART_DMA_CHANNEL->CMAR = (uint32_t)&Feedback; + UART_DMA_CHANNEL->CCR |= DMA_CCR_EN; + } + #endif + } HAL_GPIO_TogglePin(LED_PORT, LED_PIN); // ####### POWEROFF BY POWER-BUTTON ####### @@ -615,9 +710,9 @@ int main(void) { } else if (batVoltage < BAT_LOW_LVL2 && batVoltage >= BAT_LOW_DEAD && BAT_LOW_LVL2_ENABLE) { // low bat 2: fast beep buzzerFreq = 5; buzzerPattern = 6; - } else if (errCode_Left || errCode_Right) { // beep in case of Motor error - fast beep - buzzerFreq = 6; - buzzerPattern = 2; + } else if (errCode_Left || errCode_Right || timeoutFlag) { // beep in case of Motor error or serial timeout - fast beep + buzzerFreq = 12; + buzzerPattern = 1; } else if (BEEPS_BACKWARD && speed < -50) { // backward beep buzzerFreq = 5; buzzerPattern = 1; @@ -786,12 +881,12 @@ void mixerFcn(int16_t rtu_speed, int16_t rtu_steer, int16_t *rty_speedR, int16_t tmp = prodSpeed - prodSteer; tmp = CLAMP(tmp, -32768, 32767); // Overflow protection *rty_speedR = (int16_t)(tmp >> 4); // Convert from fixed-point to int - *rty_speedR = CLAMP(*rty_speedR, -1000, 1000); + *rty_speedR = CLAMP(*rty_speedR, INPUT_MIN, INPUT_MAX); tmp = prodSpeed + prodSteer; tmp = CLAMP(tmp, -32768, 32767); // Overflow protection *rty_speedL = (int16_t)(tmp >> 4); // Convert from fixed-point to int - *rty_speedL = CLAMP(*rty_speedL, -1000, 1000); + *rty_speedL = CLAMP(*rty_speedL, INPUT_MIN, INPUT_MAX); } // =========================================================== diff --git a/Src/setup.c b/Src/setup.c index 53d01f5..83e2979 100644 --- a/Src/setup.c +++ b/Src/setup.c @@ -44,182 +44,185 @@ ADC_HandleTypeDef hadc1; ADC_HandleTypeDef hadc2; I2C_HandleTypeDef hi2c2; UART_HandleTypeDef huart2; +UART_HandleTypeDef huart3; DMA_HandleTypeDef hdma_usart2_rx; DMA_HandleTypeDef hdma_usart2_tx; +DMA_HandleTypeDef hdma_usart3_rx; +DMA_HandleTypeDef hdma_usart3_tx; volatile adc_buf_t adc_buffer; -#ifdef CONTROL_SERIAL_USART2 +#if defined(CONTROL_SERIAL_USART2) || defined(FEEDBACK_SERIAL_USART2) || defined(DEBUG_SERIAL_USART2) +void UART2_Init(void) { + /* The code below is commented out - otwerwise Serial Receive does not work */ + // #ifdef CONTROL_SERIAL_USART2 + // /* DMA1_Channel6_IRQn interrupt configuration */ + // HAL_NVIC_SetPriority(DMA1_Channel6_IRQn, 5, 6); + // HAL_NVIC_EnableIRQ(DMA1_Channel6_IRQn); + // /* DMA1_Channel7_IRQn interrupt configuration */ + // HAL_NVIC_SetPriority(DMA1_Channel7_IRQn, 5, 7); + // HAL_NVIC_EnableIRQ(DMA1_Channel7_IRQn); + // #endif -void UART_Control_Init(void) { - GPIO_InitTypeDef GPIO_InitStruct; - __HAL_RCC_USART2_CLK_ENABLE(); - /* DMA1_Channel6_IRQn interrupt configuration */ - //HAL_NVIC_SetPriority(DMA1_Channel6_IRQn, 5, 6); - //HAL_NVIC_EnableIRQ(DMA1_Channel6_IRQn); - HAL_NVIC_SetPriority(DMA1_Channel6_IRQn, 5, 6); - HAL_NVIC_EnableIRQ(DMA1_Channel6_IRQn); - /* DMA1_Channel7_IRQn interrupt configuration */ - HAL_NVIC_SetPriority(DMA1_Channel7_IRQn, 5, 7); - HAL_NVIC_EnableIRQ(DMA1_Channel7_IRQn); - - huart2.Instance = USART2; - huart2.Init.BaudRate = CONTROL_BAUD; - huart2.Init.WordLength = UART_WORDLENGTH_8B; - huart2.Init.StopBits = UART_STOPBITS_1; - huart2.Init.Parity = UART_PARITY_NONE; - huart2.Init.Mode = UART_MODE_TX_RX; - huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE; - // huart2.Init.OverSampling = UART_OVERSAMPLING_16; - HAL_UART_Init(&huart2); - + // Disable serial interrupt - it is not needed + HAL_NVIC_DisableIRQ(DMA1_Channel6_IRQn); // Rx Channel + HAL_NVIC_DisableIRQ(DMA1_Channel7_IRQn); // Tx Channel __HAL_RCC_DMA1_CLK_ENABLE(); - /* USER CODE BEGIN USART2_MspInit 0 */ - __HAL_RCC_GPIOA_CLK_ENABLE(); - /* USER CODE END USART2_MspInit 0 */ - /* Peripheral clock enable */ - __HAL_RCC_USART2_CLK_ENABLE(); - - GPIO_InitStruct.Pull = GPIO_PULLUP; //GPIO_NOPULL; - GPIO_InitStruct.Pin = GPIO_PIN_2; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - - GPIO_InitStruct.Pin = GPIO_PIN_3; - GPIO_InitStruct.Mode = GPIO_MODE_INPUT; //GPIO_MODE_AF_PP; -// GPIO_InitStruct.Pull = GPIO_NOPULL; - HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - - /* Peripheral DMA init*/ - - hdma_usart2_rx.Instance = DMA1_Channel6; - hdma_usart2_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; - hdma_usart2_rx.Init.PeriphInc = DMA_PINC_DISABLE; - hdma_usart2_rx.Init.MemInc = DMA_MINC_ENABLE; - hdma_usart2_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - hdma_usart2_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - hdma_usart2_rx.Init.Mode = DMA_CIRCULAR; //DMA_NORMAL; - hdma_usart2_rx.Init.Priority = DMA_PRIORITY_LOW; - HAL_DMA_Init(&hdma_usart2_rx); - - __HAL_LINKDMA(&huart2,hdmarx,hdma_usart2_rx); - - hdma_usart2_tx.Instance = DMA1_Channel7; - hdma_usart2_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; - hdma_usart2_tx.Init.PeriphInc = DMA_PINC_DISABLE; - hdma_usart2_tx.Init.MemInc = DMA_MINC_ENABLE; - hdma_usart2_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; - hdma_usart2_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; - hdma_usart2_tx.Init.Mode = DMA_NORMAL; - hdma_usart2_tx.Init.Priority = DMA_PRIORITY_LOW; -HAL_DMA_Init(&hdma_usart2_tx); - __HAL_LINKDMA(&huart2,hdmatx,hdma_usart2_tx); -} + __HAL_RCC_GPIOA_CLK_ENABLE(); + __HAL_RCC_USART2_CLK_ENABLE(); -#endif + huart2.Instance = USART2; + huart2.Init.BaudRate = USART2_BAUD; + huart2.Init.WordLength = USART2_WORDLENGTH; + huart2.Init.StopBits = UART_STOPBITS_1; + huart2.Init.Parity = UART_PARITY_NONE; + huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE; + huart2.Init.OverSampling = UART_OVERSAMPLING_16; + #if defined(CONTROL_SERIAL_USART2) + huart2.Init.Mode = UART_MODE_TX_RX; + #elif defined(DEBUG_SERIAL_USART2) + huart2.Init.Mode = UART_MODE_TX; + #endif + HAL_UART_Init(&huart2); -#ifdef DEBUG_SERIAL_USART3 -void UART_Init(void) { - __HAL_RCC_USART3_CLK_ENABLE(); - __HAL_RCC_DMA1_CLK_ENABLE(); + #if defined(FEEDBACK_SERIAL_USART2) || defined(DEBUG_SERIAL_USART2) + USART2->CR3 |= USART_CR3_DMAT; // | USART_CR3_DMAR | USART_CR3_OVRDIS; + #endif - UART_HandleTypeDef huart3; - huart3.Instance = USART3; - huart3.Init.BaudRate = DEBUG_BAUD; - huart3.Init.WordLength = UART_WORDLENGTH_8B; - huart3.Init.StopBits = UART_STOPBITS_1; - huart3.Init.Parity = UART_PARITY_NONE; - huart3.Init.Mode = UART_MODE_TX; - huart3.Init.HwFlowCtl = UART_HWCONTROL_NONE; - huart3.Init.OverSampling = UART_OVERSAMPLING_16; - HAL_UART_Init(&huart3); + GPIO_InitTypeDef GPIO_InitStruct; + GPIO_InitStruct.Pin = GPIO_PIN_2; + GPIO_InitStruct.Pull = GPIO_PULLUP; //GPIO_NOPULL; + GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; + HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - USART3->CR3 |= USART_CR3_DMAT; // | USART_CR3_DMAR | USART_CR3_OVRDIS; + #ifdef CONTROL_SERIAL_USART2 + GPIO_InitStruct.Pin = GPIO_PIN_3; + GPIO_InitStruct.Mode = GPIO_MODE_INPUT; //GPIO_MODE_AF_PP; + HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - GPIO_InitTypeDef GPIO_InitStruct; - GPIO_InitStruct.Pin = GPIO_PIN_10; - GPIO_InitStruct.Pull = GPIO_PULLUP; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); + /* Peripheral DMA init*/ + hdma_usart2_rx.Instance = DMA1_Channel6; + hdma_usart2_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; + hdma_usart2_rx.Init.PeriphInc = DMA_PINC_DISABLE; + hdma_usart2_rx.Init.MemInc = DMA_MINC_ENABLE; + hdma_usart2_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; + hdma_usart2_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; + hdma_usart2_rx.Init.Mode = DMA_CIRCULAR; //DMA_NORMAL; + hdma_usart2_rx.Init.Priority = DMA_PRIORITY_LOW; + HAL_DMA_Init(&hdma_usart2_rx); + __HAL_LINKDMA(&huart2, hdmarx, hdma_usart2_rx); + #endif + + hdma_usart2_tx.Instance = DMA1_Channel7; + hdma_usart2_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; + hdma_usart2_tx.Init.PeriphInc = DMA_PINC_DISABLE; + hdma_usart2_tx.Init.MemInc = DMA_MINC_ENABLE; + hdma_usart2_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; + hdma_usart2_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; + hdma_usart2_tx.Init.Mode = DMA_NORMAL; + hdma_usart2_tx.Init.Priority = DMA_PRIORITY_LOW; + HAL_DMA_Init(&hdma_usart2_tx); + + #ifdef CONTROL_SERIAL_USART2 + __HAL_LINKDMA(&huart2, hdmatx, hdma_usart2_tx); + #endif + #if defined(FEEDBACK_SERIAL_USART2) || defined(DEBUG_SERIAL_USART2) + DMA1_Channel7->CPAR = (uint32_t) & (USART2->DR); + DMA1_Channel7->CNDTR = 0; + DMA1->IFCR = DMA_IFCR_CTCIF7 | DMA_IFCR_CHTIF7 | DMA_IFCR_CGIF7; + #endif - DMA1_Channel2->CCR = 0; - DMA1_Channel2->CPAR = (uint32_t) & (USART3->DR); - DMA1_Channel2->CNDTR = 0; - DMA1_Channel2->CCR = DMA_CCR_MINC | DMA_CCR_DIR; - DMA1->IFCR = DMA_IFCR_CTCIF2 | DMA_IFCR_CHTIF2 | DMA_IFCR_CGIF2; } #endif -#ifdef DEBUG_SERIAL_USART2 -void UART_Init(void) { - __HAL_RCC_USART2_CLK_ENABLE(); - __HAL_RCC_DMA1_CLK_ENABLE(); +#if defined(CONTROL_SERIAL_USART3) || defined(FEEDBACK_SERIAL_USART3) || defined(DEBUG_SERIAL_USART3) +void UART3_Init(void) { - UART_HandleTypeDef huart2; - huart2.Instance = USART2; - huart2.Init.BaudRate = DEBUG_BAUD; - huart2.Init.WordLength = UART_WORDLENGTH_8B; - huart2.Init.StopBits = UART_STOPBITS_1; - huart2.Init.Parity = UART_PARITY_NONE; - huart2.Init.Mode = UART_MODE_TX; - huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE; - huart2.Init.OverSampling = UART_OVERSAMPLING_16; - HAL_UART_Init(&huart2); + /* The code below is commented out - otwerwise Serial Receive does not work */ + // #ifdef CONTROL_SERIAL_USART3 + // /* DMA1_Channel3_IRQn interrupt configuration */ + // HAL_NVIC_SetPriority(DMA1_Channel3_IRQn, 5, 3); + // HAL_NVIC_EnableIRQ(DMA1_Channel3_IRQn); + // /* DMA1_Channel2_IRQn interrupt configuration */ + // HAL_NVIC_SetPriority(DMA1_Channel2_IRQn, 5, 2); + // HAL_NVIC_EnableIRQ(DMA1_Channel2_IRQn); + // #endif - USART2->CR3 |= USART_CR3_DMAT; // | USART_CR3_DMAR | USART_CR3_OVRDIS; + // Disable serial interrupt - it is not needed + HAL_NVIC_DisableIRQ(DMA1_Channel3_IRQn); // Rx Channel + HAL_NVIC_DisableIRQ(DMA1_Channel2_IRQn); // Tx Channel - GPIO_InitTypeDef GPIO_InitStruct; - GPIO_InitStruct.Pin = GPIO_PIN_2; - GPIO_InitStruct.Pull = GPIO_PULLUP; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); - - DMA1_Channel7->CCR = 0; - DMA1_Channel7->CPAR = (uint32_t) & (USART2->DR); - DMA1_Channel7->CNDTR = 0; - DMA1_Channel7->CCR = DMA_CCR_MINC | DMA_CCR_DIR; - DMA1->IFCR = DMA_IFCR_CTCIF7 | DMA_IFCR_CHTIF7 | DMA_IFCR_CGIF7; -} -#endif - -/* -void UART_Init(void) { - __HAL_RCC_USART2_CLK_ENABLE(); __HAL_RCC_DMA1_CLK_ENABLE(); + __HAL_RCC_GPIOB_CLK_ENABLE(); + __HAL_RCC_USART3_CLK_ENABLE(); - UART_HandleTypeDef huart2; - huart2.Instance = USART2; - huart2.Init.BaudRate = 115200; - huart2.Init.WordLength = UART_WORDLENGTH_8B; - huart2.Init.StopBits = UART_STOPBITS_1; - huart2.Init.Parity = UART_PARITY_NONE; - huart2.Init.Mode = UART_MODE_TX; - huart2.Init.HwFlowCtl = UART_HWCONTROL_NONE; - huart2.Init.OverSampling = UART_OVERSAMPLING_16; - HAL_UART_Init(&huart2); + huart3.Instance = USART3; + huart3.Init.BaudRate = USART3_BAUD; + huart3.Init.WordLength = USART3_WORDLENGTH; + huart3.Init.StopBits = UART_STOPBITS_1; + huart3.Init.Parity = UART_PARITY_NONE; + huart3.Init.HwFlowCtl = UART_HWCONTROL_NONE; + huart3.Init.OverSampling = UART_OVERSAMPLING_16; + #if defined(CONTROL_SERIAL_USART3) + huart3.Init.Mode = UART_MODE_TX_RX; + #elif defined(DEBUG_SERIAL_USART3) + huart3.Init.Mode = UART_MODE_TX; + #endif + HAL_UART_Init(&huart3); - USART2->CR3 |= USART_CR3_DMAT; // | USART_CR3_DMAR | USART_CR3_OVRDIS; + #if defined(FEEDBACK_SERIAL_USART3) || defined(DEBUG_SERIAL_USART3) + USART3->CR3 |= USART_CR3_DMAT; // | USART_CR3_DMAR | USART_CR3_OVRDIS; + #endif GPIO_InitTypeDef GPIO_InitStruct; - GPIO_InitStruct.Pin = GPIO_PIN_2; - GPIO_InitStruct.Pull = GPIO_PULLUP; - GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; - GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; - HAL_GPIO_Init(GPIOA, &GPIO_InitStruct); + GPIO_InitStruct.Pin = GPIO_PIN_10; + GPIO_InitStruct.Pull = GPIO_PULLUP; + GPIO_InitStruct.Mode = GPIO_MODE_AF_PP; + GPIO_InitStruct.Speed = GPIO_SPEED_FREQ_HIGH; + HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); - DMA1_Channel7->CCR = 0; - DMA1_Channel7->CPAR = (uint32_t) & (USART3->DR); - DMA1_Channel7->CNDTR = 0; - DMA1_Channel7->CCR = DMA_CCR_MINC | DMA_CCR_DIR; - DMA1->IFCR = DMA_IFCR_CTCIF7 | DMA_IFCR_CHTIF7 | DMA_IFCR_CGIF7; + #ifdef CONTROL_SERIAL_USART3 + GPIO_InitStruct.Pin = GPIO_PIN_11; + GPIO_InitStruct.Mode = GPIO_MODE_INPUT; + HAL_GPIO_Init(GPIOB, &GPIO_InitStruct); + + /* Peripheral DMA init*/ + hdma_usart3_rx.Instance = DMA1_Channel3; + hdma_usart3_rx.Init.Direction = DMA_PERIPH_TO_MEMORY; + hdma_usart3_rx.Init.PeriphInc = DMA_PINC_DISABLE; + hdma_usart3_rx.Init.MemInc = DMA_MINC_ENABLE; + hdma_usart3_rx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; + hdma_usart3_rx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; + hdma_usart3_rx.Init.Mode = DMA_CIRCULAR; //DMA_NORMAL; + hdma_usart3_rx.Init.Priority = DMA_PRIORITY_LOW; + HAL_DMA_Init(&hdma_usart3_rx); + __HAL_LINKDMA(&huart3, hdmarx, hdma_usart3_rx); + #endif + + hdma_usart3_tx.Instance = DMA1_Channel2; + hdma_usart3_tx.Init.Direction = DMA_MEMORY_TO_PERIPH; + hdma_usart3_tx.Init.PeriphInc = DMA_PINC_DISABLE; + hdma_usart3_tx.Init.MemInc = DMA_MINC_ENABLE; + hdma_usart3_tx.Init.PeriphDataAlignment = DMA_PDATAALIGN_BYTE; + hdma_usart3_tx.Init.MemDataAlignment = DMA_MDATAALIGN_BYTE; + hdma_usart3_tx.Init.Mode = DMA_NORMAL; + hdma_usart3_tx.Init.Priority = DMA_PRIORITY_LOW; + HAL_DMA_Init(&hdma_usart3_tx); + + #ifdef CONTROL_SERIAL_USART3 + __HAL_LINKDMA(&huart3, hdmatx, hdma_usart3_tx); + #endif + #if defined(FEEDBACK_SERIAL_USART3) || defined(DEBUG_SERIAL_USART3) + DMA1_Channel2->CPAR = (uint32_t) & (USART3->DR); + DMA1_Channel2->CNDTR = 0; + DMA1->IFCR = DMA_IFCR_CTCIF2 | DMA_IFCR_CHTIF2 | DMA_IFCR_CGIF2; + #endif } -*/ +#endif DMA_HandleTypeDef hdma_i2c2_rx; DMA_HandleTypeDef hdma_i2c2_tx; @@ -480,7 +483,6 @@ void MX_TIM_Init(void) { HAL_TIM_PWM_Init(&htim_left); sMasterConfig.MasterOutputTrigger = TIM_TRGO_UPDATE; - // sMasterConfig.MasterOutputTrigger = TIM_TRGO_OC4REF; sMasterConfig.MasterSlaveMode = TIM_MASTERSLAVEMODE_ENABLE; HAL_TIMEx_MasterConfigSynchronization(&htim_left, &sMasterConfig); diff --git a/build/firmware.bin b/build/firmware.bin index 7593664..ce60259 100644 Binary files a/build/firmware.bin and b/build/firmware.bin differ diff --git a/build/firmware.elf b/build/firmware.elf index 67bfa45..6a0344c 100644 Binary files a/build/firmware.elf and b/build/firmware.elf differ diff --git a/docs/firmware_architecture.pptx b/docs/firmware_architecture.pptx index c750093..9f5d105 100644 Binary files a/docs/firmware_architecture.pptx and b/docs/firmware_architecture.pptx differ diff --git a/docs/pictures/FOC_algorithm.png b/docs/pictures/FOC_algorithm.png index d9ef13b..259b2cc 100644 Binary files a/docs/pictures/FOC_algorithm.png and b/docs/pictures/FOC_algorithm.png differ diff --git a/docs/pictures/FW_architecture.png b/docs/pictures/FW_architecture.png index a29aa7e..34e3f7d 100644 Binary files a/docs/pictures/FW_architecture.png and b/docs/pictures/FW_architecture.png differ diff --git a/docs/pictures/FieldWeakening.png b/docs/pictures/FieldWeakening.png new file mode 100644 index 0000000..562c90f Binary files /dev/null and b/docs/pictures/FieldWeakening.png differ diff --git a/docs/pictures/paramTable.png b/docs/pictures/paramTable.png index 780e6ce..fffaa74 100644 Binary files a/docs/pictures/paramTable.png and b/docs/pictures/paramTable.png differ diff --git a/platformio.ini b/platformio.ini index 6f3a728..790b6cd 100644 --- a/platformio.ini +++ b/platformio.ini @@ -14,7 +14,7 @@ upload_protocol = stlink ; Serial Port settings (make sure the COM port is correct) monitor_port = COM5 -monitor_speed = 115200 +monitor_speed = 38400 build_flags = -I${PROJECT_DIR}/inc/