diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview.json
index 1c5fc6f..cab615f 100644
--- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview.json
+++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview.json
@@ -77,7 +77,9 @@
65,
66,
67,
- 68
+ 68,
+ 69,
+ 70
],
"hierarchyUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_h_1.json",
"backingUrl":"support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_m.json"
diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.json
index 0b32576..a9d307f 100644
--- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.json
+++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.json
@@ -146,6 +146,113 @@
"finder":[
]
},
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9301",
+ "className":"Simulink.Outport",
+ "icon":"WebViewIcon3",
+ "name":"DC_phaC",
+ "label":"DC_phaC",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "Port",
+ "IconDisplay",
+ "OutMin",
+ "OutMax",
+ "OutDataTypeStr",
+ "LockScale",
+ "Unit",
+ "PortDimensions",
+ "VarSizeSig",
+ "SampleTime",
+ "SignalType",
+ "BusOutputAsStruct",
+ "EnsureOutportIsVirtual",
+ "InitialOutput",
+ "MustResolveToSignalObject",
+ "OutputWhenDisabled",
+ "OutputWhenUnConnected",
+ "OutputWhenUnconnectedValue",
+ "SignalName",
+ "SignalObject",
+ "SourceOfInitialOutputValue",
+ "StorageClass",
+ "VectorParamsAs1DForOutWhenUnconnected"
+ ],
+ "values":[
+ "3",
+ "Port number",
+ "[]",
+ "[]",
+ "Inherit: auto",
+ "off",
+ "inherit",
+ "-1",
+ "Inherit",
+ "-1",
+ "auto",
+ "off",
+ "off",
+ "[]",
+ "off",
+ "held",
+ "off",
+ "0",
+ "",
+ [
+ ],
+ "Dialog",
+ "Auto",
+ "off"
+ ],
+ "tabs":[
+ "Main",
+ "Signal Attributes",
+ "-Other"
+ ],
+ "tabs_idx":[
+ 0,
+ 2,
+ 11
+ ]
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Outport",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9441",
+ "className":"Simulink.Terminator",
+ "icon":"WebViewIcon3",
+ "name":"Terminator",
+ "label":"Terminator",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ ],
+ "values":[
+ ],
+ "tabs":[
+ ],
+ "tabs_idx":[
+ ]
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Terminator",
+ "masktype":""
+ }
+ },
{
"sid":"BLDCmotorControl_FOC_R2017b_fixdt:9306",
"className":"Simulink.Outport",
@@ -227,154 +334,54 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9305",
- "className":"Simulink.Outport",
- "icon":"WebViewIcon3",
- "name":"r_devSignal1",
- "label":"r_devSignal1",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9293",
+ "className":"Simulink.SubSystem",
+ "icon":"WebViewIcon4",
+ "name":"Model_Info",
+ "label":"Model_Info",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
- "Port",
- "IconDisplay",
- "OutMin",
- "OutMax",
- "OutDataTypeStr",
- "LockScale",
- "Unit",
- "PortDimensions",
- "VarSizeSig",
- "SampleTime",
- "SignalType",
- "BusOutputAsStruct",
- "EnsureOutportIsVirtual",
- "InitialOutput",
- "MustResolveToSignalObject",
- "OutputWhenDisabled",
- "OutputWhenUnConnected",
- "OutputWhenUnconnectedValue",
- "SignalName",
- "SignalObject",
- "SourceOfInitialOutputValue",
- "StorageClass",
- "VectorParamsAs1DForOutWhenUnconnected"
],
"values":[
- "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"
+ "jshandler":"webview/handlers/ContainerHandler"
},
"obj_viewer":[
],
"finder":{
- "blocktype":"Outport",
+ "blocktype":"SubSystem",
"masktype":""
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9303",
- "className":"Simulink.Outport",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9282",
+ "className":"Simulink.Goto",
"icon":"WebViewIcon3",
- "name":"n_mot",
- "label":"n_mot",
+ "name":"Goto8",
+ "label":"Goto8",
"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_errCode",
+ "local",
+ "Tag"
],
"tabs":[
- "Main",
- "Signal Attributes",
- "-Other"
+ "Parameter Attributes"
],
- "tabs_idx":[
- 0,
- 2,
- 11
- ]
+ "tabs_idx":0
},
"viewer":{
"jshandler":"webview/handlers/ElementHandler"
@@ -382,7 +389,40 @@
"obj_viewer":[
],
"finder":{
- "blocktype":"Outport",
+ "blocktype":"Goto",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9281",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto5",
+ "label":"Goto5",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "b_hallB",
+ "local",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Goto",
"masktype":""
}
},
@@ -467,263 +507,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9298",
- "className":"Simulink.Constant",
- "icon":"WebViewIcon3",
- "name":"z_ctrlTypSel1",
- "label":"z_ctrlTypSel1",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "Value",
- "VectorParams1D",
- "SampleTime",
- "OutMin",
- "OutMax",
- "OutDataTypeStr",
- "LockScale",
- "FramePeriod"
- ],
- "values":[
- "z_ctrlTypSel",
- "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:9669",
- "className":"Simulink.Saturate",
- "icon":"WebViewIcon3",
- "name":"Saturation2",
- "label":"Saturation2",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "UpperLimit",
- "LowerLimit",
- "LinearizeAsGain",
- "OutMin",
- "OutMax",
- "OutDataTypeStr",
- "LockScale",
- "RndMeth",
- "SampleTime",
- "ZeroCross"
- ],
- "values":[
- "1000",
- "-1000",
- "on",
- "[]",
- "[]",
- "fixdt(1,16,4)",
- "off",
- "Floor",
- "-1",
- "on"
- ],
- "tabs":[
- "Main",
- "Signal Attributes",
- "-Other"
- ],
- "tabs_idx":[
- 0,
- 3,
- 8
- ]
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Saturate",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9293",
- "className":"Simulink.SubSystem",
- "icon":"WebViewIcon4",
- "name":"Model_Info",
- "label":"Model_Info",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- ],
- "values":[
- ],
- "tabs":[
- ],
- "tabs_idx":[
- ]
- },
- "viewer":{
- "jshandler":"webview/handlers/ContainerHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"SubSystem",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9304",
- "className":"Simulink.Outport",
- "icon":"WebViewIcon3",
- "name":"a_elecAngle",
- "label":"a_elecAngle",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "Port",
- "IconDisplay",
- "OutMin",
- "OutMax",
- "OutDataTypeStr",
- "LockScale",
- "Unit",
- "PortDimensions",
- "VarSizeSig",
- "SampleTime",
- "SignalType",
- "BusOutputAsStruct",
- "EnsureOutportIsVirtual",
- "InitialOutput",
- "MustResolveToSignalObject",
- "OutputWhenDisabled",
- "OutputWhenUnConnected",
- "OutputWhenUnconnectedValue",
- "SignalName",
- "SignalObject",
- "SourceOfInitialOutputValue",
- "StorageClass",
- "VectorParamsAs1DForOutWhenUnconnected"
- ],
- "values":[
- "6",
- "Port number",
- "[]",
- "[]",
- "Inherit: auto",
- "off",
- "inherit",
- "-1",
- "Inherit",
- "-1",
- "auto",
- "off",
- "off",
- "[]",
- "off",
- "held",
- "off",
- "0",
- "",
- [
- ],
- "Dialog",
- "Auto",
- "off"
- ],
- "tabs":[
- "Main",
- "Signal Attributes",
- "-Other"
- ],
- "tabs_idx":[
- 0,
- 2,
- 11
- ]
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Outport",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9291",
- "className":"Simulink.If",
- "icon":"WebViewIcon3",
- "name":"If2",
- "label":"If2",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "NumInputs",
- "IfExpression",
- "ElseIfExpressions",
- "ShowElse",
- "SampleTime",
- "ZeroCross"
- ],
- "values":[
- "1",
- "u1 ~= 0",
- "",
- "off",
- "-1",
- "on"
- ],
- "tabs":[
- "Parameter Attributes",
- "-Other"
- ],
- "tabs_idx":[
- 0,
- 4
- ]
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"If",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9389",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9280",
"className":"Simulink.Goto",
"icon":"WebViewIcon3",
- "name":"Goto6",
- "label":"Goto6",
+ "name":"Goto4",
+ "label":"Goto4",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -732,40 +520,7 @@
"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:9289",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto28",
- "label":"Goto28",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "b_motEna",
+ "z_posRaw",
"local",
"Tag"
],
@@ -818,11 +573,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9284",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9286",
"className":"Simulink.Goto",
"icon":"WebViewIcon3",
- "name":"Goto9",
- "label":"Goto9",
+ "name":"Goto25",
+ "label":"Goto25",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -831,7 +586,7 @@
"IconDisplay"
],
"values":[
- "b_hallC",
+ "DC_phaC",
"local",
"Tag"
],
@@ -851,11 +606,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9281",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9285",
"className":"Simulink.Goto",
"icon":"WebViewIcon3",
- "name":"Goto5",
- "label":"Goto5",
+ "name":"Goto24",
+ "label":"Goto24",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -864,7 +619,7 @@
"IconDisplay"
],
"values":[
- "b_hallB",
+ "DC_phaB",
"local",
"Tag"
],
@@ -884,11 +639,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9283",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9272",
"className":"Simulink.Goto",
"icon":"WebViewIcon3",
- "name":"Goto23",
- "label":"Goto23",
+ "name":"Goto2",
+ "label":"Goto2",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -897,7 +652,40 @@
"IconDisplay"
],
"values":[
- "z_pos",
+ "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:9277",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto16",
+ "label":"Goto16",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_ctrlModReq",
"local",
"Tag"
],
@@ -983,11 +771,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9277",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9456",
"className":"Simulink.Goto",
"icon":"WebViewIcon3",
- "name":"Goto16",
- "label":"Goto16",
+ "name":"Goto12",
+ "label":"Goto12",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -996,73 +784,7 @@
"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:9270",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto1",
- "label":"Goto1",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "b_hallA",
- "local",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Goto",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9269",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto",
- "label":"Goto",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "r_inpTgt",
+ "VqFinPrev",
"local",
"Tag"
],
@@ -1115,11 +837,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9252",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9392",
"className":"Simulink.From",
"icon":"WebViewIcon3",
- "name":"From8",
- "label":"From8",
+ "name":"From9",
+ "label":"From9",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -1127,7 +849,7 @@
"IconDisplay"
],
"values":[
- "b_hallA",
+ "z_ctrlModReq",
"Tag"
],
"tabs":[
@@ -1176,70 +898,6 @@
"masktype":""
}
},
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9250",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From6",
- "label":"From6",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "z_ctrlTypSel",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9274",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto13",
- "label":"Goto13",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "i_phaAB",
- "local",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Goto",
- "masktype":""
- }
- },
{
"sid":"BLDCmotorControl_FOC_R2017b_fixdt:9297",
"className":"Simulink.Constant",
@@ -1290,102 +948,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9263",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9241",
"className":"Simulink.From",
"icon":"WebViewIcon3",
- "name":"From46",
- "label":"From46",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "r_devSignal1",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9441",
- "className":"Simulink.Terminator",
- "icon":"WebViewIcon3",
- "name":"Terminator",
- "label":"Terminator",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- ],
- "values":[
- ],
- "tabs":[
- ],
- "tabs_idx":[
- ]
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Terminator",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9271",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto10",
- "label":"Goto10",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "r_devSignal1",
- "local",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Goto",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9268",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From35",
- "label":"From35",
+ "name":"From5",
+ "label":"From5",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -1412,25 +979,37 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9265",
- "className":"Simulink.From",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9290",
+ "className":"Simulink.If",
"icon":"WebViewIcon3",
- "name":"From32",
- "label":"From32",
+ "name":"If1",
+ "label":"If1",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
- "GotoTag",
- "IconDisplay"
+ "NumInputs",
+ "IfExpression",
+ "ElseIfExpressions",
+ "ShowElse",
+ "SampleTime",
+ "ZeroCross"
],
"values":[
- "DC_phaB",
- "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"
@@ -1438,16 +1017,16 @@
"obj_viewer":[
],
"finder":{
- "blocktype":"From",
+ "blocktype":"If",
"masktype":""
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9287",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9389",
"className":"Simulink.Goto",
"icon":"WebViewIcon3",
- "name":"Goto26",
- "label":"Goto26",
+ "name":"Goto6",
+ "label":"Goto6",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -1456,7 +1035,7 @@
"IconDisplay"
],
"values":[
- "DC_phaA",
+ "r_inpTgtSca",
"local",
"Tag"
],
@@ -1476,44 +1055,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9286",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto25",
- "label":"Goto25",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "DC_phaC",
- "local",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Goto",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9264",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9263",
"className":"Simulink.From",
"icon":"WebViewIcon3",
- "name":"From31",
- "label":"From31",
+ "name":"From46",
+ "label":"From46",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -1521,69 +1067,7 @@
"IconDisplay"
],
"values":[
- "DC_phaA",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:9674",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From3",
- "label":"From3",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "r_inpTgt",
+ "r_devSignal1",
"Tag"
],
"tabs":[
@@ -1633,11 +1117,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9261",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9268",
"className":"Simulink.From",
"icon":"WebViewIcon3",
- "name":"From29",
- "label":"From29",
+ "name":"From35",
+ "label":"From35",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -1645,7 +1129,7 @@
"IconDisplay"
],
"values":[
- "b_hallC",
+ "n_mot",
"Tag"
],
"tabs":[
@@ -1664,11 +1148,73 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9301",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9267",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From34",
+ "label":"From34",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "a_elecAngle",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9265",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From32",
+ "label":"From32",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "DC_phaB",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9304",
"className":"Simulink.Outport",
"icon":"WebViewIcon3",
- "name":"DC_phaC",
- "label":"DC_phaC",
+ "name":"a_elecAngle",
+ "label":"a_elecAngle",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -1697,7 +1243,7 @@
"VectorParamsAs1DForOutWhenUnconnected"
],
"values":[
- "3",
+ "6",
"Port number",
"[]",
"[]",
@@ -1743,6 +1289,68 @@
"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:9261",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From29",
+ "label":"From29",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "b_hallC",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
{
"sid":"BLDCmotorControl_FOC_R2017b_fixdt:9258",
"className":"Simulink.From",
@@ -1774,6 +1382,37 @@
"masktype":""
}
},
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9264",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From31",
+ "label":"From31",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "DC_phaA",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
{
"sid":"BLDCmotorControl_FOC_R2017b_fixdt:9257",
"className":"Simulink.From",
@@ -1805,6 +1444,593 @@
"masktype":""
}
},
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9284",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto9",
+ "label":"Goto9",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "b_hallC",
+ "local",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Goto",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9279",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto3",
+ "label":"Goto3",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_ctrlTypSel",
+ "local",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Goto",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9387",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From24",
+ "label":"From24",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "r_inpTgtSca",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9253",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From22",
+ "label":"From22",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "a_elecAngle",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9298",
+ "className":"Simulink.Constant",
+ "icon":"WebViewIcon3",
+ "name":"z_ctrlTypSel1",
+ "label":"z_ctrlTypSel1",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "Value",
+ "VectorParams1D",
+ "SampleTime",
+ "OutMin",
+ "OutMax",
+ "OutDataTypeStr",
+ "LockScale",
+ "FramePeriod"
+ ],
+ "values":[
+ "z_ctrlTypSel",
+ "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:9249",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From17",
+ "label":"From17",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "n_motAbs",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9248",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From16",
+ "label":"From16",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_ctrlModReq",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9448",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From15",
+ "label":"From15",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "VqFinPrev",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9720",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From11",
+ "label":"From11",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "b_motEna",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9244",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From12",
+ "label":"From12",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "i_phaAB",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9240",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From1",
+ "label":"From1",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_posRaw",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9294",
+ "className":"Simulink.Saturate",
+ "icon":"WebViewIcon3",
+ "name":"Saturation",
+ "label":"Saturation",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "UpperLimit",
+ "LowerLimit",
+ "LinearizeAsGain",
+ "OutMin",
+ "OutMax",
+ "OutDataTypeStr",
+ "LockScale",
+ "RndMeth",
+ "SampleTime",
+ "ZeroCross"
+ ],
+ "values":[
+ "2000",
+ "-2000",
+ "on",
+ "[]",
+ "[]",
+ "fixdt(1,16,4)",
+ "off",
+ "Floor",
+ "-1",
+ "on"
+ ],
+ "tabs":[
+ "Main",
+ "Signal Attributes",
+ "-Other"
+ ],
+ "tabs_idx":[
+ 0,
+ 3,
+ 8
+ ]
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Saturate",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9252",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From8",
+ "label":"From8",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "b_hallA",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9385",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From",
+ "label":"From",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "r_inpTgt",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9291",
+ "className":"Simulink.If",
+ "icon":"WebViewIcon3",
+ "name":"If2",
+ "label":"If2",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "NumInputs",
+ "IfExpression",
+ "ElseIfExpressions",
+ "ShowElse",
+ "SampleTime",
+ "ZeroCross"
+ ],
+ "values":[
+ "1",
+ "u1 ~= 0",
+ "",
+ "off",
+ "-1",
+ "on"
+ ],
+ "tabs":[
+ "Parameter Attributes",
+ "-Other"
+ ],
+ "tabs_idx":[
+ 0,
+ 4
+ ]
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"If",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9274",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto13",
+ "label":"Goto13",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "i_phaAB",
+ "local",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Goto",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9289",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto28",
+ "label":"Goto28",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "b_motEna",
+ "local",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Goto",
+ "masktype":""
+ }
+ },
{
"sid":"BLDCmotorControl_FOC_R2017b_fixdt:9436",
"className":"Simulink.From",
@@ -1836,6 +2062,37 @@
"masktype":""
}
},
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9245",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From13",
+ "label":"From13",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "i_phaBC",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
{
"sid":"BLDCmotorControl_FOC_R2017b_fixdt:9292",
"className":"Simulink.SubSystem",
@@ -1930,36 +2187,127 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9294",
- "className":"Simulink.Saturate",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9287",
+ "className":"Simulink.Goto",
"icon":"WebViewIcon3",
- "name":"Saturation",
- "label":"Saturation",
+ "name":"Goto26",
+ "label":"Goto26",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
- "UpperLimit",
- "LowerLimit",
- "LinearizeAsGain",
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "DC_phaA",
+ "local",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Goto",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:9300",
+ "className":"Simulink.Outport",
+ "icon":"WebViewIcon3",
+ "name":"DC_phaB",
+ "label":"DC_phaB",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "Port",
+ "IconDisplay",
"OutMin",
"OutMax",
"OutDataTypeStr",
"LockScale",
- "RndMeth",
+ "Unit",
+ "PortDimensions",
+ "VarSizeSig",
"SampleTime",
- "ZeroCross"
+ "SignalType",
+ "BusOutputAsStruct",
+ "EnsureOutportIsVirtual",
+ "InitialOutput",
+ "MustResolveToSignalObject",
+ "OutputWhenDisabled",
+ "OutputWhenUnConnected",
+ "OutputWhenUnconnectedValue",
+ "SignalName",
+ "SignalObject",
+ "SourceOfInitialOutputValue",
+ "StorageClass",
+ "VectorParamsAs1DForOutWhenUnconnected"
],
"values":[
- "2000",
- "-2000",
- "on",
+ "2",
+ "Port number",
"[]",
"[]",
- "fixdt(1,16,4)",
+ "Inherit: auto",
"off",
- "Floor",
+ "inherit",
"-1",
- "on"
+ "Inherit",
+ "-1",
+ "auto",
+ "off",
+ "off",
+ "[]",
+ "off",
+ "held",
+ "off",
+ "0",
+ "",
+ [
+ ],
+ "Dialog",
+ "Auto",
+ "off"
],
"tabs":[
"Main",
@@ -1968,8 +2316,8 @@
],
"tabs_idx":[
0,
- 3,
- 8
+ 2,
+ 11
]
},
"viewer":{
@@ -1978,24 +2326,224 @@
"obj_viewer":[
],
"finder":{
- "blocktype":"Saturate",
+ "blocktype":"Outport",
"masktype":""
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9249",
- "className":"Simulink.From",
+ "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",
+ "PropExecContextOutsideSubsystem",
+ "RTWSystemCode",
+ "ActiveVariant",
+ "ActiveVariantBlock",
+ "AllowZeroVariantControls",
+ "BlockChoice",
+ "FunctionInterfaceSpec",
+ "FunctionWithSeparateData",
+ "GeneratePreprocessorConditionals",
+ "IsSubsystemVirtual",
+ "MemberBlocks",
+ "MinAlgLoopOccurrences",
+ "OverrideUsingVariant",
+ "PropagateVariantConditions",
+ "RTWFcnName",
+ "RTWFcnNameOpts",
+ "RTWFileName",
+ "RTWFileNameOpts",
+ "RTWMemSecDataConstants",
+ "RTWMemSecDataInternal",
+ "RTWMemSecDataParameters",
+ "RTWMemSecFuncExecute",
+ "RTWMemSecFuncInitTerm",
+ "SystemSampleTime",
+ "TemplateBlock",
+ "TreatAsAtomicUnit",
+ "TreatAsGroupedWhenPropagatingVariantConditions",
+ "Variant",
+ "VariantControl"
+ ],
+ "values":[
+ "FromPortIcon",
+ "ReadWrite",
+ "",
+ "All",
+ "off",
+ "Auto",
+ "",
+ "",
+ "off",
+ "",
+ "void_void",
+ "off",
+ "off",
+ "off",
+ "",
+ "off",
+ "",
+ "off",
+ "",
+ "Auto",
+ "",
+ "Auto",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "-1",
+ "",
+ "off",
+ "on",
+ "off",
+ ""
+ ],
+ "tabs":[
+ "Main",
+ "Code Generation",
+ "-Other"
+ ],
+ "tabs_idx":[
+ 0,
+ 5,
+ 6
+ ]
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ContainerHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"SubSystem",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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",
+ "PropExecContextOutsideSubsystem",
+ "RTWSystemCode",
+ "ActiveVariant",
+ "ActiveVariantBlock",
+ "AllowZeroVariantControls",
+ "BlockChoice",
+ "FunctionInterfaceSpec",
+ "FunctionWithSeparateData",
+ "GeneratePreprocessorConditionals",
+ "IsSubsystemVirtual",
+ "MemberBlocks",
+ "MinAlgLoopOccurrences",
+ "OverrideUsingVariant",
+ "PropagateVariantConditions",
+ "RTWFcnName",
+ "RTWFcnNameOpts",
+ "RTWFileName",
+ "RTWFileNameOpts",
+ "RTWMemSecDataConstants",
+ "RTWMemSecDataInternal",
+ "RTWMemSecDataParameters",
+ "RTWMemSecFuncExecute",
+ "RTWMemSecFuncInitTerm",
+ "SystemSampleTime",
+ "TemplateBlock",
+ "TreatAsAtomicUnit",
+ "TreatAsGroupedWhenPropagatingVariantConditions",
+ "Variant",
+ "VariantControl"
+ ],
+ "values":[
+ "FromPortIcon",
+ "ReadWrite",
+ "",
+ "All",
+ "off",
+ "Auto",
+ "",
+ "",
+ "off",
+ "",
+ "void_void",
+ "off",
+ "off",
+ "on",
+ "",
+ "off",
+ "",
+ "off",
+ "",
+ "Auto",
+ "",
+ "Auto",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "-1",
+ "",
+ "off",
+ "on",
+ "off",
+ ""
+ ],
+ "tabs":[
+ "Main",
+ "Code Generation",
+ "-Other"
+ ],
+ "tabs_idx":[
+ 0,
+ 5,
+ 6
+ ]
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ContainerHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"SubSystem",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9278",
+ "className":"Simulink.Goto",
"icon":"WebViewIcon3",
- "name":"From17",
- "label":"From17",
+ "name":"Goto17",
+ "label":"Goto17",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
"GotoTag",
+ "TagVisibility",
"IconDisplay"
],
"values":[
"n_motAbs",
+ "local",
"Tag"
],
"tabs":[
@@ -2009,38 +2557,106 @@
"obj_viewer":[
],
"finder":{
- "blocktype":"From",
+ "blocktype":"Goto",
"masktype":""
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9448",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From15",
- "label":"From15",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198",
+ "className":"Simulink.SubSystem",
+ "icon":"WebViewIcon1",
+ "name":"F05_Control_Type_Management",
+ "label":"F05_Control_Type_Management",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
- "GotoTag",
- "IconDisplay"
+ "ShowPortLabels",
+ "Permissions",
+ "ErrorFcn",
+ "PermitHierarchicalResolution",
+ "PropExecContextOutsideSubsystem",
+ "RTWSystemCode",
+ "ActiveVariant",
+ "ActiveVariantBlock",
+ "AllowZeroVariantControls",
+ "BlockChoice",
+ "FunctionInterfaceSpec",
+ "FunctionWithSeparateData",
+ "GeneratePreprocessorConditionals",
+ "IsSubsystemVirtual",
+ "MemberBlocks",
+ "MinAlgLoopOccurrences",
+ "OverrideUsingVariant",
+ "PropagateVariantConditions",
+ "RTWFcnName",
+ "RTWFcnNameOpts",
+ "RTWFileName",
+ "RTWFileNameOpts",
+ "RTWMemSecDataConstants",
+ "RTWMemSecDataInternal",
+ "RTWMemSecDataParameters",
+ "RTWMemSecFuncExecute",
+ "RTWMemSecFuncInitTerm",
+ "SystemSampleTime",
+ "TemplateBlock",
+ "TreatAsAtomicUnit",
+ "TreatAsGroupedWhenPropagatingVariantConditions",
+ "Variant",
+ "VariantControl"
],
"values":[
- "VqFinPrev",
- "Tag"
+ "FromPortIcon",
+ "ReadWrite",
+ "",
+ "All",
+ "off",
+ "Auto",
+ "",
+ "",
+ "off",
+ "",
+ "void_void",
+ "off",
+ "off",
+ "on",
+ "",
+ "off",
+ "",
+ "off",
+ "",
+ "Auto",
+ "",
+ "Auto",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "-1",
+ "",
+ "off",
+ "on",
+ "off",
+ ""
],
"tabs":[
- "Parameter Attributes"
+ "Main",
+ "Code Generation",
+ "-Other"
],
- "tabs_idx":0
+ "tabs_idx":[
+ 0,
+ 5,
+ 6
+ ]
},
"viewer":{
- "jshandler":"webview/handlers/ElementHandler"
+ "jshandler":"webview/handlers/ContainerHandler"
},
"obj_viewer":[
],
"finder":{
- "blocktype":"From",
+ "blocktype":"SubSystem",
"masktype":""
}
},
@@ -2125,44 +2741,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9285",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto24",
- "label":"Goto24",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "DC_phaB",
- "local",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Goto",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9244",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9266",
"className":"Simulink.From",
"icon":"WebViewIcon3",
- "name":"From12",
- "label":"From12",
+ "name":"From33",
+ "label":"From33",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -2170,7 +2753,7 @@
"IconDisplay"
],
"values":[
- "i_phaAB",
+ "DC_phaC",
"Tag"
],
"tabs":[
@@ -2188,336 +2771,6 @@
"masktype":""
}
},
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9241",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From5",
- "label":"From5",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "n_mot",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9240",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From1",
- "label":"From1",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "z_posRaw",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9198",
- "className":"Simulink.SubSystem",
- "icon":"WebViewIcon1",
- "name":"F05_Control_Type_Management",
- "label":"F05_Control_Type_Management",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "ShowPortLabels",
- "Permissions",
- "ErrorFcn",
- "PermitHierarchicalResolution",
- "TreatAsAtomicUnit",
- "TreatAsGroupedWhenPropagatingVariantConditions",
- "ActiveVariant",
- "ActiveVariantBlock",
- "AllowZeroVariantControls",
- "BlockChoice",
- "FunctionInterfaceSpec",
- "FunctionWithSeparateData",
- "GeneratePreprocessorConditionals",
- "IsSubsystemVirtual",
- "MemberBlocks",
- "MinAlgLoopOccurrences",
- "OverrideUsingVariant",
- "PropExecContextOutsideSubsystem",
- "PropagateVariantConditions",
- "RTWFcnName",
- "RTWFcnNameOpts",
- "RTWFileName",
- "RTWFileNameOpts",
- "RTWMemSecDataConstants",
- "RTWMemSecDataInternal",
- "RTWMemSecDataParameters",
- "RTWMemSecFuncExecute",
- "RTWMemSecFuncInitTerm",
- "RTWSystemCode",
- "SystemSampleTime",
- "TemplateBlock",
- "Variant",
- "VariantControl"
- ],
- "values":[
- "FromPortIcon",
- "ReadWrite",
- "",
- "All",
- "off",
- "on",
- "",
- "",
- "off",
- "",
- "void_void",
- "off",
- "off",
- "on",
- "",
- "off",
- "",
- "off",
- "off",
- "",
- "Auto",
- "",
- "Auto",
- "Inherit from model",
- "Inherit from model",
- "Inherit from model",
- "Inherit from model",
- "Inherit from model",
- "Auto",
- "-1",
- "",
- "off",
- ""
- ],
- "tabs":[
- "Main",
- "-Other"
- ],
- "tabs_idx":[
- 0,
- 6
- ]
- },
- "viewer":{
- "jshandler":"webview/handlers/ContainerHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"SubSystem",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9245",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From13",
- "label":"From13",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "i_phaBC",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9290",
- "className":"Simulink.If",
- "icon":"WebViewIcon3",
- "name":"If1",
- "label":"If1",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "NumInputs",
- "IfExpression",
- "ElseIfExpressions",
- "ShowElse",
- "SampleTime",
- "ZeroCross"
- ],
- "values":[
- "1",
- "u1 ~= CTRL_COM",
- "",
- "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: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",
- "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:9388",
"className":"Simulink.From",
@@ -2550,11 +2803,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9262",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9250",
"className":"Simulink.From",
"icon":"WebViewIcon3",
- "name":"From45",
- "label":"From45",
+ "name":"From6",
+ "label":"From6",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -2562,7 +2815,7 @@
"IconDisplay"
],
"values":[
- "r_devSignal2",
+ "z_ctrlTypSel",
"Tag"
],
"tabs":[
@@ -2581,126 +2834,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9253",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From22",
- "label":"From22",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "a_elecAngle",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:9295",
- "className":"Simulink.Saturate",
- "icon":"WebViewIcon3",
- "name":"Saturation1",
- "label":"Saturation1",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "UpperLimit",
- "LowerLimit",
- "LinearizeAsGain",
- "OutMin",
- "OutMax",
- "OutDataTypeStr",
- "LockScale",
- "RndMeth",
- "SampleTime",
- "ZeroCross"
- ],
- "values":[
- "2000",
- "-2000",
- "on",
- "[]",
- "[]",
- "fixdt(1,16,4)",
- "off",
- "Floor",
- "-1",
- "on"
- ],
- "tabs":[
- "Main",
- "Signal Attributes",
- "-Other"
- ],
- "tabs_idx":[
- 0,
- 3,
- 8
- ]
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Saturate",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9280",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9269",
"className":"Simulink.Goto",
"icon":"WebViewIcon3",
- "name":"Goto4",
- "label":"Goto4",
+ "name":"Goto",
+ "label":"Goto",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -2709,7 +2847,7 @@
"IconDisplay"
],
"values":[
- "z_posRaw",
+ "r_inpTgt",
"local",
"Tag"
],
@@ -2728,6 +2866,105 @@
"masktype":""
}
},
+ {
+ "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":[
+ "ShowPortLabels",
+ "Permissions",
+ "ErrorFcn",
+ "PermitHierarchicalResolution",
+ "PropExecContextOutsideSubsystem",
+ "RTWSystemCode",
+ "ActiveVariant",
+ "ActiveVariantBlock",
+ "AllowZeroVariantControls",
+ "BlockChoice",
+ "FunctionInterfaceSpec",
+ "FunctionWithSeparateData",
+ "GeneratePreprocessorConditionals",
+ "IsSubsystemVirtual",
+ "MemberBlocks",
+ "MinAlgLoopOccurrences",
+ "OverrideUsingVariant",
+ "PropagateVariantConditions",
+ "RTWFcnName",
+ "RTWFcnNameOpts",
+ "RTWFileName",
+ "RTWFileNameOpts",
+ "RTWMemSecDataConstants",
+ "RTWMemSecDataInternal",
+ "RTWMemSecDataParameters",
+ "RTWMemSecFuncExecute",
+ "RTWMemSecFuncInitTerm",
+ "SystemSampleTime",
+ "TemplateBlock",
+ "TreatAsAtomicUnit",
+ "TreatAsGroupedWhenPropagatingVariantConditions",
+ "Variant",
+ "VariantControl"
+ ],
+ "values":[
+ "FromPortIcon",
+ "ReadWrite",
+ "",
+ "All",
+ "off",
+ "Auto",
+ "",
+ "",
+ "off",
+ "",
+ "void_void",
+ "off",
+ "off",
+ "off",
+ "",
+ "off",
+ "",
+ "off",
+ "",
+ "Auto",
+ "",
+ "Auto",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "-1",
+ "",
+ "off",
+ "on",
+ "off",
+ ""
+ ],
+ "tabs":[
+ "Main",
+ "Code Generation",
+ "-Other"
+ ],
+ "tabs_idx":[
+ 0,
+ 5,
+ 6
+ ]
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ContainerHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"SubSystem",
+ "masktype":""
+ }
+ },
{
"sid":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
"className":"Simulink.SubSystem",
@@ -2741,8 +2978,8 @@
"Permissions",
"ErrorFcn",
"PermitHierarchicalResolution",
- "TreatAsAtomicUnit",
- "TreatAsGroupedWhenPropagatingVariantConditions",
+ "PropExecContextOutsideSubsystem",
+ "RTWSystemCode",
"ActiveVariant",
"ActiveVariantBlock",
"AllowZeroVariantControls",
@@ -2754,7 +2991,6 @@
"MemberBlocks",
"MinAlgLoopOccurrences",
"OverrideUsingVariant",
- "PropExecContextOutsideSubsystem",
"PropagateVariantConditions",
"RTWFcnName",
"RTWFcnNameOpts",
@@ -2765,9 +3001,10 @@
"RTWMemSecDataParameters",
"RTWMemSecFuncExecute",
"RTWMemSecFuncInitTerm",
- "RTWSystemCode",
"SystemSampleTime",
"TemplateBlock",
+ "TreatAsAtomicUnit",
+ "TreatAsGroupedWhenPropagatingVariantConditions",
"Variant",
"VariantControl"
],
@@ -2777,7 +3014,7 @@
"",
"All",
"off",
- "on",
+ "Auto",
"",
"",
"off",
@@ -2790,7 +3027,6 @@
"off",
"",
"off",
- "off",
"",
"Auto",
"",
@@ -2800,18 +3036,21 @@
"Inherit from model",
"Inherit from model",
"Inherit from model",
- "Auto",
"-1",
"",
"off",
+ "on",
+ "off",
""
],
"tabs":[
"Main",
+ "Code Generation",
"-Other"
],
"tabs_idx":[
0,
+ 5,
6
]
},
@@ -2825,70 +3064,6 @@
"masktype":""
}
},
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9278",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto17",
- "label":"Goto17",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "n_motAbs",
- "local",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Goto",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9259",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From27",
- "label":"From27",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "b_hallB",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
{
"sid":"BLDCmotorControl_FOC_R2017b_fixdt:8217",
"className":"Simulink.DataTypeConversion",
@@ -2937,25 +3112,41 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9385",
- "className":"Simulink.From",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8216",
+ "className":"Simulink.DataTypeConversion",
"icon":"WebViewIcon3",
- "name":"From",
- "label":"From",
+ "name":"Data Type Conversion6",
+ "label":"Data Type Conversion6",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
- "GotoTag",
- "IconDisplay"
+ "OutMin",
+ "OutMax",
+ "OutDataTypeStr",
+ "LockScale",
+ "ConvertRealWorld",
+ "RndMeth",
+ "SaturateOnIntegerOverflow",
+ "SampleTime"
],
"values":[
- "r_inpTgt",
- "Tag"
+ "[]",
+ "[]",
+ "int16",
+ "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"
@@ -2963,7 +3154,7 @@
"obj_viewer":[
],
"finder":{
- "blocktype":"From",
+ "blocktype":"DataTypeConversion",
"masktype":""
}
},
@@ -3015,73 +3206,73 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9279",
- "className":"Simulink.Goto",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9303",
+ "className":"Simulink.Outport",
"icon":"WebViewIcon3",
- "name":"Goto3",
- "label":"Goto3",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "z_ctrlTypSel",
- "local",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Goto",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8213",
- "className":"Simulink.DataTypeConversion",
- "icon":"WebViewIcon3",
- "name":"Data Type Conversion3",
- "label":"Data Type Conversion3",
+ "name":"n_mot",
+ "label":"n_mot",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
+ "Port",
+ "IconDisplay",
"OutMin",
"OutMax",
"OutDataTypeStr",
"LockScale",
- "ConvertRealWorld",
- "RndMeth",
- "SaturateOnIntegerOverflow",
- "SampleTime"
+ "Unit",
+ "PortDimensions",
+ "VarSizeSig",
+ "SampleTime",
+ "SignalType",
+ "BusOutputAsStruct",
+ "EnsureOutportIsVirtual",
+ "InitialOutput",
+ "MustResolveToSignalObject",
+ "OutputWhenDisabled",
+ "OutputWhenUnConnected",
+ "OutputWhenUnconnectedValue",
+ "SignalName",
+ "SignalObject",
+ "SourceOfInitialOutputValue",
+ "StorageClass",
+ "VectorParamsAs1DForOutWhenUnconnected"
],
"values":[
+ "5",
+ "Port number",
"[]",
"[]",
- "int16",
+ "Inherit: auto",
"off",
- "Real World Value (RWV)",
- "Floor",
+ "inherit",
+ "-1",
+ "Inherit",
+ "-1",
+ "auto",
"off",
- "-1"
+ "off",
+ "[]",
+ "off",
+ "held",
+ "off",
+ "0",
+ "",
+ [
+ ],
+ "Dialog",
+ "Auto",
+ "off"
],
"tabs":[
- "Parameter Attributes",
+ "Main",
+ "Signal Attributes",
"-Other"
],
"tabs_idx":[
0,
- 7
+ 2,
+ 11
]
},
"viewer":{
@@ -3090,7 +3281,7 @@
"obj_viewer":[
],
"finder":{
- "blocktype":"DataTypeConversion",
+ "blocktype":"Outport",
"masktype":""
}
},
@@ -3189,11 +3380,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8218",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8213",
"className":"Simulink.DataTypeConversion",
"icon":"WebViewIcon3",
- "name":"Data Type Conversion8",
- "label":"Data Type Conversion8",
+ "name":"Data Type Conversion3",
+ "label":"Data Type Conversion3",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -3235,410 +3426,6 @@
"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:8658",
- "className":"Simulink.SubSystem",
- "icon":"WebViewIcon1",
- "name":"F04_Field_Oriented_Control",
- "label":"F04_Field_Oriented_Control",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "ShowPortLabels",
- "Permissions",
- "ErrorFcn",
- "PermitHierarchicalResolution",
- "TreatAsAtomicUnit",
- "TreatAsGroupedWhenPropagatingVariantConditions",
- "ActiveVariant",
- "ActiveVariantBlock",
- "AllowZeroVariantControls",
- "BlockChoice",
- "FunctionInterfaceSpec",
- "FunctionWithSeparateData",
- "GeneratePreprocessorConditionals",
- "IsSubsystemVirtual",
- "MemberBlocks",
- "MinAlgLoopOccurrences",
- "OverrideUsingVariant",
- "PropExecContextOutsideSubsystem",
- "PropagateVariantConditions",
- "RTWFcnName",
- "RTWFcnNameOpts",
- "RTWFileName",
- "RTWFileNameOpts",
- "RTWMemSecDataConstants",
- "RTWMemSecDataInternal",
- "RTWMemSecDataParameters",
- "RTWMemSecFuncExecute",
- "RTWMemSecFuncInitTerm",
- "RTWSystemCode",
- "SystemSampleTime",
- "TemplateBlock",
- "Variant",
- "VariantControl"
- ],
- "values":[
- "FromPortIcon",
- "ReadWrite",
- "",
- "All",
- "off",
- "on",
- "",
- "",
- "off",
- "",
- "void_void",
- "off",
- "off",
- "off",
- "",
- "off",
- "",
- "off",
- "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:9456",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto12",
- "label":"Goto12",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "VqFinPrev",
- "local",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Goto",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:9387",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From24",
- "label":"From24",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "r_inpTgtSca",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9248",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From16",
- "label":"From16",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "z_ctrlModReq",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:9392",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From9",
- "label":"From9",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "z_ctrlModPrev",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
{
"sid":"BLDCmotorControl_FOC_R2017b_fixdt:8211",
"className":"Simulink.DataTypeConversion",
@@ -3686,6 +3473,159 @@
"masktype":""
}
},
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9283",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto23",
+ "label":"Goto23",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_pos",
+ "local",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Goto",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9669",
+ "className":"Simulink.Saturate",
+ "icon":"WebViewIcon3",
+ "name":"Saturation2",
+ "label":"Saturation2",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "UpperLimit",
+ "LowerLimit",
+ "LinearizeAsGain",
+ "OutMin",
+ "OutMax",
+ "OutDataTypeStr",
+ "LockScale",
+ "RndMeth",
+ "SampleTime",
+ "ZeroCross"
+ ],
+ "values":[
+ "1000",
+ "-1000",
+ "on",
+ "[]",
+ "[]",
+ "fixdt(1,16,4)",
+ "off",
+ "Floor",
+ "-1",
+ "on"
+ ],
+ "tabs":[
+ "Main",
+ "Signal Attributes",
+ "-Other"
+ ],
+ "tabs_idx":[
+ 0,
+ 3,
+ 8
+ ]
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Saturate",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8209",
+ "className":"Simulink.Inport",
+ "icon":"WebViewIcon3",
+ "name":"i_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",
@@ -3821,124 +3761,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9393",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto7",
- "label":"Goto7",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "z_ctrlModPrev",
- "local",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Goto",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9300",
- "className":"Simulink.Outport",
- "icon":"WebViewIcon3",
- "name":"DC_phaB",
- "label":"DC_phaB",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "Port",
- "IconDisplay",
- "OutMin",
- "OutMax",
- "OutDataTypeStr",
- "LockScale",
- "Unit",
- "PortDimensions",
- "VarSizeSig",
- "SampleTime",
- "SignalType",
- "BusOutputAsStruct",
- "EnsureOutportIsVirtual",
- "InitialOutput",
- "MustResolveToSignalObject",
- "OutputWhenDisabled",
- "OutputWhenUnConnected",
- "OutputWhenUnconnectedValue",
- "SignalName",
- "SignalObject",
- "SourceOfInitialOutputValue",
- "StorageClass",
- "VectorParamsAs1DForOutWhenUnconnected"
- ],
- "values":[
- "2",
- "Port number",
- "[]",
- "[]",
- "Inherit: auto",
- "off",
- "inherit",
- "-1",
- "Inherit",
- "-1",
- "auto",
- "off",
- "off",
- "[]",
- "off",
- "held",
- "off",
- "0",
- "",
- [
- ],
- "Dialog",
- "Auto",
- "off"
- ],
- "tabs":[
- "Main",
- "Signal Attributes",
- "-Other"
- ],
- "tabs_idx":[
- 0,
- 2,
- 11
- ]
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Outport",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9266",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9259",
"className":"Simulink.From",
"icon":"WebViewIcon3",
- "name":"From33",
- "label":"From33",
+ "name":"From27",
+ "label":"From27",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -3946,7 +3773,7 @@
"IconDisplay"
],
"values":[
- "DC_phaC",
+ "b_hallB",
"Tag"
],
"tabs":[
@@ -3964,103 +3791,6 @@
"masktype":""
}
},
- {
- "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":[
- "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",
@@ -4129,11 +3859,58 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9272",
+ "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:9270",
"className":"Simulink.Goto",
"icon":"WebViewIcon3",
- "name":"Goto2",
- "label":"Goto2",
+ "name":"Goto1",
+ "label":"Goto1",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -4142,7 +3919,240 @@
"IconDisplay"
],
"values":[
- "r_devSignal2",
+ "b_hallA",
+ "local",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Goto",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:9305",
+ "className":"Simulink.Outport",
+ "icon":"WebViewIcon3",
+ "name":"r_devSignal1",
+ "label":"r_devSignal1",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "Port",
+ "IconDisplay",
+ "OutMin",
+ "OutMax",
+ "OutDataTypeStr",
+ "LockScale",
+ "Unit",
+ "PortDimensions",
+ "VarSizeSig",
+ "SampleTime",
+ "SignalType",
+ "BusOutputAsStruct",
+ "EnsureOutportIsVirtual",
+ "InitialOutput",
+ "MustResolveToSignalObject",
+ "OutputWhenDisabled",
+ "OutputWhenUnConnected",
+ "OutputWhenUnconnectedValue",
+ "SignalName",
+ "SignalObject",
+ "SourceOfInitialOutputValue",
+ "StorageClass",
+ "VectorParamsAs1DForOutWhenUnconnected"
+ ],
+ "values":[
+ "7",
+ "Port number",
+ "[]",
+ "[]",
+ "Inherit: auto",
+ "off",
+ "inherit",
+ "-1",
+ "Inherit",
+ "-1",
+ "auto",
+ "off",
+ "off",
+ "0",
+ "off",
+ "reset",
+ "off",
+ "0",
+ "",
+ [
+ ],
+ "Dialog",
+ "Auto",
+ "off"
+ ],
+ "tabs":[
+ "Main",
+ "Signal Attributes",
+ "-Other"
+ ],
+ "tabs_idx":[
+ 0,
+ 2,
+ 11
+ ]
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Outport",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9295",
+ "className":"Simulink.Saturate",
+ "icon":"WebViewIcon3",
+ "name":"Saturation1",
+ "label":"Saturation1",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "UpperLimit",
+ "LowerLimit",
+ "LinearizeAsGain",
+ "OutMin",
+ "OutMax",
+ "OutDataTypeStr",
+ "LockScale",
+ "RndMeth",
+ "SampleTime",
+ "ZeroCross"
+ ],
+ "values":[
+ "2000",
+ "-2000",
+ "on",
+ "[]",
+ "[]",
+ "fixdt(1,16,4)",
+ "off",
+ "Floor",
+ "-1",
+ "on"
+ ],
+ "tabs":[
+ "Main",
+ "Signal Attributes",
+ "-Other"
+ ],
+ "tabs_idx":[
+ 0,
+ 3,
+ 8
+ ]
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Saturate",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9271",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto10",
+ "label":"Goto10",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "r_devSignal1",
"local",
"Tag"
],
@@ -4229,88 +4239,19 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8206",
- "className":"Simulink.Inport",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9262",
+ "className":"Simulink.From",
"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:9282",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto8",
- "label":"Goto8",
+ "name":"From45",
+ "label":"From45",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
"GotoTag",
- "TagVisibility",
"IconDisplay"
],
"values":[
- "z_errCode",
- "local",
+ "r_devSignal2",
"Tag"
],
"tabs":[
@@ -4324,54 +4265,7 @@
"obj_viewer":[
],
"finder":{
- "blocktype":"Goto",
- "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: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",
+ "blocktype":"From",
"masktype":""
}
},
@@ -4443,25 +4337,41 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9267",
- "className":"Simulink.From",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8218",
+ "className":"Simulink.DataTypeConversion",
"icon":"WebViewIcon3",
- "name":"From34",
- "label":"From34",
+ "name":"Data Type Conversion8",
+ "label":"Data Type Conversion8",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
- "GotoTag",
- "IconDisplay"
+ "OutMin",
+ "OutMax",
+ "OutDataTypeStr",
+ "LockScale",
+ "ConvertRealWorld",
+ "RndMeth",
+ "SaturateOnIntegerOverflow",
+ "SampleTime"
],
"values":[
- "a_elecAngle",
- "Tag"
+ "[]",
+ "[]",
+ "int16",
+ "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"
@@ -4469,16 +4379,16 @@
"obj_viewer":[
],
"finder":{
- "blocktype":"From",
+ "blocktype":"DataTypeConversion",
"masktype":""
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8209",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8207",
"className":"Simulink.Inport",
"icon":"WebViewIcon3",
- "name":"i_DCLink",
- "label":"i_DCLink",
+ "name":"i_phaAB",
+ "label":"i_phaAB",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
"inspector":{
"params":[
@@ -4501,7 +4411,74 @@
"OutputFunctionCall"
],
"values":[
- "9",
+ "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: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",
"[]",
"[]",
@@ -7804,57 +7781,6 @@
"finder":[
]
},
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8535#out:2",
- "className":"Simulink.Line",
- "icon":"WebViewIcon5",
- "name":"",
- "label":"",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:29",
- "inspector":{
- "params":[
- "SignalNameFromLabel",
- "MustResolveToSignal",
- "ShowPropagatedSignal",
- "DataLogging",
- "TestPoint",
- "SignalObjectPackage",
- "StorageClass",
- "Description",
- "documentLink"
- ],
- "values":[
- "",
- "off",
- "off",
- "off",
- "off",
- "Simulink",
- "Auto",
- "",
- ""
- ],
- "tabs":[
- "Parameter Attributes",
- "Logging and Accessibility",
- "Code Generation",
- "Documentation"
- ],
- "tabs_idx":[
- 0,
- 3,
- 5,
- 7
- ]
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":[
- ]
- },
{
"sid":"BLDCmotorControl_FOC_R2017b_fixdt:9392#out:1",
"className":"Simulink.Line",
@@ -8468,7 +8394,7 @@
]
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9674#out:1",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9720#out:1",
"className":"Simulink.Line",
"icon":"WebViewIcon5",
"name":"",
diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.png
index dd043a4..4e4c899 100644
Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.png differ
diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.svg
index b7520c2..b914dff 100644
--- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.svg
+++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_d.svg
@@ -456,6 +456,103 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 3
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ DC_phaC
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -468,11 +565,11 @@
-
+
-
+
8
@@ -490,11 +587,11 @@
-
+
-
+
r_devSignal2
@@ -506,44 +603,98 @@
-
-
-
-
-
-
+
+
+
-
-
+
+
-
- 7
+
+ MODEL INFO
+
+
+
+
+
+
+
+ Version: 1.1197
+
+
+
+
+
+
+
+ Author: Emanuel Feru
+
+
+
+
+
+
+
+ Last modified by: eferu
+
+
+
+
+
+
+
+ Last update:
+
+
+
+
+
+
+
+ Copyright © 2019 Emanuel FERU
-
-
+
+
-
-
-
-
+
-
-
+
+
-
- r_devSignal1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -554,44 +705,62 @@
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
- 5
+
+ [z_errCode]
-
-
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
- n_mot
+
+ [b_hallB]
+
+
+
+
+
+
+
@@ -612,11 +781,11 @@
-
+
-
+
4
@@ -634,11 +803,11 @@
-
+
-
+
z_errCode
@@ -650,395 +819,28 @@
-
-
-
+
+
+
-
-
+
+
-
-
-
-
-
-
- z_ctrlTypSel
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- uint8
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- sfix16_En4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- MODEL INFO
-
-
-
-
-
-
-
- Version: 1.1187
-
-
-
-
-
-
-
- Author: Emanuel Feru
-
-
-
-
-
-
-
- Last modified by: eferu
-
-
-
-
-
-
-
- Last update: 27-okt-2019 17:30:55
-
-
-
-
-
-
-
- Copyright © 2019 Emanuel FERU
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 6
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- a_elecAngle
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- u1
-
-
-
-
-
-
-
- if(u1 ~= 0)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- action
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-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
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [r_devSignal1]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
sfix16_En4
@@ -2051,11 +1488,11 @@
-
+
-
+
[b_motStdStill]
@@ -2073,11 +1510,11 @@
-
+
-
+
boolean
@@ -2089,44 +1526,44 @@
-
-
+
+
-
+
-
+
-
- [b_hallC]
+
+ [n_mot]
-
+
-
-
+
+
-
-
+
+
-
- uint8
+
+ sfix16_En4
@@ -2137,44 +1574,236 @@
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
- 3
+
+ [a_elecAngle]
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ ufix16_En6
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [DC_phaB]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ int16
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 6
+
+
+
+
+
+
-
-
+
+
-
-
+
+
-
- DC_phaC
+
+ a_elecAngle
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [z_pos]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ int8
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [b_hallC]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ uint8
@@ -2195,11 +1824,11 @@
-
+
-
+
[z_errCode]
@@ -2217,11 +1846,11 @@
-
+
-
+
uint8
@@ -2231,6 +1860,54 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [DC_phaA]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ int16
+
+
+
+
+
+
+
+
@@ -2243,11 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F03_Control_Mode_Manager
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- uint8
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- uint8
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [r_inpTgtSca]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- sfix16_En4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [r_devSignal2]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- sfix16_En4
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [a_elecAngle]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- ufix16_En6
-
-
-
-
-
-
-
-
@@ -3433,11 +2940,11 @@
-
+
-
+
[b_motEna]
@@ -3455,11 +2962,11 @@
-
+
-
+
boolean
@@ -3471,76 +2978,44 @@
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+ 2
+
-
-
+
+
-
-
-
+
+
+
-
-
+
+
-
- sfix16_En4
+
+ DC_phaB
@@ -3551,371 +3026,458 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [z_posRaw]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
-
+
-
-
+
+
-
-
+
+
-
- z_ctrlTypSel
+
+ b_enaFOC
-
-
+
+
-
- r_inpTgt
+
+ z_ctrlMod
-
-
+
+
-
- b_hallA
+
+ b_motEna
-
-
+
+
-
- b_hallB
+
+ r_inpTgtSca
-
-
+
+
-
- b_hallC
+
+ n_mot
-
-
+
+
-
- z_ctrlModPrev
+
+ n_motAbs
-
-
+
+
-
- r_inpTgtSca
+
+ a_elecAngle
-
-
+
+
-
- z_posRaw
+
+ i_phaAB
-
-
+
+
-
- z_pos
+
+ i_phaBC
-
-
+
+
-
- n_mot
+
+ r_phaA
-
-
+
+
-
- n_motAbs
+
+ r_phaB
-
-
+
+
-
- a_elecAngle
+
+ r_phaC
-
-
+
+
-
- b_motStdStill
+
+ Vq
-
-
+
+
-
- b_enaFOC
+
+ r_devSignal1
+
+
+
+
+
+
+
+ r_devSignal2
+
+
+
+
+
+
+
+ if { }
-
+
-
-
+
+
-
+
-
-
+
+
-
-
+
+
-
- F01_Estimations
+
+ F04_Field_Oriented_Control
-
+
-
+
+
+
+
+
+
+
+
+
+ sfix16_En4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ sfix16_En4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ sfix16_En4
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
+
+ int16
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ int16
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ int16
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ action
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ b_errFlag
+
+
+
+
+
+
+
+ b_motStdStill
+
+
+
+
+
+
+
+ b_motEna
+
+
+
+
+
+
+
+ z_ctrlModReq
+
+
+
+
+
+
+
+ z_ctrlMod
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ F03_Control_Mode_Manager
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
uint8
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- boolean
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-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-6630,11 +6568,11 @@
-
+
-
+
@@ -6714,11 +6652,11 @@
-
+
-
+
@@ -6770,11 +6708,11 @@
-
+
-
+
@@ -6784,11 +6722,11 @@
-
+
-
+
@@ -6874,11 +6812,11 @@
-
+
-
+
@@ -6888,11 +6826,11 @@
-
+
-
+
@@ -6948,7 +6886,7 @@
-
+
@@ -6958,11 +6896,11 @@
-
+
-
+
@@ -6972,11 +6910,11 @@
-
+
-
+
@@ -7000,11 +6938,11 @@
-
+
-
+
@@ -7014,11 +6952,11 @@
-
+
-
+
@@ -7028,11 +6966,11 @@
-
+
-
+
@@ -7081,28 +7019,14 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
+
@@ -7154,11 +7078,11 @@
-
+
-
+
@@ -7210,11 +7134,11 @@
-
+
-
+
@@ -7224,11 +7148,11 @@
-
+
-
+
@@ -7263,7 +7187,7 @@
-
+
@@ -7279,5 +7203,5 @@
-
+
diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_icons.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_icons.png
index dd93dbd..4b498b4 100644
Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_icons.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_29_icons.png differ
diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.json
index 2590c92..dba3198 100644
--- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.json
+++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.json
@@ -27,7 +27,7 @@
"OutputFunctionCall"
],
"values":[
- "3",
+ "4",
"Port number",
"[]",
"[]",
@@ -94,7 +94,7 @@
"OutputFunctionCall"
],
"values":[
- "4",
+ "5",
"Port number",
"[]",
"[]",
@@ -161,7 +161,7 @@
"OutputFunctionCall"
],
"values":[
- "5",
+ "6",
"Port number",
"[]",
"[]",
@@ -293,8 +293,8 @@
"Permissions",
"ErrorFcn",
"PermitHierarchicalResolution",
- "TreatAsAtomicUnit",
- "TreatAsGroupedWhenPropagatingVariantConditions",
+ "PropExecContextOutsideSubsystem",
+ "RTWSystemCode",
"ActiveVariant",
"ActiveVariantBlock",
"AllowZeroVariantControls",
@@ -306,7 +306,6 @@
"MemberBlocks",
"MinAlgLoopOccurrences",
"OverrideUsingVariant",
- "PropExecContextOutsideSubsystem",
"PropagateVariantConditions",
"RTWFcnName",
"RTWFcnNameOpts",
@@ -317,9 +316,10 @@
"RTWMemSecDataParameters",
"RTWMemSecFuncExecute",
"RTWMemSecFuncInitTerm",
- "RTWSystemCode",
"SystemSampleTime",
"TemplateBlock",
+ "TreatAsAtomicUnit",
+ "TreatAsGroupedWhenPropagatingVariantConditions",
"Variant",
"VariantControl"
],
@@ -329,7 +329,7 @@
"",
"All",
"off",
- "on",
+ "Auto",
"",
"",
"off",
@@ -342,7 +342,6 @@
"off",
"",
"off",
- "off",
"",
"Auto",
"",
@@ -352,18 +351,21 @@
"Inherit from model",
"Inherit from model",
"Inherit from model",
- "Auto",
"-1",
"",
"off",
+ "on",
+ "off",
""
],
"tabs":[
"Main",
+ "Code Generation",
"-Other"
],
"tabs_idx":[
0,
+ 5,
6
]
},
@@ -673,8 +675,8 @@
"Permissions",
"ErrorFcn",
"PermitHierarchicalResolution",
- "TreatAsAtomicUnit",
- "TreatAsGroupedWhenPropagatingVariantConditions",
+ "PropExecContextOutsideSubsystem",
+ "RTWSystemCode",
"ActiveVariant",
"ActiveVariantBlock",
"AllowZeroVariantControls",
@@ -686,7 +688,6 @@
"MemberBlocks",
"MinAlgLoopOccurrences",
"OverrideUsingVariant",
- "PropExecContextOutsideSubsystem",
"PropagateVariantConditions",
"RTWFcnName",
"RTWFcnNameOpts",
@@ -697,9 +698,10 @@
"RTWMemSecDataParameters",
"RTWMemSecFuncExecute",
"RTWMemSecFuncInitTerm",
- "RTWSystemCode",
"SystemSampleTime",
"TemplateBlock",
+ "TreatAsAtomicUnit",
+ "TreatAsGroupedWhenPropagatingVariantConditions",
"Variant",
"VariantControl"
],
@@ -709,7 +711,7 @@
"",
"All",
"off",
- "on",
+ "Auto",
"",
"",
"off",
@@ -722,7 +724,6 @@
"off",
"",
"off",
- "off",
"",
"Auto",
"",
@@ -732,18 +733,21 @@
"Inherit from model",
"Inherit from model",
"Inherit from model",
- "Auto",
"-1",
"",
"off",
+ "on",
+ "off",
""
],
"tabs":[
"Main",
+ "Code Generation",
"-Other"
],
"tabs_idx":[
0,
+ 5,
6
]
},
@@ -933,8 +937,8 @@
"Permissions",
"ErrorFcn",
"PermitHierarchicalResolution",
- "TreatAsAtomicUnit",
- "TreatAsGroupedWhenPropagatingVariantConditions",
+ "PropExecContextOutsideSubsystem",
+ "RTWSystemCode",
"ActiveVariant",
"ActiveVariantBlock",
"AllowZeroVariantControls",
@@ -946,7 +950,6 @@
"MemberBlocks",
"MinAlgLoopOccurrences",
"OverrideUsingVariant",
- "PropExecContextOutsideSubsystem",
"PropagateVariantConditions",
"RTWFcnName",
"RTWFcnNameOpts",
@@ -957,9 +960,10 @@
"RTWMemSecDataParameters",
"RTWMemSecFuncExecute",
"RTWMemSecFuncInitTerm",
- "RTWSystemCode",
"SystemSampleTime",
"TemplateBlock",
+ "TreatAsAtomicUnit",
+ "TreatAsGroupedWhenPropagatingVariantConditions",
"Variant",
"VariantControl"
],
@@ -969,7 +973,7 @@
"",
"All",
"off",
- "on",
+ "Auto",
"",
"",
"off",
@@ -982,7 +986,6 @@
"off",
"",
"off",
- "off",
"",
"Auto",
"",
@@ -992,18 +995,21 @@
"Inherit from model",
"Inherit from model",
"Inherit from model",
- "Auto",
"-1",
"",
"off",
+ "on",
+ "off",
""
],
"tabs":[
"Main",
+ "Code Generation",
"-Other"
],
"tabs_idx":[
0,
+ 5,
6
]
},
@@ -1030,8 +1036,8 @@
"Permissions",
"ErrorFcn",
"PermitHierarchicalResolution",
- "TreatAsAtomicUnit",
- "TreatAsGroupedWhenPropagatingVariantConditions",
+ "PropExecContextOutsideSubsystem",
+ "RTWSystemCode",
"ActiveVariant",
"ActiveVariantBlock",
"AllowZeroVariantControls",
@@ -1043,7 +1049,6 @@
"MemberBlocks",
"MinAlgLoopOccurrences",
"OverrideUsingVariant",
- "PropExecContextOutsideSubsystem",
"PropagateVariantConditions",
"RTWFcnName",
"RTWFcnNameOpts",
@@ -1054,9 +1059,10 @@
"RTWMemSecDataParameters",
"RTWMemSecFuncExecute",
"RTWMemSecFuncInitTerm",
- "RTWSystemCode",
"SystemSampleTime",
"TemplateBlock",
+ "TreatAsAtomicUnit",
+ "TreatAsGroupedWhenPropagatingVariantConditions",
"Variant",
"VariantControl"
],
@@ -1066,7 +1072,7 @@
"",
"All",
"off",
- "on",
+ "Auto",
"",
"",
"off",
@@ -1079,7 +1085,6 @@
"off",
"",
"off",
- "off",
"",
"Auto",
"",
@@ -1089,18 +1094,21 @@
"Inherit from model",
"Inherit from model",
"Inherit from model",
- "Auto",
"-1",
"",
"off",
+ "on",
+ "off",
""
],
"tabs":[
"Main",
+ "Code Generation",
"-Other"
],
"tabs_idx":[
0,
+ 5,
6
]
},
@@ -1352,11 +1360,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9433",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8468",
"className":"Simulink.Outport",
"icon":"WebViewIcon3",
- "name":"b_motStdStill",
- "label":"b_motStdStill",
+ "name":"b_enaFOC",
+ "label":"b_enaFOC",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
"inspector":{
"params":[
@@ -1385,7 +1393,7 @@
"VectorParamsAs1DForOutWhenUnconnected"
],
"values":[
- "7",
+ "8",
"Port number",
"[]",
"[]",
@@ -1398,9 +1406,9 @@
"auto",
"off",
"off",
- "0",
+ "[]",
"off",
- "reset",
+ "held",
"off",
"0",
"",
@@ -1432,11 +1440,11 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8467",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8466",
"className":"Simulink.Outport",
"icon":"WebViewIcon3",
- "name":"a_elecAngle",
- "label":"a_elecAngle",
+ "name":"n_motAbs",
+ "label":"n_motAbs",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
"inspector":{
"params":[
@@ -1465,7 +1473,7 @@
"VectorParamsAs1DForOutWhenUnconnected"
],
"values":[
- "6",
+ "5",
"Port number",
"[]",
"[]",
@@ -1592,27 +1600,74 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8461",
- "className":"Simulink.Goto",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8467",
+ "className":"Simulink.Outport",
"icon":"WebViewIcon3",
- "name":"Goto9",
- "label":"Goto9",
+ "name":"a_elecAngle",
+ "label":"a_elecAngle",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
"inspector":{
"params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
+ "Port",
+ "IconDisplay",
+ "OutMin",
+ "OutMax",
+ "OutDataTypeStr",
+ "LockScale",
+ "Unit",
+ "PortDimensions",
+ "VarSizeSig",
+ "SampleTime",
+ "SignalType",
+ "BusOutputAsStruct",
+ "EnsureOutportIsVirtual",
+ "InitialOutput",
+ "MustResolveToSignalObject",
+ "OutputWhenDisabled",
+ "OutputWhenUnConnected",
+ "OutputWhenUnconnectedValue",
+ "SignalName",
+ "SignalObject",
+ "SourceOfInitialOutputValue",
+ "StorageClass",
+ "VectorParamsAs1DForOutWhenUnconnected"
],
"values":[
- "z_dirPrev",
- "local",
- "Tag"
+ "6",
+ "Port number",
+ "[]",
+ "[]",
+ "Inherit: auto",
+ "off",
+ "inherit",
+ "-1",
+ "Inherit",
+ "-1",
+ "auto",
+ "off",
+ "off",
+ "0",
+ "off",
+ "reset",
+ "off",
+ "0",
+ "",
+ [
+ ],
+ "Dialog",
+ "Auto",
+ "off"
],
"tabs":[
- "Parameter Attributes"
+ "Main",
+ "Signal Attributes",
+ "-Other"
],
- "tabs_idx":0
+ "tabs_idx":[
+ 0,
+ 2,
+ 11
+ ]
},
"viewer":{
"jshandler":"webview/handlers/ElementHandler"
@@ -1620,7 +1675,7 @@
"obj_viewer":[
],
"finder":{
- "blocktype":"Goto",
+ "blocktype":"Outport",
"masktype":""
}
},
@@ -1657,1154 +1712,6 @@
"masktype":""
}
},
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8462",
- "className":"Simulink.If",
- "icon":"WebViewIcon3",
- "name":"If2",
- "label":"If2",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "NumInputs",
- "IfExpression",
- "ElseIfExpressions",
- "ShowElse",
- "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:9432",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto17",
- "label":"Goto17",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "b_motStdStill",
- "local",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Goto",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:9379",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto14",
- "label":"Goto14",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "z_ctrlModPrev",
- "local",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Goto",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9377",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto13",
- "label":"Goto13",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "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:8455",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto3",
- "label":"Goto3",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "z_ctrlTypSel",
- "local",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Goto",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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: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:8436",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From22",
- "label":"From22",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "z_counterRaw",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8434",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From20",
- "label":"From20",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "z_dir",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8449",
- "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: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:8458",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto6",
- "label":"Goto6",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "z_counterRaw",
- "local",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Goto",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8435",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From21",
- "label":"From21",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "z_counter",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8446",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From9",
- "label":"From9",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "z_posRaw",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:9431",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From25",
- "label":"From25",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "b_motStdStill",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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: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:9380",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From16",
- "label":"From16",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "z_ctrlModPrev",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8424",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From",
- "label":"From",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "z_ctrlTypSel",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8384",
- "className":"Simulink.SubSystem",
- "icon":"WebViewIcon1",
- "name":"F01_06_Electrical_Angle_Estimation",
- "label":"F01_06_Electrical_Angle_Estimation",
- "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:9374",
- "className":"Simulink.From",
- "icon":"WebViewIcon3",
- "name":"From11",
- "label":"From11",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "GotoTag",
- "IconDisplay"
- ],
- "values":[
- "z_ctrlTypSel",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"From",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8457",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto5",
- "label":"Goto5",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "GotoTag",
- "TagVisibility",
- "IconDisplay"
- ],
- "values":[
- "z_counter",
- "local",
- "Tag"
- ],
- "tabs":[
- "Parameter Attributes"
- ],
- "tabs_idx":0
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Goto",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:8468",
- "className":"Simulink.Outport",
- "icon":"WebViewIcon3",
- "name":"b_enaFOC",
- "label":"b_enaFOC",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "Port",
- "IconDisplay",
- "OutMin",
- "OutMax",
- "OutDataTypeStr",
- "LockScale",
- "Unit",
- "PortDimensions",
- "VarSizeSig",
- "SampleTime",
- "SignalType",
- "BusOutputAsStruct",
- "EnsureOutportIsVirtual",
- "InitialOutput",
- "MustResolveToSignalObject",
- "OutputWhenDisabled",
- "OutputWhenUnConnected",
- "OutputWhenUnconnectedValue",
- "SignalName",
- "SignalObject",
- "SourceOfInitialOutputValue",
- "StorageClass",
- "VectorParamsAs1DForOutWhenUnconnected"
- ],
- "values":[
- "8",
- "Port number",
- "[]",
- "[]",
- "Inherit: auto",
- "off",
- "inherit",
- "-1",
- "Inherit",
- "-1",
- "auto",
- "off",
- "off",
- "[]",
- "off",
- "held",
- "off",
- "0",
- "",
- [
- ],
- "Dialog",
- "Auto",
- "off"
- ],
- "tabs":[
- "Main",
- "Signal Attributes",
- "-Other"
- ],
- "tabs_idx":[
- 0,
- 2,
- 11
- ]
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Outport",
- "masktype":""
- }
- },
- {
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8451",
- "className":"Simulink.Goto",
- "icon":"WebViewIcon3",
- "name":"Goto12",
- "label":"Goto12",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "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: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:9378",
- "className":"Simulink.Inport",
- "icon":"WebViewIcon3",
- "name":"z_ctrlModPrev",
- "label":"z_ctrlModPrev",
- "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
- "inspector":{
- "params":[
- "Port",
- "IconDisplay",
- "OutMin",
- "OutMax",
- "OutDataTypeStr",
- "LockScale",
- "Unit",
- "PortDimensions",
- "VarSizeSig",
- "SampleTime",
- "SignalType",
- "BusOutputAsStruct",
- "InputConnect",
- "Interpolate",
- "LatchByDelayingOutsideSignal",
- "LatchInputForFeedbackSignals",
- "OutputFunctionCall"
- ],
- "values":[
- "6",
- "Port number",
- "[]",
- "[]",
- "Inherit: auto",
- "off",
- "inherit",
- "-1",
- "Inherit",
- "-1",
- "auto",
- "off",
- "",
- "on",
- "off",
- "off",
- "off"
- ],
- "tabs":[
- "Main",
- "Signal Attributes",
- "-Other"
- ],
- "tabs_idx":[
- 0,
- 2,
- 11
- ]
- },
- "viewer":{
- "jshandler":"webview/handlers/ElementHandler"
- },
- "obj_viewer":[
- ],
- "finder":{
- "blocktype":"Inport",
- "masktype":""
- }
- },
{
"sid":"BLDCmotorControl_FOC_R2017b_fixdt:8463",
"className":"Simulink.Outport",
@@ -2885,6 +1792,346 @@
"masktype":""
}
},
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8458",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto6",
+ "label":"Goto6",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_counterRaw",
+ "local",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Goto",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9432",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto17",
+ "label":"Goto17",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "b_motStdStill",
+ "local",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Goto",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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: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",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8451",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto12",
+ "label":"Goto12",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "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: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:8449",
+ "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: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:8436",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From22",
+ "label":"From22",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_counterRaw",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
{
"sid":"BLDCmotorControl_FOC_R2017b_fixdt:9381",
"className":"Simulink.From",
@@ -2916,6 +2163,68 @@
"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:9431",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From25",
+ "label":"From25",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "b_motStdStill",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
{
"sid":"BLDCmotorControl_FOC_R2017b_fixdt:8431",
"className":"Simulink.From",
@@ -2948,11 +2257,630 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8466",
- "className":"Simulink.Outport",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8435",
+ "className":"Simulink.From",
"icon":"WebViewIcon3",
- "name":"n_motAbs",
- "label":"n_motAbs",
+ "name":"From21",
+ "label":"From21",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_counter",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:9380",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From16",
+ "label":"From16",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "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: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:8384",
+ "className":"Simulink.SubSystem",
+ "icon":"WebViewIcon1",
+ "name":"F01_06_Electrical_Angle_Estimation",
+ "label":"F01_06_Electrical_Angle_Estimation",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "ShowPortLabels",
+ "Permissions",
+ "ErrorFcn",
+ "PermitHierarchicalResolution",
+ "PropExecContextOutsideSubsystem",
+ "RTWSystemCode",
+ "ActiveVariant",
+ "ActiveVariantBlock",
+ "AllowZeroVariantControls",
+ "BlockChoice",
+ "FunctionInterfaceSpec",
+ "FunctionWithSeparateData",
+ "GeneratePreprocessorConditionals",
+ "IsSubsystemVirtual",
+ "MemberBlocks",
+ "MinAlgLoopOccurrences",
+ "OverrideUsingVariant",
+ "PropagateVariantConditions",
+ "RTWFcnName",
+ "RTWFcnNameOpts",
+ "RTWFileName",
+ "RTWFileNameOpts",
+ "RTWMemSecDataConstants",
+ "RTWMemSecDataInternal",
+ "RTWMemSecDataParameters",
+ "RTWMemSecFuncExecute",
+ "RTWMemSecFuncInitTerm",
+ "SystemSampleTime",
+ "TemplateBlock",
+ "TreatAsAtomicUnit",
+ "TreatAsGroupedWhenPropagatingVariantConditions",
+ "Variant",
+ "VariantControl"
+ ],
+ "values":[
+ "FromPortIcon",
+ "ReadWrite",
+ "",
+ "All",
+ "off",
+ "Auto",
+ "",
+ "",
+ "off",
+ "",
+ "void_void",
+ "off",
+ "off",
+ "on",
+ "",
+ "off",
+ "",
+ "off",
+ "",
+ "Auto",
+ "",
+ "Auto",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "-1",
+ "",
+ "off",
+ "on",
+ "off",
+ ""
+ ],
+ "tabs":[
+ "Main",
+ "Code Generation",
+ "-Other"
+ ],
+ "tabs_idx":[
+ 0,
+ 5,
+ 6
+ ]
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ContainerHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"SubSystem",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8455",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto3",
+ "label":"Goto3",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_ctrlTypSel",
+ "local",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Goto",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9374",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From11",
+ "label":"From11",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_ctrlTypSel",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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:8434",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From20",
+ "label":"From20",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_dir",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8462",
+ "className":"Simulink.If",
+ "icon":"WebViewIcon3",
+ "name":"If2",
+ "label":"If2",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "NumInputs",
+ "IfExpression",
+ "ElseIfExpressions",
+ "ShowElse",
+ "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:8446",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From9",
+ "label":"From9",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_posRaw",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt: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",
+ "PropExecContextOutsideSubsystem",
+ "RTWSystemCode",
+ "ActiveVariant",
+ "ActiveVariantBlock",
+ "AllowZeroVariantControls",
+ "BlockChoice",
+ "FunctionInterfaceSpec",
+ "FunctionWithSeparateData",
+ "GeneratePreprocessorConditionals",
+ "IsSubsystemVirtual",
+ "MemberBlocks",
+ "MinAlgLoopOccurrences",
+ "OverrideUsingVariant",
+ "PropagateVariantConditions",
+ "RTWFcnName",
+ "RTWFcnNameOpts",
+ "RTWFileName",
+ "RTWFileNameOpts",
+ "RTWMemSecDataConstants",
+ "RTWMemSecDataInternal",
+ "RTWMemSecDataParameters",
+ "RTWMemSecFuncExecute",
+ "RTWMemSecFuncInitTerm",
+ "SystemSampleTime",
+ "TemplateBlock",
+ "TreatAsAtomicUnit",
+ "TreatAsGroupedWhenPropagatingVariantConditions",
+ "Variant",
+ "VariantControl"
+ ],
+ "values":[
+ "FromPortIcon",
+ "ReadWrite",
+ "",
+ "All",
+ "off",
+ "Auto",
+ "",
+ "",
+ "off",
+ "",
+ "void_void",
+ "off",
+ "off",
+ "on",
+ "",
+ "off",
+ "",
+ "off",
+ "",
+ "Auto",
+ "",
+ "Auto",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "Inherit from model",
+ "-1",
+ "",
+ "off",
+ "on",
+ "off",
+ ""
+ ],
+ "tabs":[
+ "Main",
+ "Code Generation",
+ "-Other"
+ ],
+ "tabs_idx":[
+ 0,
+ 5,
+ 6
+ ]
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ContainerHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"SubSystem",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8457",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto5",
+ "label":"Goto5",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_counter",
+ "local",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Goto",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8424",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From",
+ "label":"From",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_ctrlTypSel",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9377",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto13",
+ "label":"Goto13",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "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:9375",
+ "className":"Simulink.Inport",
+ "icon":"WebViewIcon3",
+ "name":"r_inpTgt",
+ "label":"r_inpTgt",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
"inspector":{
"params":[
@@ -2968,20 +2896,14 @@
"SampleTime",
"SignalType",
"BusOutputAsStruct",
- "EnsureOutportIsVirtual",
- "InitialOutput",
- "MustResolveToSignalObject",
- "OutputWhenDisabled",
- "OutputWhenUnConnected",
- "OutputWhenUnconnectedValue",
- "SignalName",
- "SignalObject",
- "SourceOfInitialOutputValue",
- "StorageClass",
- "VectorParamsAs1DForOutWhenUnconnected"
+ "InputConnect",
+ "Interpolate",
+ "LatchByDelayingOutsideSignal",
+ "LatchInputForFeedbackSignals",
+ "OutputFunctionCall"
],
"values":[
- "5",
+ "3",
"Port number",
"[]",
"[]",
@@ -2993,17 +2915,10 @@
"-1",
"auto",
"off",
- "off",
- "0",
- "off",
- "reset",
- "off",
- "0",
"",
- [
- ],
- "Dialog",
- "Auto",
+ "on",
+ "off",
+ "off",
"off"
],
"tabs":[
@@ -3023,7 +2938,40 @@
"obj_viewer":[
],
"finder":{
- "blocktype":"Outport",
+ "blocktype":"Inport",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9379",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto14",
+ "label":"Goto14",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_ctrlModReq",
+ "local",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Goto",
"masktype":""
}
},
@@ -3095,11 +3043,75 @@
}
},
{
- "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9375",
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9382",
+ "className":"Simulink.From",
+ "icon":"WebViewIcon3",
+ "name":"From24",
+ "label":"From24",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "IconDisplay"
+ ],
+ "values":[
+ "r_inpTgtSca",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"From",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:8461",
+ "className":"Simulink.Goto",
+ "icon":"WebViewIcon3",
+ "name":"Goto9",
+ "label":"Goto9",
+ "parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
+ "inspector":{
+ "params":[
+ "GotoTag",
+ "TagVisibility",
+ "IconDisplay"
+ ],
+ "values":[
+ "z_dirPrev",
+ "local",
+ "Tag"
+ ],
+ "tabs":[
+ "Parameter Attributes"
+ ],
+ "tabs_idx":0
+ },
+ "viewer":{
+ "jshandler":"webview/handlers/ElementHandler"
+ },
+ "obj_viewer":[
+ ],
+ "finder":{
+ "blocktype":"Goto",
+ "masktype":""
+ }
+ },
+ {
+ "sid":"BLDCmotorControl_FOC_R2017b_fixdt:9378",
"className":"Simulink.Inport",
"icon":"WebViewIcon3",
- "name":"r_inpTgt",
- "label":"r_inpTgt",
+ "name":"z_ctrlModReq",
+ "label":"z_ctrlModReq",
"parent":"BLDCmotorControl_FOC_R2017b_fixdt:8220",
"inspector":{
"params":[
diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.png
index c7ef2dc..2996dff 100644
Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.png differ
diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.svg
index 3c8b9f5..54fc304 100644
--- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.svg
+++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_FOC_R2017b_fixdt_8220_d.svg
@@ -1,10 +1,10 @@
-
-
-
+
+
-
+
-
- int16
+
+ boolean
@@ -1268,15 +1268,15 @@
-
+
-
+
-
+
int16
@@ -1289,15 +1289,15 @@
-
+
-
+
-
+
sfix16_En4
@@ -1310,15 +1310,15 @@
-
+
-
+
-
+
boolean
@@ -1331,16 +1331,16 @@
-
-
+
+
-
+
-
- boolean
+
+ sfix16_En4
@@ -1352,16 +1352,16 @@
-
-
+
+
-
+
-
- sfix16_En4
+
+ int16
@@ -1461,7 +1461,7 @@
-
+
@@ -1482,7 +1482,7 @@
-
+
@@ -1503,7 +1503,7 @@
-
+
@@ -1557,7 +1557,7 @@
-
+
@@ -1638,7 +1638,7 @@
-
+
@@ -1686,7 +1686,7 @@
-
+
@@ -1734,7 +1734,7 @@
-
+
@@ -1782,7 +1782,7 @@
-
+
@@ -1797,11 +1797,11 @@
-
-
+
+
-
+
@@ -1811,30 +1811,30 @@
-
- 7
+
+ 8
-
+
-
-
+
+
-
+
-
- b_motStdStill
+
+ b_enaFOC
@@ -1845,11 +1845,11 @@
-
-
+
+
-
+
@@ -1859,30 +1859,30 @@
-
- 6
+
+ 5
-
+
-
-
+
+
-
+
-
- a_elecAngle
+
+ n_motAbs
@@ -1926,7 +1926,7 @@
-
+
@@ -1941,29 +1941,44 @@
-
-
-
+
+
+
-
-
+
+
-
+
-
- [z_dirPrev]
+
+ 6
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ a_elecAngle
@@ -1984,11 +1999,11 @@
-
+
-
+
[z_posRaw]
@@ -2007,52 +2022,77 @@
-
-
-
+
+
+
-
-
+
+
-
-
-
-
-
-
- u1
-
-
+
-
- if(u1 ~= 0)
+
+ 2
-
-
+
+
-
-
-
+
+
+
-
+
-
- action
+
+ z_posRaw
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [z_counterRaw]
+
+
+
+
+
+
+
@@ -2073,11 +2113,11 @@
-
+
-
+
[b_motStdStill]
@@ -2106,11 +2146,11 @@
-
+
-
+
[r_inpTgtSca]
@@ -2129,62 +2169,44 @@
-
-
-
+
+
+
-
-
-
-
-
-
-
-
-
-
-
- [z_ctrlModPrev]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+
-
- [r_inpTgt]
+
+ 7
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ b_motStdStill
@@ -2195,28 +2217,28 @@
-
-
+
+
-
+
-
+
-
- [z_ctrlTypSel]
+
+ [n_motAbs]
-
+
@@ -2228,44 +2250,62 @@
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
- [r_inpTgtSca]
+
+ [b_enaFOC]
-
-
+
+
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
+
+
-
- sfix16_En4
+
+ [a_elecAngle]
+
+
+
+
+
+
+
@@ -2286,11 +2326,11 @@
-
+
-
+
[b_enaFOC]
@@ -2308,11 +2348,11 @@
-
-
+
+
-
+
boolean
@@ -2334,11 +2374,11 @@
-
+
-
+
[z_counterRaw]
@@ -2356,11 +2396,11 @@
-
-
+
+
-
+
int16
@@ -2372,77 +2412,44 @@
-
-
+
+
-
+
-
+
-
- [z_dir]
+
+ [r_inpTgt]
-
+
-
-
+
+
-
-
-
-
-
-
- int8
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
-
- [a_elecAngle]
-
-
-
-
-
-
-
+
+ sfix16_En4
@@ -2486,7 +2493,7 @@
-
+
@@ -2499,183 +2506,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [z_counterRaw]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [z_counter]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- int16
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [z_posRaw]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- uint8
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [z_dirPrev]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- int8
-
-
-
-
-
-
-
-
@@ -2688,11 +2518,11 @@
-
+
-
+
[b_motStdStill]
@@ -2710,11 +2540,11 @@
-
-
+
+
-
+
boolean
@@ -2726,29 +2556,188 @@
-
-
-
+
+
+
-
-
+
+
-
-
+
+
-
- [b_enaFOC]
+
+ [z_pos]
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ int8
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [z_counter]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ int16
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [n_motAbs]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ sfix16_En4
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [z_ctrlModReq]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ uint8
@@ -2769,11 +2758,11 @@
-
+
-
+
[a_elecAngle]
@@ -2791,11 +2780,11 @@
-
-
+
+
-
+
ufix16_En6
@@ -2805,107 +2794,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [z_ctrlModPrev]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- uint8
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [z_ctrlTypSel]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- uint8
-
-
-
-
-
-
-
-
-
+
@@ -2919,51 +2812,51 @@
-
+
-
+
z_pos
-
+
-
+
z_dir
-
+
-
+
z_counter
-
+
-
+
z_counterRaw
-
+
-
+
b_enaFOC
-
+
-
+
a_elecAngle
@@ -2993,11 +2886,11 @@
-
-
+
+
-
+
F01_06_Electrical_Angle_Estimation
@@ -3014,11 +2907,11 @@
-
-
+
+
-
+
ufix16_En6
@@ -3030,13 +2923,46 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ [z_ctrlTypSel]
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -3046,11 +2972,11 @@
-
+
-
+
[z_ctrlTypSel]
@@ -3068,11 +2994,11 @@
-
-
+
+
-
+
uint8
@@ -3084,77 +3010,44 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- [z_counter]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
+