diff --git a/BLDC_controller_ert_rtw/BLDC_controller.c b/BLDC_controller_ert_rtw/BLDC_controller.c index 2aa9ce3..2028911 100644 --- a/BLDC_controller_ert_rtw/BLDC_controller.c +++ b/BLDC_controller_ert_rtw/BLDC_controller.c @@ -5,7 +5,7 @@ * * Model version : 1.1284 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Sun Oct 11 20:20:20 2020 + * C/C++ source code generated on : Sun Oct 11 21:38:56 2020 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex @@ -998,12 +998,12 @@ void BLDC_controller_step(RT_MODEL *const rtM) int16_T rtb_Abs5; int16_T rtb_DataTypeConversion2; int16_T rtb_Switch1_l; + int16_T rtb_Saturation; int16_T rtb_Saturation1; - int16_T rtb_Divide2_h; int16_T rtb_Merge; int16_T rtb_Switch2_l; - int32_T rtb_DataTypeConversion; int16_T rtb_toNegative; + int32_T rtb_DataTypeConversion; int32_T rtb_Switch1; int32_T rtb_Sum1; int32_T rtb_Gain3; @@ -1672,11 +1672,11 @@ void BLDC_controller_step(RT_MODEL *const rtM) */ rtb_Gain3 = rtU->i_phaAB << 4; if (rtb_Gain3 >= 27200) { - rtb_Merge = 27200; + rtb_Saturation = 27200; } else if (rtb_Gain3 <= -27200) { - rtb_Merge = -27200; + rtb_Saturation = -27200; } else { - rtb_Merge = (int16_T)(rtU->i_phaAB << 4); + rtb_Saturation = (int16_T)(rtU->i_phaAB << 4); } /* End of Saturate: '/Saturation' */ @@ -1698,8 +1698,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) /* If: '/If1' incorporates: * Constant: '/b_angleMeasEna' */ - switch ((int8_T)rtP->b_angleMeasEna) { - case 0: + if (!rtP->b_angleMeasEna) { /* Outputs for IfAction SubSystem: '/F01_05_Electrical_Angle_Estimation' incorporates: * ActionPort: '/Action Port' */ @@ -1713,9 +1712,9 @@ void BLDC_controller_step(RT_MODEL *const rtM) */ if (rtb_LogicalOperator) { /* MinMax: '/MinMax' */ - rtb_Divide2_h = rtb_Switch1_l; - if (!(rtb_Divide2_h < rtDW->z_counterRawPrev)) { - rtb_Divide2_h = rtDW->z_counterRawPrev; + rtb_Merge = rtb_Switch1_l; + if (!(rtb_Merge < rtDW->z_counterRawPrev)) { + rtb_Merge = rtDW->z_counterRawPrev; } /* End of MinMax: '/MinMax' */ @@ -1733,7 +1732,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[rtb_Sum] + 1); } - rtb_Divide2_h = (int16_T)(((int16_T)((int16_T)((rtb_Divide2_h << 14) / + rtb_Merge = (int16_T)(((int16_T)((int16_T)((rtb_Merge << 14) / rtDW->z_counterRawPrev) * rtDW->Switch2_e) + (rtb_Sum2_h << 14)) >> 2); } else { if (rtDW->Switch2_e == 1) { @@ -1751,7 +1750,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[rtb_Sum] + 1); } - rtb_Divide2_h = (int16_T)(rtb_Sum2_h << 12); + rtb_Merge = (int16_T)(rtb_Sum2_h << 12); } /* End of Switch: '/Switch2' */ @@ -1759,8 +1758,8 @@ void BLDC_controller_step(RT_MODEL *const rtM) /* MinMax: '/MinMax1' incorporates: * Constant: '/Constant1' */ - if (!(rtb_Divide2_h > 0)) { - rtb_Divide2_h = 0; + if (!(rtb_Merge > 0)) { + rtb_Merge = 0; } /* End of MinMax: '/MinMax1' */ @@ -1768,12 +1767,10 @@ void BLDC_controller_step(RT_MODEL *const rtM) /* SignalConversion: '/Signal Conversion2' incorporates: * Product: '/Divide2' */ - rtb_Divide2_h = (int16_T)((15 * rtb_Divide2_h) >> 4); + rtb_Merge = (int16_T)((15 * rtb_Merge) >> 4); /* End of Outputs for SubSystem: '/F01_05_Electrical_Angle_Estimation' */ - break; - - case 1: + } else { /* Outputs for IfAction SubSystem: '/F01_06_Electrical_Angle_Measurement' incorporates: * ActionPort: '/Action Port' */ @@ -1791,12 +1788,10 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Product: '/Divide3' * Sum: '/Sum3' */ - rtb_Divide2_h = (int16_T)((int16_T)(rtb_DataTypeConversion - ((int16_T) - ((int16_T)div_nde_s32_floor(rtb_DataTypeConversion, 5760) * 360) << 4)) << - 2); + rtb_Merge = (int16_T)((int16_T)(rtb_DataTypeConversion - ((int16_T)((int16_T) + div_nde_s32_floor(rtb_DataTypeConversion, 5760) * 360) << 4)) << 2); /* End of Outputs for SubSystem: '/F01_06_Electrical_Angle_Measurement' */ - break; } /* End of If: '/If1' */ @@ -1903,13 +1898,13 @@ void BLDC_controller_step(RT_MODEL *const rtM) /* If: '/If1' incorporates: * Constant: '/z_ctrlTypSel' */ - rtb_Sum2_h = rtDW->If1_ActiveSubsystem_p; + rtb_Sum2_h = rtDW->If1_ActiveSubsystem; UnitDelay3 = -1; if (rtP->z_ctrlTypSel == 2) { UnitDelay3 = 0; } - rtDW->If1_ActiveSubsystem_p = UnitDelay3; + rtDW->If1_ActiveSubsystem = UnitDelay3; if ((rtb_Sum2_h != UnitDelay3) && (rtb_Sum2_h == 0)) { /* Disable for If: '/If2' */ if (rtDW->If2_ActiveSubsystem_a == 0) { @@ -1982,7 +1977,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) * ActionPort: '/Action Port' */ /* Gain: '/Gain4' */ - rtb_Gain3 = 18919 * rtb_Merge; + rtb_Gain3 = 18919 * rtb_Saturation; /* Gain: '/Gain2' */ rtb_DataTypeConversion = 18919 * rtb_Saturation1; @@ -2011,7 +2006,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) * ActionPort: '/Action Port' */ /* Sum: '/Sum3' */ - rtb_Gain3 = rtb_Merge - rtb_Saturation1; + rtb_Gain3 = rtb_Saturation - rtb_Saturation1; if (rtb_Gain3 > 32767) { rtb_Gain3 = 32767; } else { @@ -2028,7 +2023,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) rtb_Gain3) >> 15); /* Sum: '/Sum1' */ - rtb_Gain3 = -rtb_Merge - rtb_Saturation1; + rtb_Gain3 = -rtb_Saturation - rtb_Saturation1; if (rtb_Gain3 > 32767) { rtb_Gain3 = 32767; } else { @@ -2037,7 +2032,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) } } - rtb_Merge = (int16_T)rtb_Gain3; + rtb_Saturation = (int16_T)rtb_Gain3; /* End of Sum: '/Sum1' */ /* End of Outputs for SubSystem: '/Clarke_PhasesBC' */ @@ -2046,7 +2041,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) * ActionPort: '/Action Port' */ /* Gain: '/Gain4' */ - rtb_Gain3 = 18919 * rtb_Merge; + rtb_Gain3 = 18919 * rtb_Saturation; /* Gain: '/Gain2' */ rtb_DataTypeConversion = 18919 * rtb_Saturation1; @@ -2075,7 +2070,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) /* End of If: '/If1' */ /* PreLookup: '/a_elecAngle_XA' */ - rtb_Sum_l = plook_u8s16_evencka(rtb_Divide2_h, 0, 128U, 180U); + rtb_Sum_l = plook_u8s16_evencka(rtb_Merge, 0, 128U, 180U); /* If: '/If2' incorporates: * Constant: '/cf_currFilt' @@ -2119,7 +2114,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Product: '/Divide4' */ rtb_Gain3 = (int16_T)((rtb_DataTypeConversion2 * - rtConstP.r_cos_M1_Table[rtb_Sum_l]) >> 14) - (int16_T)((rtb_Merge * + rtConstP.r_cos_M1_Table[rtb_Sum_l]) >> 14) - (int16_T)((rtb_Saturation * rtConstP.r_sin_M1_Table[rtb_Sum_l]) >> 14); if (rtb_Gain3 > 32767) { rtb_Gain3 = 32767; @@ -2145,8 +2140,8 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Product: '/Divide2' * Product: '/Divide3' */ - rtb_Gain3 = (int16_T)((rtb_Merge * rtConstP.r_cos_M1_Table[rtb_Sum_l]) >> - 14) + (int16_T)((rtb_DataTypeConversion2 * + rtb_Gain3 = (int16_T)((rtb_Saturation * rtConstP.r_cos_M1_Table[rtb_Sum_l]) + >> 14) + (int16_T)((rtb_DataTypeConversion2 * rtConstP.r_sin_M1_Table[rtb_Sum_l]) >> 14); if (rtb_Gain3 > 32767) { rtb_Gain3 = 32767; @@ -2465,17 +2460,17 @@ void BLDC_controller_step(RT_MODEL *const rtM) /* End of Signum: '/SignDeltaU2' */ /* Product: '/Divide1' */ - rtb_Merge = (int16_T)(rtb_Switch2_l * rtb_Merge_f_idx_2); + rtb_Saturation = (int16_T)(rtb_Switch2_l * rtb_Merge_f_idx_2); /* Switch: '/Switch2' incorporates: * RelationalOperator: '/LowerRelop1' * RelationalOperator: '/UpperRelop' * Switch: '/Switch' */ - if (rtb_Merge > rtDW->Vq_max_M1) { + if (rtb_Saturation > rtDW->Vq_max_M1) { /* SignalConversion: '/Signal Conversion2' */ rtDW->Merge = rtDW->Vq_max_M1; - } else if (rtb_Merge < rtDW->Gain5) { + } else if (rtb_Saturation < rtDW->Gain5) { /* Switch: '/Switch' incorporates: * SignalConversion: '/Signal Conversion2' */ @@ -2484,7 +2479,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) /* SignalConversion: '/Signal Conversion2' incorporates: * Switch: '/Switch' */ - rtDW->Merge = rtb_Merge; + rtDW->Merge = rtb_Saturation; } /* End of Switch: '/Switch2' */ @@ -2513,18 +2508,18 @@ void BLDC_controller_step(RT_MODEL *const rtM) /* DataTypeConversion: '/Data Type Conversion2' incorporates: * Constant: '/n_cruiseMotTgt' */ - rtb_Merge = (int16_T)(rtP->n_cruiseMotTgt << 4); + rtb_Saturation = (int16_T)(rtP->n_cruiseMotTgt << 4); /* Switch: '/Switch4' incorporates: * Constant: '/b_cruiseCtrlEna' * Logic: '/Logical Operator1' * RelationalOperator: '/Relational Operator3' */ - if (rtP->b_cruiseCtrlEna && (rtb_Merge != 0)) { + if (rtP->b_cruiseCtrlEna && (rtb_Saturation != 0)) { /* Switch: '/Switch3' incorporates: * MinMax: '/MinMax4' */ - if (rtb_Merge > 0) { + if (rtb_Saturation > 0) { rtb_TmpSignalConversionAtLow_Pa[0] = rtDW->Vq_max_M1; /* MinMax: '/MinMax3' */ @@ -2558,13 +2553,13 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Constant: '/b_cruiseCtrlEna' */ if (!rtP->b_cruiseCtrlEna) { - rtb_Merge = rtDW->Merge1; + rtb_Saturation = rtDW->Merge1; } /* End of Switch: '/Switch2' */ /* Sum: '/Sum3' */ - rtb_Gain3 = rtb_Merge - rtb_Switch2_k; + rtb_Gain3 = rtb_Saturation - rtb_Switch2_k; if (rtb_Gain3 > 32767) { rtb_Gain3 = 32767; } else { @@ -2604,7 +2599,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) * ActionPort: '/Action Port' */ /* Gain: '/Gain4' */ - rtb_Merge = (int16_T)-rtDW->Switch2; + rtb_Saturation = (int16_T)-rtDW->Switch2; /* Switch: '/Switch2' incorporates: * RelationalOperator: '/LowerRelop1' @@ -2642,8 +2637,8 @@ void BLDC_controller_step(RT_MODEL *const rtM) /* End of MinMax: '/MinMax1' */ /* MinMax: '/MinMax2' */ - if (!(rtb_Merge > rtDW->Gain5)) { - rtb_Merge = rtDW->Gain5; + if (!(rtb_Saturation > rtDW->Gain5)) { + rtb_Saturation = rtDW->Gain5; } /* End of MinMax: '/MinMax2' */ @@ -2651,7 +2646,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) /* Outputs for Atomic SubSystem: '/PI_clamp_fixdt' */ rtDW->Merge = (int16_T) PI_clamp_fixdt_a((int16_T)rtb_Gain3, rtP->cf_iqKp, rtP->cf_iqKi, rtDW->UnitDelay4_DSTATE_eu, - rtb_Merge_f_idx_2, rtb_Merge, 0, &rtDW->PI_clamp_fixdt_at); + rtb_Merge_f_idx_2, rtb_Saturation, 0, &rtDW->PI_clamp_fixdt_at); /* End of Outputs for SubSystem: '/PI_clamp_fixdt' */ @@ -2761,20 +2756,20 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Sum: '/Sum6' * Sum: '/Sum6' */ - rtb_Merge = (int16_T)rtb_Gain3; + rtb_Saturation = (int16_T)rtb_Gain3; if (!((int16_T)rtb_Gain3 > (int16_T)rtb_DataTypeConversion)) { - rtb_Merge = (int16_T)rtb_DataTypeConversion; + rtb_Saturation = (int16_T)rtb_DataTypeConversion; } - if (!(rtb_Merge > (int16_T)rtb_Switch1)) { - rtb_Merge = (int16_T)rtb_Switch1; + if (!(rtb_Saturation > (int16_T)rtb_Switch1)) { + rtb_Saturation = (int16_T)rtb_Switch1; } /* Sum: '/Add' incorporates: * MinMax: '/MinMax1' * MinMax: '/MinMax2' */ - rtb_Sum1 = rtb_Switch2_l + rtb_Merge; + rtb_Sum1 = rtb_Switch2_l + rtb_Saturation; if (rtb_Sum1 > 32767) { rtb_Sum1 = 32767; } else { @@ -2853,9 +2848,9 @@ void BLDC_controller_step(RT_MODEL *const rtM) * RelationalOperator: '/Relational Operator6' */ if (rtP->z_ctrlTypSel == 2) { - rtb_Merge = rtDW->Merge; + rtb_Saturation = rtDW->Merge; } else { - rtb_Merge = rtDW->Merge1; + rtb_Saturation = rtDW->Merge1; } /* End of Switch: '/Switch2' */ @@ -2900,11 +2895,11 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Product: '/Product2' */ rtb_Saturation1 = (int16_T)((int16_T)((int16_T)(rtDW->Divide3 * - rtDW->Switch2_e) << 2) + rtb_Divide2_h); + rtDW->Switch2_e) << 2) + rtb_Merge); rtb_Saturation1 -= (int16_T)((int16_T)((int16_T)div_nde_s32_floor (rtb_Saturation1, 23040) * 360) << 6); } else { - rtb_Saturation1 = rtb_Divide2_h; + rtb_Saturation1 = rtb_Merge; } /* End of Switch: '/Switch_PhaAdv' */ @@ -2917,11 +2912,11 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Interpolation_n-D: '/r_sin3PhaB_M1' * Interpolation_n-D: '/r_sin3PhaC_M1' */ - rtb_DataTypeConversion2 = (int16_T)((rtb_Merge * + rtb_DataTypeConversion2 = (int16_T)((rtb_Saturation * rtConstP.r_sin3PhaA_M1_Table[rtb_Sum]) >> 14); - rtb_Saturation1 = (int16_T)((rtb_Merge * + rtb_Saturation1 = (int16_T)((rtb_Saturation * rtConstP.r_sin3PhaB_M1_Table[rtb_Sum]) >> 14); - rtb_Merge_f_idx_2 = (int16_T)((rtb_Merge * + rtb_Merge_f_idx_2 = (int16_T)((rtb_Saturation * rtConstP.r_sin3PhaC_M1_Table[rtb_Sum]) >> 14); /* End of Outputs for SubSystem: '/SIN_Method' */ @@ -2969,12 +2964,12 @@ void BLDC_controller_step(RT_MODEL *const rtM) * About '/z_commutMap_M1': * 2-dimensional Direct Look-Up returning a Column */ - rtb_DataTypeConversion2 = (int16_T)(rtb_Merge * + rtb_DataTypeConversion2 = (int16_T)(rtb_Saturation * rtConstP.z_commutMap_M1_table[rtb_DataTypeConversion]); rtb_Saturation1 = (int16_T)(rtConstP.z_commutMap_M1_table[1 + - rtb_DataTypeConversion] * rtb_Merge); + rtb_DataTypeConversion] * rtb_Saturation); rtb_Merge_f_idx_2 = (int16_T)(rtConstP.z_commutMap_M1_table[2 + - rtb_DataTypeConversion] * rtb_Merge); + rtb_DataTypeConversion] * rtb_Saturation); /* End of Outputs for SubSystem: '/COM_Method' */ } @@ -3018,7 +3013,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) rtDW->UnitDelay2_DSTATE_g = rtDW->UnitDelay6_DSTATE; /* Update for UnitDelay: '/UnitDelay4' */ - rtDW->UnitDelay4_DSTATE_eu = rtb_Merge; + rtDW->UnitDelay4_DSTATE_eu = rtb_Saturation; /* Update for UnitDelay: '/UnitDelay5' */ rtDW->UnitDelay5_DSTATE_l = rtb_RelationalOperator4_d; @@ -3036,14 +3031,13 @@ void BLDC_controller_step(RT_MODEL *const rtM) */ rtY->n_mot = (int16_T)(rtb_Switch2_k >> 4); + /* Outport: '/a_elecAngle' incorporates: + * DataTypeConversion: '/Data Type Conversion3' + */ + rtY->a_elecAngle = (int16_T)(rtb_Merge >> 6); + /* End of Outputs for SubSystem: '/BLDC_controller' */ - /* Outport: '/n_motHiRes' */ - rtY->n_motHiRes = rtb_Switch2_k; - - /* Outport: '/a_elecAngle' */ - rtY->a_elecAngle = rtb_Divide2_h; - /* Outport: '/iq' */ rtY->iq = rtDW->DataTypeConversion[0]; @@ -3068,7 +3062,7 @@ void BLDC_controller_initialize(RT_MODEL *const rtM) /* End of Start for SubSystem: '/F03_Control_Mode_Manager' */ /* Start for If: '/If1' */ - rtDW->If1_ActiveSubsystem_p = -1; + rtDW->If1_ActiveSubsystem = -1; /* Start for IfAction SubSystem: '/F05_Field_Oriented_Control' */ /* Start for If: '/If2' */ diff --git a/BLDC_controller_ert_rtw/BLDC_controller.h b/BLDC_controller_ert_rtw/BLDC_controller.h index 1d9bf7c..264222a 100644 --- a/BLDC_controller_ert_rtw/BLDC_controller.h +++ b/BLDC_controller_ert_rtw/BLDC_controller.h @@ -5,7 +5,7 @@ * * Model version : 1.1284 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Sun Oct 11 20:20:20 2020 + * C/C++ source code generated on : Sun Oct 11 21:38:56 2020 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex @@ -129,7 +129,7 @@ typedef struct { int8_T Switch2_e; /* '/Switch2' */ int8_T UnitDelay2_DSTATE_b; /* '/UnitDelay2' */ int8_T If4_ActiveSubsystem; /* '/If4' */ - int8_T If1_ActiveSubsystem_p; /* '/If1' */ + int8_T If1_ActiveSubsystem; /* '/If1' */ int8_T If2_ActiveSubsystem; /* '/If2' */ int8_T If2_ActiveSubsystem_a; /* '/If2' */ int8_T If1_ActiveSubsystem_e; /* '/If1' */ @@ -216,7 +216,6 @@ typedef struct { int16_T DC_phaC; /* '/DC_phaC' */ uint8_T z_errCode; /* '/z_errCode' */ int16_T n_mot; /* '/n_mot' */ - int16_T n_motHiRes; /* '/n_motHiRes' */ int16_T a_elecAngle; /* '/a_elecAngle' */ int16_T iq; /* '/iq' */ int16_T id; /* '/id' */ diff --git a/BLDC_controller_ert_rtw/BLDC_controller_data.c b/BLDC_controller_ert_rtw/BLDC_controller_data.c index 7b6f6a9..94af034 100644 --- a/BLDC_controller_ert_rtw/BLDC_controller_data.c +++ b/BLDC_controller_ert_rtw/BLDC_controller_data.c @@ -5,7 +5,7 @@ * * Model version : 1.1284 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Sun Oct 11 20:20:20 2020 + * C/C++ source code generated on : Sun Oct 11 21:38:56 2020 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex diff --git a/BLDC_controller_ert_rtw/ert_main.c b/BLDC_controller_ert_rtw/ert_main.c index 20417aa..3b84a12 100644 --- a/BLDC_controller_ert_rtw/ert_main.c +++ b/BLDC_controller_ert_rtw/ert_main.c @@ -5,7 +5,7 @@ * * Model version : 1.1284 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Sun Oct 11 20:20:20 2020 + * C/C++ source code generated on : Sun Oct 11 21:38:56 2020 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview.json index c515578..ddb7833 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview.json @@ -8,7 +8,7 @@ "sid":"BLDCmotor_FOC_R2017b_fixdt", "name":"BLDCmotor_FOC_R2017b_fixdt", "fullname":"BLDCmotor_FOC_R2017b_fixdt", - "label":"BLDCmotor_FOC_R2017b_fixdt", + "label":"BLDCmotor_FOC_R2017b_fixdt*", "parent":0, "descendants":[ 2, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10035_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10035_d.svg index 4c16bee..76398d4 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10035_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10035_d.svg @@ -519,5 +519,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10066_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10066_d.json index 5555aab..f45483f 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10066_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10066_d.json @@ -196,11 +196,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10517", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10518", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"n_fieldWeakAuthLo", - "label":"n_fieldWeakAuthLo", + "name":"r_fieldWeakHi", + "label":"r_fieldWeakHi", "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ @@ -214,56 +214,7 @@ "FramePeriod" ], "values":[ - "n_fieldWeakAuthLo", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10516", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"n_fieldWeakAuthHi", - "label":"n_fieldWeakAuthHi", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "n_fieldWeakAuthHi", + "r_fieldWeakHi", "on", "inf", "[]", @@ -342,6 +293,249 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10513", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10516", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"n_fieldWeakAuthHi", + "label":"n_fieldWeakAuthHi", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "n_fieldWeakAuthHi", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10510", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10506", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator1", + "label":"Relational Operator1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10504", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto27", + "label":"Goto27", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10520", "className":"Simulink.Outport", @@ -423,270 +617,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10513", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10511", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10510", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10508", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10506", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator1", - "label":"Relational Operator1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10504", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10503", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", + "name":"Goto22", + "label":"Goto22", "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ @@ -695,89 +630,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10515", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"id_fieldWeakMax", - "label":"id_fieldWeakMax", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "id_fieldWeakMax", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10502", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_fieldWeak", + "r_inpTgt", "local", "Tag" ], @@ -829,6 +682,98 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10502", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10512", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum4", + "label":"Sum4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10499", "className":"Simulink.From", @@ -892,11 +837,60 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10503", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10515", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"id_fieldWeakMax", + "label":"id_fieldWeakMax", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "id_fieldWeakMax", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10505", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto22", - "label":"Goto22", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ @@ -905,7 +899,7 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "r_blendFactor", "local", "Tag" ], @@ -924,6 +918,86 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10517", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"n_fieldWeakAuthLo", + "label":"n_fieldWeakAuthLo", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "n_fieldWeakAuthLo", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10497", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlTypSel", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10495", "className":"Simulink.Product", @@ -982,11 +1056,50 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10494", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10508", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10493", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", + "name":"Divide14", + "label":"Divide14", "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ @@ -1004,7 +1117,7 @@ "SampleTime" ], "values":[ - "**", + "*/", "Element-wise(.*)", "off", "[]", @@ -1038,37 +1151,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10497", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlTypSel", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10492", "className":"Simulink.Product", @@ -1127,42 +1209,71 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10509", - "className":"Simulink.Sum", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10507", + "className":"Saturation Dynamic", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", + "name":"Saturation Dynamic", + "label":"Saturation Dynamic", "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "DoSatur" ], "values":[ - "rectangular", - "+-", - "off", - "Inherit: Inherit via internal rule", "[]", "[]", - "Inherit: Same as first input", + "Inherit: Same as second input", "off", - "Simplest", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10491", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM2", + "label":"CTRL_COMM2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "CTRL_FOC", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", "off", - "1", - "All dimensions", - "-1" + "inf" ], "tabs":[ "Main", @@ -1171,8 +1282,8 @@ ], "tabs_idx":[ 0, - 2, - 10 + 3, + 7 ] }, "viewer":{ @@ -1181,7 +1292,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Constant", "masktype":"" } }, @@ -1263,246 +1374,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10505", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_blendFactor", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10489", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10507", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic", - "label":"Saturation Dynamic", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10518", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"r_fieldWeakHi", - "label":"r_fieldWeakHi", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "r_fieldWeakHi", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10493", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide14", - "label":"Divide14", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "*/", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(0,16,15)", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10500", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_fieldWeak", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10488", "className":"Simulink.Inport", @@ -1570,6 +1441,181 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10511", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10509", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10494", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(0,16,15)", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10487", "className":"Simulink.Inport", @@ -1637,55 +1683,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10491", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM2", - "label":"CTRL_COMM2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "CTRL_FOC", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10486", "className":"Simulink.Inport", @@ -1754,53 +1751,25 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10512", - "className":"Simulink.Sum", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10500", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Sum4", - "label":"Sum4", + "name":"From8", + "label":"From8", "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "rectangular", - "+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "r_fieldWeak", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 10 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1808,7 +1777,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10489", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10066", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", "masktype":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10066_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10066_d.png index ed880b4..20318dc 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10066_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10066_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10066_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10066_d.svg index 56416e6..2ef769e 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10066_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10066_d.svg @@ -149,11 +149,11 @@ - - + + - + @@ -163,107 +163,44 @@ - - n_fieldWeakAuthLo + + r_fieldWeakHi - + - - + + - + - - n_fieldWeakAuthLo + + r_fieldWeakHi - + - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - n_fieldWeakAuthHi - - - - - - - - - - - - - - - - - - - - - - n_fieldWeakAuthHi - - - - - - - - - - - - - - + sfix16_En4 @@ -285,11 +222,11 @@ - + - + a_phaAdvMax @@ -307,11 +244,11 @@ - + - + a_phaAdvMax @@ -322,11 +259,11 @@ - + - + sfix16_En4 @@ -336,72 +273,80 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - r_fieldWeak - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -409,7 +354,7 @@ - + @@ -417,7 +362,7 @@ - + @@ -425,7 +370,7 @@ - + @@ -433,7 +378,7 @@ - + @@ -441,7 +386,7 @@ - + @@ -449,7 +394,7 @@ - + @@ -457,7 +402,7 @@ - + @@ -465,7 +410,7 @@ - + @@ -473,78 +418,22 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + T - + - + F @@ -562,11 +451,11 @@ - + - + sfix16_En4 @@ -578,59 +467,58 @@ - - - + + + - - + + - - + + - - - - - - - - - - - - - - - - - - + + n_fieldWeakAuthHi - - + + + + + + + + + + + + + + + + + n_fieldWeakAuthHi - + - - + + - + sfix16_En4 @@ -652,27 +540,27 @@ - + - + - + - + - + - + @@ -690,123 +578,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -828,27 +604,27 @@ - + - + - + - + - + - + @@ -874,11 +650,11 @@ - + - + boolean @@ -900,11 +676,11 @@ - + - + [n_motAbs] @@ -923,59 +699,44 @@ - - - + + + - - + + - - + + - - id_fieldWeakMax + + 1 - - + + - - + + - - + + - - id_fieldWeakMax - - - - - - - - - - - - - - - sfix16_En4 + + r_fieldWeak @@ -986,28 +747,28 @@ - - + + - + - - + + - - [r_fieldWeak] + + [r_inpTgt] - + @@ -1029,11 +790,11 @@ - + - + [z_ctrlTypSel] @@ -1050,6 +811,103 @@ + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -1062,11 +920,11 @@ - + - + [r_inpTgt] @@ -1084,11 +942,11 @@ - + - + sfix16_En4 @@ -1110,11 +968,11 @@ - + - + [n_motAbs] @@ -1132,11 +990,11 @@ - + - + sfix16_En4 @@ -1148,28 +1006,91 @@ - - - + + + - - + + - - + + - - [r_inpTgt] + + id_fieldWeakMax - + + + + + + + + + + + + + + + + + id_fieldWeakMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_blendFactor] + + + + + + @@ -1181,51 +1102,58 @@ - - - + + + - - + + - - + + - - - - - - - - - - + + n_fieldWeakAuthLo - - + + + + + + + + + + + + + + + + + n_fieldWeakAuthLo - + - - + + - + sfix16_En4 @@ -1235,62 +1163,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ufix16_En15 - - - - - - - - @@ -1303,11 +1175,11 @@ - + - + [z_ctrlTypSel] @@ -1325,11 +1197,11 @@ - + - + uint8 @@ -1339,11 +1211,252 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ufix16_En15 + + + + + + + + - + @@ -1351,35 +1464,35 @@ - + - + - + - + - + - + - + - + @@ -1398,11 +1511,11 @@ - + - + ufix16_En15 @@ -1414,59 +1527,107 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + up - - + + - - + + u - - + + - - + + lo + + + + + + + + y - - + + - + - - + + - + sfix16_En4 @@ -1476,11 +1637,59 @@ + + + + + + + + + + + + + + + + + + CTRL_FOC + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + - + @@ -1488,35 +1697,35 @@ - + - + - + - + - + - + - + - + @@ -1542,11 +1751,11 @@ - + - + sfix16_En4 @@ -1568,11 +1777,11 @@ - + - + [r_blendFactor] @@ -1590,11 +1799,11 @@ - + - + ufix16_En15 @@ -1604,383 +1813,6 @@ - - - - - - - - - - - - - - - - - - [r_blendFactor] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - r_fieldWeakHi - - - - - - - - - - - - - - - - - - - - - - r_fieldWeakHi - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ufix16_En15 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -1993,11 +1825,11 @@ - + - + 3 @@ -2015,11 +1847,11 @@ - + - + n_motAbs @@ -2030,11 +1862,11 @@ - + - + sfix16_En4 @@ -2044,6 +1876,190 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ufix16_En15 + + + + + + + + @@ -2056,11 +2072,11 @@ - + - + 2 @@ -2078,11 +2094,11 @@ - + - + r_inpTgt @@ -2093,11 +2109,11 @@ - + - + sfix16_En4 @@ -2107,54 +2123,6 @@ - - - - - - - - - - - - - - - - - - CTRL_FOC - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - @@ -2167,11 +2135,11 @@ - + - + 1 @@ -2189,11 +2157,11 @@ - + - + z_ctrlTypSel @@ -2204,11 +2172,11 @@ - + - + uint8 @@ -2220,59 +2188,43 @@ - - - + + + - - + + - - + + - - - - - - - - - - - - - - - - - - + + [r_fieldWeak] - - + + - + - - + + - + sfix16_En4 @@ -2282,6 +2234,54 @@ + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + @@ -2369,10 +2369,10 @@ - + - + @@ -2796,5 +2796,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10164_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10164_d.json index 47581d5..61affec 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10164_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10164_d.json @@ -128,136 +128,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10167", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"task1", - "label":"task1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10164", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10185", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay6", - "label":"UnitDelay6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10164", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10184", "className":"Simulink.UnitDelay", @@ -308,106 +178,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10162", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay4", - "label":"UnitDelay4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10164", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "1", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10183", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay2", - "label":"UnitDelay2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10164", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "1", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10186", "className":"Simulink.Outport", @@ -488,6 +258,156 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10185", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay6", + "label":"UnitDelay6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10164", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10183", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay2", + "label":"UnitDelay2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10164", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "1", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10162", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay4", + "label":"UnitDelay4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10164", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "1", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10190", "className":"Simulink.DataTypeConversion", @@ -535,6 +455,86 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10167", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"task1", + "label":"task1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10164", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10163", "className":"Simulink.Logic", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10164_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10164_d.svg index d9a6ffc..6e1463c 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10164_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10164_d.svg @@ -89,44 +89,139 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + - + - + - - 1 + + 3 - + - + - - + + - - task1 + + task3 @@ -147,35 +242,35 @@ - + - + - + - + - + - + - + - + @@ -201,11 +296,11 @@ - + - + Ini=0 @@ -216,11 +311,11 @@ - + - + boolean @@ -230,218 +325,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -449,35 +337,35 @@ - + - + - + - + - + - + - + - + @@ -503,11 +391,11 @@ - + - + Ini=1 @@ -518,11 +406,11 @@ - + - + boolean @@ -534,44 +422,108 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - 3 - - - + + - - - + + + - - + + - - task3 + + Ini=1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -592,19 +544,19 @@ - + - + - + - + @@ -630,11 +582,11 @@ - + - + boolean @@ -644,6 +596,54 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + task1 + + + + + + + + @@ -871,5 +871,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10364_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10364_d.json index ebfe50a..afb64bf 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10364_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10364_d.json @@ -1,90 +1,10 @@ [ { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10368", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"Vq", - "label":"Vq", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9171", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9143", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Voltage_Mode", - "label":"Voltage_Mode", + "name":"Vd_Calculation", + "label":"Vd_Calculation", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -215,6 +135,535 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8912", + "className":"Simulink.Merge", + "icon":"WebViewIcon3", + "name":"Merge", + "label":"Merge", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Inputs", + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets" + ], + "values":[ + "4", + "[]", + "off", + "[]" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Merge", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10425", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto9", + "label":"Goto9", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10420", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_nLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10419", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10370", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vd", + "label":"Vd", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8852", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto30", + "label":"Goto30", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10388", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11514", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto23", + "label":"Goto23", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_cruiseCtrlEna", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10368", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vq", + "label":"Vq", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11477", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto22", + "label":"Goto22", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "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":"BLDCmotor_FOC_R2017b_fixdt:10735", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto21", + "label":"Goto21", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8841", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto20", + "label":"Goto20", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vd", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10412", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9074", "className":"Simulink.SubSystem", @@ -312,319 +761,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8912", - "className":"Simulink.Merge", - "icon":"WebViewIcon3", - "name":"Merge", - "label":"Merge", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Inputs", - "InitialOutput", - "AllowUnequalInputPortWidths", - "InputPortOffsets" - ], - "values":[ - "4", - "[]", - "off", - "[]" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Merge", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9715", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1", - "u1 ~= 0", - "", - "off", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10391", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10419", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10421", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto31", - "label":"Goto31", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_limProtErr", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8852", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto30", - "label":"Goto30", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10388", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlMod", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10387", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11477", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto22", - "label":"Goto22", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "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":"BLDCmotor_FOC_R2017b_fixdt:10409", "className":"Simulink.Goto", @@ -692,11 +828,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10418", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10722", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -705,7 +841,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "r_iqLimProtMax", "local", "Tag" ], @@ -757,39 +893,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10420", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_nLimProtMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10398", "className":"Simulink.Goto", @@ -823,669 +926,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10408", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_Tgt", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10030", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8834", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_Vlt", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10427", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_mot", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10722", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_iqLimProtMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8816", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From60", - "label":"From60", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8814", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From59", - "label":"From59", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8824", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From68", - "label":"From68", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_limProtErr", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8802", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From47", - "label":"From47", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_Spd", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8813", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From58", - "label":"From58", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10742", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8799", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From44", - "label":"From44", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8801", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From46", - "label":"From46", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_Vlt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10411", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10730", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_nLimProtMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8812", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From57", - "label":"From57", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10413", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto29", - "label":"Goto29", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8793", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From38", - "label":"From38", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10367", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8791", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From36", - "label":"From36", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_mot", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8792", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From37", - "label":"From37", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11482", "className":"Simulink.From", @@ -1518,42 +958,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8780", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From25", - "label":"From25", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8841", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10424", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto20", - "label":"Goto20", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -1562,7 +971,7 @@ "IconDisplay" ], "values":[ - "Vd", + "iq_max", "local", "Tag" ], @@ -1582,11 +991,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10724", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11478", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From7", + "label":"From7", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -1594,7 +1003,7 @@ "IconDisplay" ], "values":[ - "r_iqLimProtMax", + "VqFinPrev", "Tag" ], "tabs":[ @@ -1644,11 +1053,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8779", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10367", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", + "name":"From6", + "label":"From6", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -1656,7 +1065,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "Vq", "Tag" ], "tabs":[ @@ -1675,11 +1084,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10369", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8814", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From59", + "label":"From59", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -1687,7 +1096,7 @@ "IconDisplay" ], "values":[ - "Vd", + "iq_max", "Tag" ], "tabs":[ @@ -1706,11 +1115,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8771", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8813", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", + "name":"From58", + "label":"From58", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -1718,7 +1127,7 @@ "IconDisplay" ], "values":[ - "b_enaAdvCtrl", + "id_min", "Tag" ], "tabs":[ @@ -1737,11 +1146,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8766", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10030", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From9", + "label":"From9", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -1749,7 +1158,7 @@ "IconDisplay" ], "values":[ - "id", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -1768,808 +1177,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10366", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8777", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11476", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"VqFinPrev", - "label":"VqFinPrev", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "21", - "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":"BLDCmotor_FOC_R2017b_fixdt:8789", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From34", - "label":"From34", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10370", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"Vd", - "label":"Vd", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10416", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"iq_limProtErr", - "label":"iq_limProtErr", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "19", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10721", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_nLimProtMax", - "label":"r_nLimProtMax", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "18", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8809", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From54", - "label":"From54", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10720", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_iqLimProtMax", - "label":"r_iqLimProtMax", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "17", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10423", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"iq_min", - "label":"iq_min", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "16", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8800", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From45", - "label":"From45", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10422", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"iq_max", - "label":"iq_max", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "15", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11512", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_cruiseCtrlEna", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10407", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"id_min", - "label":"id_min", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "14", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8770", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_Tgt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8773", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9143", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9109", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Vd_Calculation", - "label":"Vd_Calculation", + "name":"Torque_Mode", + "label":"Torque_Mode", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -2662,11 +1274,197 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8830", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8812", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From57", + "label":"From57", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8816", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From60", + "label":"From60", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8809", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From54", + "label":"From54", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8808", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From53", + "label":"From53", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10742", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8803", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From48", + "label":"From48", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_Trq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10391", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -2675,7 +1473,7 @@ "IconDisplay" ], "values":[ - "Vq_Open", + "b_enaAdvCtrl", "local", "Tag" ], @@ -2695,20 +1493,144 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8832", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8802", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", + "name":"From47", + "label":"From47", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "Vq_Spd", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8801", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From46", + "label":"From46", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_Vlt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8799", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From44", + "label":"From44", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10730", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10408", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_Tgt", "local", "Tag" ], @@ -2728,61 +1650,25 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10406", - "className":"Simulink.Inport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8793", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"id_max", - "label":"id_max", + "name":"From38", + "label":"From38", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "GotoTag", + "IconDisplay" ], "values":[ - "13", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "Vq_max", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2790,74 +1676,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10417", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Vq_nLimProtMax", - "label":"Vq_nLimProtMax", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "20", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", + "blocktype":"From", "masktype":"" } }, @@ -2959,11 +1778,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8804", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8789", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From49", - "label":"From49", + "name":"From34", + "label":"From34", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -2971,7 +1790,7 @@ "IconDisplay" ], "values":[ - "Vq_Open", + "Vq_min", "Tag" ], "tabs":[ @@ -2989,6 +1808,810 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10724", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_iqLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10413", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto29", + "label":"Goto29", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8780", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From25", + "label":"From25", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10369", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8774", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From18", + "label":"From18", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8773", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From16", + "label":"From16", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8792", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From37", + "label":"From37", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8832", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto12", + "label":"Goto12", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_Spd", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10421", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto31", + "label":"Goto31", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_limProtErr", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11512", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_cruiseCtrlEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8791", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From36", + "label":"From36", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_mot", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8766", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8771", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From14", + "label":"From14", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8765", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10366", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8830", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto10", + "label":"Goto10", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_Open", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10411", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto19", + "label":"Goto19", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11513", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_cruiseCtrlEna", + "label":"b_cruiseCtrlEna", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "22", + "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":"BLDCmotor_FOC_R2017b_fixdt:10418", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10427", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_mot", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10720", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_iqLimProtMax", + "label":"r_iqLimProtMax", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "17", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10406", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"id_max", + "label":"id_max", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "13", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10415", "className":"Simulink.Inport", @@ -3057,11 +2680,108 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10403", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9171", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Voltage_Mode", + "label":"Voltage_Mode", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10721", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"id", - "label":"id", + "name":"r_nLimProtMax", + "label":"r_nLimProtMax", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -3084,7 +2804,208 @@ "OutputFunctionCall" ], "values":[ - "7", + "18", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11476", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"VqFinPrev", + "label":"VqFinPrev", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "21", + "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":"BLDCmotor_FOC_R2017b_fixdt:10414", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vq_max", + "label":"Vq_max", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "11", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10422", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq_max", + "label":"iq_max", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "15", "Port number", "[]", "[]", @@ -3191,60 +3112,36 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10402", - "className":"Simulink.Inport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9715", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"id_Tgt", - "label":"id_Tgt", + "name":"If1", + "label":"If1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "ZeroCross" ], "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", + "1", + "u1 ~= 0", "", - "on", "off", - "off", - "off" + "-1", + "on" ], "tabs":[ - "Main", - "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 4 ] }, "viewer":{ @@ -3253,16 +3150,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10426", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10417", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", + "name":"Vq_nLimProtMax", + "label":"Vq_nLimProtMax", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -3285,7 +3182,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "20", "Port number", "[]", "[]", @@ -3358,21 +3255,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10425", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8800", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"From45", + "label":"From45", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "iq_min", - "local", + "iq", "Tag" ], "tabs":[ @@ -3386,113 +3281,47 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9109", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Torque_Mode", - "label":"Torque_Mode", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8770", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" + "GotoTag", + "IconDisplay" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" + "id_Tgt", + "Tag" ], "tabs":[ - "Main", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 6 - ] + "tabs_idx":0 }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10734", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10403", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"r_inpTgtScaAbs", - "label":"r_inpTgtScaAbs", + "name":"id", + "label":"id", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -3515,7 +3344,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "7", "Port number", "[]", "[]", @@ -3554,265 +3383,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10424", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8774", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10404", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Vd_max", - "label":"Vd_max", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "9", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10735", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto21", - "label":"Goto21", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8765", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8803", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From48", - "label":"From48", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_Trq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10412", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10397", "className":"Simulink.Inport", @@ -3881,11 +3451,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10372", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10423", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlMod", - "label":"z_ctrlMod", + "name":"iq_min", + "label":"iq_min", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -3908,7 +3478,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "16", "Port number", "[]", "[]", @@ -3948,11 +3518,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11478", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8777", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From20", + "label":"From20", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -3960,7 +3530,7 @@ "IconDisplay" ], "values":[ - "VqFinPrev", + "Vq_min", "Tag" ], "tabs":[ @@ -3979,11 +3549,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10414", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10402", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vq_max", - "label":"Vq_max", + "name":"id_Tgt", + "label":"id_Tgt", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -4006,7 +3576,7 @@ "OutputFunctionCall" ], "values":[ - "11", + "6", "Port number", "[]", "[]", @@ -4046,11 +3616,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11514", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10387", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto23", - "label":"Goto23", + "name":"Goto27", + "label":"Goto27", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -4059,7 +3629,7 @@ "IconDisplay" ], "values":[ - "b_cruiseCtrlEna", + "r_inpTgtSca", "local", "Tag" ], @@ -4079,11 +3649,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8808", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8779", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From53", - "label":"From53", + "name":"From23", + "label":"From23", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -4091,7 +3661,7 @@ "IconDisplay" ], "values":[ - "Vd_max", + "z_ctrlMod", "Tag" ], "tabs":[ @@ -4110,11 +3680,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10371", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10734", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_enaAdvCtrl", - "label":"b_enaAdvCtrl", + "name":"r_inpTgtScaAbs", + "label":"r_inpTgtScaAbs", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -4137,7 +3707,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "4", "Port number", "[]", "[]", @@ -4244,11 +3814,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11513", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10426", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"b_cruiseCtrlEna", - "label":"b_cruiseCtrlEna", + "name":"n_mot", + "label":"n_mot", "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", "inspector":{ "params":[ @@ -4271,7 +3841,437 @@ "OutputFunctionCall" ], "values":[ - "22", + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10416", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq_limProtErr", + "label":"iq_limProtErr", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "19", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10372", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlMod", + "label":"z_ctrlMod", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8804", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From49", + "label":"From49", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_Open", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8824", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From68", + "label":"From68", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_limProtErr", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10371", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_enaAdvCtrl", + "label":"b_enaAdvCtrl", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8834", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto14", + "label":"Goto14", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_Vlt", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10404", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vd_max", + "label":"Vd_max", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "9", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10407", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"id_min", + "label":"id_min", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10364", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "14", "Port number", "[]", "[]", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10364_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10364_d.png index 8bb7dc9..1fbc23c 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10364_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10364_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10364_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10364_d.svg index 4a362f8..86ff90f 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10364_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10364_d.svg @@ -13,57 +13,9 @@ - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - Vq - - - - - - - - - - - - - + + + @@ -71,74 +23,74 @@ - - + + - - + + - - r_inpTgtSca + + id_Tgt + + + + + + + + id + + + + + + + + Vd_max + + + + + + + + Vd_min - + - - r_inpTgtScaAbs + + id_max - + - - Vq_max + + id_min - + - - Vq_min + + Vd - + - - r_iqLimProtMax - - - - - - - - r_nLimProtMax - - - - - - - - Vq_Vlt - - - - - - - - case: { } + + if { } @@ -150,8 +102,8 @@ - - + + @@ -163,16 +115,16 @@ - - + + - - + + - - Voltage_Mode + + Vd_Calculation @@ -184,16 +136,16 @@ - - + + - - + + - - sfix16_En4 + + action @@ -205,16 +157,16 @@ - - + + - - + + - - action + + sfix16_En4 @@ -241,43 +193,43 @@ - + - + u1 - + - + case [ 1 ]: - + - + case [ 2 ]: - + - + case [ 3 ]: - + - + default: @@ -291,15 +243,15 @@ - + - - + + - + action @@ -310,11 +262,26 @@ - + - + + action + + + + + + + + + + + + + + action @@ -325,27 +292,502 @@ - + - + action - - - - + + + + + + + + + + + + + + + - - + + - - action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + Vd + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlMod] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cruiseCtrlEna] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + Vq + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [id] + + + + + + + @@ -372,75 +814,75 @@ - + - + r_inpTgtSca - + - + Vq_max - + - + Vq_min - + - + n_mot - + - + iq_limProtErr - + - + VqFinPrev - + - + b_cruiseCtrlEna - + - + Vq_Spd - + - + case: { } @@ -470,11 +912,11 @@ - + - + Speed_Mode @@ -487,16 +929,16 @@ - - + + - - + + - - action + + sfix16_En4 @@ -508,141 +950,15 @@ - - + + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - + action @@ -652,240 +968,15 @@ - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_limProtErr] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - + + + + + + @@ -895,11 +986,11 @@ - + - + [Vd_max] @@ -928,11 +1019,11 @@ - + - + [r_nLimProtMax] @@ -949,285 +1040,6 @@ - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_Trq] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_Tgt] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_Vlt] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - @@ -1240,11 +1052,11 @@ - + - + [r_iqLimProtMax] @@ -1263,11 +1075,206 @@ - - + + + + + + + + + + + + + + + + [Vq_Trq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + @@ -1277,29 +1284,77 @@ - - [iq_min] + + [Vq_nLimProtMax] - + - + - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1321,11 +1376,11 @@ - + - + [iq_max] @@ -1343,107 +1398,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_limProtErr] - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_Spd] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -1465,11 +1424,11 @@ - + - + [id_min] @@ -1487,11 +1446,11 @@ - + - + sfix16_En4 @@ -1503,225 +1462,228 @@ - - + + - + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + - + - - [r_inpTgtScaAbs] - - - - - - - - - - - - - - + + r_inpTgtSca - + - - sfix16_En4 + + Vq_max + + + + + + + + Vq_min - - - - - - - - - - - - - - - - - - - + - - [Vq_min] - - - - - - - - - - - - - - + + iq - + - - sfix16_En4 + + iq_max + + + + + + + + iq_min - - - - - - - - - - - - - - - - - - - + - - [Vq_Vlt] - - - - - - - - - - - - - - + + Vq_nLimProtMax - + - - sfix16_En4 + + VqFinPrev + + + + + + + + Vq_Trq - - - - - - - - - - - - - - - - - - - + - - [id_max] + + case: { } - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - [r_nLimProtMax] + + - - - + + + + + + + + + + + + + + + + + Torque_Mode - + + + + + + + - - + + - + sfix16_En4 + + + + + + + + + + + + + + + + + action + + + + @@ -1729,6 +1691,12 @@ + + + + + + @@ -1776,1018 +1744,43 @@ - - - + + + - - + + - - - - - [id_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] + + [iq_min] - + - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_iqLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [id] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 21 - - - - - - - - - - - - - - - - - - - - - - VqFinPrev - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - Vd - - - - - - - - - - - - - - - - - - - - - - - - - - 19 - - - - - - - - - - - - - - - - - - - - - - iq_limProtErr - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - 18 - - - - - - - - - - - - - - - - - - - - - - r_nLimProtMax - - - - - - - - - - - - - - + sfix16_En4 @@ -2809,11 +1802,11 @@ - + - + [Vd_min] @@ -2831,11 +1824,11 @@ - + - + sfix16_En4 @@ -2847,169 +1840,43 @@ - - - - - - - - - - - - - - - - 17 - - - - - - - - - - - - - - - - - - - - - - r_iqLimProtMax - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 16 - - - - - - - - - - - - - - - - - - - - - - iq_min - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - + - - [iq] + + [Vd_max] - + - + - - + + - + sfix16_En4 @@ -3021,169 +1888,43 @@ - - - - - - - - - - - - - - - - 15 - - - - - - - - - - - - - - - - - - - - - - iq_max - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - + - - [b_cruiseCtrlEna] + + [r_inpTgtScaAbs] - + - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 14 - - - - - - - - - - - - - - - - - - - - - - id_min - - - - - - + - - + + - + sfix16_En4 @@ -3195,43 +1936,43 @@ - - + + - + - + - - [id_Tgt] + + [Vq_Trq] - + - + - - + + - + sfix16_En4 @@ -3243,246 +1984,28 @@ - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - id_Tgt - - - - - - - - id - - - - - - - - Vd_max - - - - - - - - Vd_min - - - - - - - - id_max - - - - - - - - id_min - - - - - - - - Vd - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Vd_Calculation - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - + + - + - - + + - - [Vq_Open] + + [b_enaAdvCtrl] - + @@ -3494,91 +2017,43 @@ - - - + + + - - + + - - + + - + [Vq_Spd] - - - - - - - - - - - - - - - - - - - - - - - - - - - - 13 - - - - - - - - - - - - - - - - - - - - - - id_max + + - + - - + + - + sfix16_En4 @@ -3590,58 +2065,220 @@ - - - + + + - - + + - - + + - - 20 + + [Vq_Vlt] - - - - - - - - - - - - - - - - - Vq_nLimProtMax + + - + - - + + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_Tgt] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -3655,7 +2292,7 @@ - + @@ -3669,27 +2306,27 @@ - + - + r_inpTgtSca - + - + Vq_Open - + - + default: { } @@ -3719,11 +2356,11 @@ - + - + Open_Mode @@ -3740,11 +2377,11 @@ - + - + action @@ -3761,11 +2398,11 @@ - + - + sfix16_En4 @@ -3777,49 +2414,1045 @@ - + - + - + - + - - [Vq_Open] + + [Vq_min] - + - + - - + + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Spd] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_limProtErr] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cruiseCtrlEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Open] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [id_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 22 + + + + + + + + + + + + + + + + + + + + + + b_cruiseCtrlEna + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 17 + + + + + + + + + + + + + + + + + + + + + + r_iqLimProtMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 13 + + + + + + + + + + + + + + + + + + + + + + id_max + + + + + + + + + + + + + + sfix16_En4 @@ -3841,11 +3474,11 @@ - + - + 12 @@ -3863,11 +3496,11 @@ - + - + Vq_min @@ -3878,11 +3511,11 @@ - + - + sfix16_En4 @@ -3894,327 +3527,9 @@ - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - id - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 10 - - - - - - - - - - - - - - - - - - - - - - Vd_min - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - id_Tgt - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - n_mot - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_min] - - - - - - - - - - - - - - - - - - - - + + + @@ -4222,89 +3537,73 @@ - - + + - - + + - + r_inpTgtSca - - + + - + + r_inpTgtScaAbs + + + + + + + Vq_max - - + + - + Vq_min - - + + - - iq + + r_iqLimProtMax - - + + - - iq_max + + r_nLimProtMax - - + + - - iq_min + + Vq_Vlt - - + + - - Vq_nLimProtMax - - - - - - - - VqFinPrev - - - - - - - - Vq_Trq - - - - - - - + case: { } @@ -4317,8 +3616,8 @@ - - + + @@ -4330,16 +3629,16 @@ - - + + - - + + - - Torque_Mode + + Voltage_Mode @@ -4351,15 +3650,15 @@ - + - - + + - + action @@ -4372,15 +3671,15 @@ - + - - + + - + sfix16_En4 @@ -4392,64 +3691,64 @@ - + - + - + - + - - 4 + + 18 - + - - + + - - + + - - r_inpTgtScaAbs + + r_nLimProtMax - + - - + + - + sfix16_En4 @@ -4461,475 +3760,58 @@ - - - - - - - - - - - - - - - - [iq_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - + - - 9 + + 21 - + - - + + - - + + - - Vd_max + + VqFinPrev - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtScaAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_Trq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8 - - - - - - - - - - - - - - - - - - - - - - iq - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - z_ctrlMod - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -4951,11 +3833,11 @@ - + - + 11 @@ -4973,11 +3855,11 @@ - + - + Vq_max @@ -4988,11 +3870,11 @@ - + - + sfix16_En4 @@ -5004,28 +3886,273 @@ - - - + + + - - + + - - + + - - [b_cruiseCtrlEna] + + 15 - + + + + + + + + + + + + + + + + + iq_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 10 + + + + + + + + + + + + + + + + + + + + + + Vd_min + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + 20 + + + + + + + + + + + + + + + + + + + + + + Vq_nLimProtMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_min] + + + + + + @@ -5037,43 +4164,43 @@ - - + + - + - + - - [Vd_max] + + [iq] - + - + - - + + - + sfix16_En4 @@ -5085,59 +4212,488 @@ - - - + + + - - + + - - + + - - 1 + + [id_Tgt] - + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + - - + + - - + + - - b_enaAdvCtrl + + id - - + + - - + + - - boolean + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + + + + + + + + + + + + + + + + + + + + + + iq + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 16 + + + + + + + + + + + + + + + + + + + + + + iq_min + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + id_Tgt + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlMod] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtScaAbs + + + + + + + + + + + + + + + sfix16_En4 @@ -5158,11 +4714,11 @@ - + - + 3 @@ -5180,11 +4736,11 @@ - + - + r_inpTgtSca @@ -5195,11 +4751,11 @@ - + - + sfix16_En4 @@ -5211,11 +4767,455 @@ - - + + - + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + n_mot + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 19 + + + + + + + + + + + + + + + + + + + + + + iq_limProtErr + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_ctrlMod + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Open] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_limProtErr] + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + b_enaAdvCtrl + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_Vlt] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 9 + + + + + + + + + + + + + + + + + + + + + + Vd_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + @@ -5225,45 +5225,45 @@ - - 22 + + 14 - + - - + + - + - - b_cruiseCtrlEna + + id_min - - + + - + - - boolean + + sfix16_En4 @@ -6240,5 +6240,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2779_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2779_d.json index f117edd..b6e3031 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2779_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2779_d.json @@ -138,73 +138,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2909", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"init", - "label":"init", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2779", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2787", "className":"Simulink.DataTypeConversion", @@ -252,73 +185,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2786", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"u", - "label":"u", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2779", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2908", "className":"Simulink.Delay", @@ -387,6 +253,140 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2909", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"init", + "label":"init", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2779", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2786", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"u", + "label":"u", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2779", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2909#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2779_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2779_d.svg index 442a590..5f3dfe2 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2779_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2779_d.svg @@ -131,69 +131,6 @@ - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - init - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - @@ -206,19 +143,19 @@ - + - + - + - + @@ -244,11 +181,11 @@ - + - + sfix16_En4 @@ -258,6 +195,141 @@ + + + + + + + + + + + + + + + + + + x0 + + + + + + + + u + + + + + + + + Z + + + + + + + + -1 + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + init + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + @@ -270,11 +342,11 @@ - + - + 1 @@ -292,11 +364,11 @@ - + - + u @@ -307,83 +379,11 @@ - + - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - x0 - - - - - - - - u - - - - - - - - Z - - - - - - - - -1 - - - - - - - - - - - - - - - - - - - - - + sfix32_En20 @@ -485,5 +485,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2791_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2791_d.json index 4e1c72a..efb1159 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2791_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2791_d.json @@ -1,4 +1,84 @@ [ + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2791:2710", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"hitMin", + "label":"hitMin", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2791", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2791:2377", "className":"Simulink.Outport", @@ -159,188 +239,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2791:2710", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"hitMin", - "label":"hitMin", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2791", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2791:2848", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2791", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2791:2704", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"LowerRelop1", - "label":"LowerRelop1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2791", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - ">", - "off", - "boolean", - "Nearest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2791:2707", "className":"Simulink.RelationalOperator", @@ -444,60 +342,38 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2791:2701", - "className":"Simulink.Inport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2791:2704", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"lo", - "label":"lo", + "name":"LowerRelop1", + "label":"LowerRelop1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2791", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", + "Operator", + "InputSameDT", "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "RndMeth", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "ZeroCross" ], "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", + ">", "off", - "inherit", + "boolean", + "Nearest", "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "on" ], "tabs":[ "Main", - "Signal Attributes", + "Data Type", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 1, + 4 ] }, "viewer":{ @@ -506,7 +382,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"RelationalOperator", "masktype":"" } }, @@ -577,6 +453,130 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2791:2701", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"lo", + "label":"lo", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2791", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2791:2848", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2791", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2791:2699", "className":"Simulink.Inport", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2791_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2791_d.svg index baf5b2e..ae4d360 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2791_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2791_d.svg @@ -10,6 +10,54 @@ + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + hitMin + + + + + + + @@ -23,11 +71,11 @@ - + - + 2 @@ -45,11 +93,11 @@ - + - + y @@ -71,11 +119,11 @@ - + - + 1 @@ -93,11 +141,11 @@ - + - + hitMax @@ -107,325 +155,6 @@ - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - hitMin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - LowerRelop1 - - - - - - - - - - - - - - - boolean - - - - - - - - @@ -438,19 +167,19 @@ - + - + - + - + @@ -476,11 +205,11 @@ - + - + UpperRelop @@ -491,11 +220,11 @@ - + - + boolean @@ -517,155 +246,155 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T - + - + F @@ -683,11 +412,153 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + LowerRelop1 + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + sfix16_En4 @@ -709,11 +580,11 @@ - + - + 3 @@ -731,11 +602,11 @@ - + - + lo @@ -746,11 +617,11 @@ - + - + sfix16_En4 @@ -762,58 +633,187 @@ - - - + + + - - + + - - + + - - 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - - - - - - - - - - - - - - - - u + + - + - + - + sfix16_En4 @@ -1081,10 +1081,10 @@ - + - + @@ -1106,5 +1106,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2816_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2816_d.json index da90f30..a0285cf 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2816_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2816_d.json @@ -213,37 +213,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2839", - "className":"Simulink.Signum", - "icon":"WebViewIcon3", - "name":"SignDeltaU3", - "label":"SignDeltaU3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2816", - "inspector":{ - "params":[ - "ZeroCross", - "SampleTime" - ], - "values":[ - "on", - "-1" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Signum", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2837", "className":"Simulink.Signum", @@ -276,40 +245,38 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2840", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2841", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"DataTypeConv4", - "label":"DataTypeConv4", + "name":"Equal1", + "label":"Equal1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ - "OutMin", - "OutMax", + "Operator", + "InputSameDT", "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "SampleTime", + "ZeroCross" ], "values":[ - "[]", - "[]", - "int8", + "==", "on", - "Real World Value (RWV)", + "Inherit: Logical (see Configuration Parameters: Optimization)", "Zero", - "off", - "-1" + "-1", + "on" ], "tabs":[ - "Parameter Attributes", + "Main", + "Data Type", "-Other" ], "tabs_idx":[ 0, - 7 + 1, + 4 ] }, "viewer":{ @@ -318,16 +285,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2836", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2840", "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"DataTypeConv3", - "label":"DataTypeConv3", + "name":"DataTypeConv4", + "label":"DataTypeConv4", "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ @@ -437,38 +404,40 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2841", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2836", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"Equal1", - "label":"Equal1", + "name":"DataTypeConv3", + "label":"DataTypeConv3", "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2816", "inspector":{ "params":[ - "Operator", - "InputSameDT", + "OutMin", + "OutMax", "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", "RndMeth", - "SampleTime", - "ZeroCross" + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "==", + "[]", + "[]", + "int8", "on", - "Inherit: Logical (see Configuration Parameters: Optimization)", + "Real World Value (RWV)", "Zero", - "-1", - "on" + "off", + "-1" ], "tabs":[ - "Main", - "Data Type", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 4 + 7 ] }, "viewer":{ @@ -477,7 +446,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2839", + "className":"Simulink.Signum", + "icon":"WebViewIcon3", + "name":"SignDeltaU3", + "label":"SignDeltaU3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454:2816", + "inspector":{ + "params":[ + "ZeroCross", + "SampleTime" + ], + "values":[ + "on", + "-1" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Signum", "masktype":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2816_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2816_d.svg index 4ac386e..e60cb84 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2816_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2816_d.svg @@ -185,86 +185,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - @@ -277,35 +197,35 @@ - + - + - + - + - + - + - + - + @@ -331,11 +251,11 @@ - + - + int32 @@ -345,202 +265,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - hitSat - - - - - - - - - - - - - - - boolean - - - - - - - - - + @@ -548,27 +277,27 @@ - + - + - + - + - + - + @@ -594,11 +323,11 @@ - + - + boolean @@ -608,11 +337,282 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + hitSat + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + - + @@ -800,5 +800,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_d.json index 69ffd33..96fd332 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_d.json @@ -80,52 +80,43 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2781", - "className":"Simulink.Sum", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2817", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", + "name":"UnitDelay1", + "label":"UnitDelay1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "rectangular", - "++", + "0", + "Inherited", + "-1", + "", + "", "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 10 + 3, + 4 ] }, "viewer":{ @@ -134,7 +125,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"UnitDelay", "masktype":"" } }, @@ -197,6 +188,291 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2791", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon6", + "name":"Saturation_hit", + "label":"Saturation_hit", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "ShowPortLabels", + "BlockChoice", + "TemplateBlock", + "MemberBlocks", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "MinAlgLoopOccurrences", + "PropExecContextOutsideSubsystem", + "SystemSampleTime", + "RTWSystemCode", + "RTWFcnNameOpts", + "RTWFcnName", + "RTWFileNameOpts", + "RTWFileName", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "RTWMemSecFuncInitTerm", + "RTWMemSecFuncExecute", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "IsSubsystemVirtual", + "Variant", + "VariantControl", + "OverrideUsingVariant", + "GeneratePreprocessorConditionals", + "AllowZeroVariantControls", + "PropagateVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "TreatAsGroupedWhenPropagatingVariantConditions" + ], + "values":[ + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", + "off", + "off", + "off", + "-1", + "Auto", + "Auto", + "", + "Auto", + "", + "void_void", + "off", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "on", + "off", + "", + "", + "off", + "off", + "off", + "", + "", + "on" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2794", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hitMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2845", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hitSat", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2795", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hitMin", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2846", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hitSat", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2833", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hitMin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2832", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hitMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2779", "className":"Simulink.SubSystem", @@ -294,191 +570,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2814", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2794", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hitMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2845", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hitSat", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2846", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_hitSat", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2832", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_hitMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2778", "className":"Simulink.Product", @@ -594,291 +685,41 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2833", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2814", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"Switch1", + "label":"Switch1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_hitMin", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2815", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Constant", - "label":"Constant", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Criteria", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" ], "values":[ - "0", - "on", - "inf", + "u2 ~= 0", + "off", "[]", "[]", "Inherit: Inherit via back propagation", "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2773", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"ext_limProt", - "label":"ext_limProt", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", - "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":"BLDCmotor_FOC_R2017b_fixdt:10454:2791", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon6", - "name":"Saturation_hit", - "label":"Saturation_hit", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "ShowPortLabels", - "BlockChoice", - "TemplateBlock", - "MemberBlocks", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "MinAlgLoopOccurrences", - "PropExecContextOutsideSubsystem", - "SystemSampleTime", - "RTWSystemCode", - "RTWFcnNameOpts", - "RTWFcnName", - "RTWFileNameOpts", - "RTWFileName", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "RTWMemSecFuncInitTerm", - "RTWMemSecFuncExecute", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "IsSubsystemVirtual", - "Variant", - "VariantControl", - "OverrideUsingVariant", - "GeneratePreprocessorConditionals", - "AllowZeroVariantControls", - "PropagateVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "TreatAsGroupedWhenPropagatingVariantConditions" - ], - "values":[ - "FromPortIcon", - "", - "", - "", - "ReadWrite", - "", - "All", - "off", + "Zero", "off", "off", "-1", - "Auto", - "Auto", - "", - "Auto", - "", - "void_void", - "off", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "on", - "off", - "", - "", - "off", - "off", - "off", - "", - "", + "0", "on" ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2733", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"satMin", - "label":"satMin", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", - "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", @@ -886,8 +727,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 1, + 9 ] }, "viewer":{ @@ -896,74 +737,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2732", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"satMax", - "label":"satMax", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", + "blocktype":"Switch", "masktype":"" } }, @@ -1064,39 +838,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2795", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hitMin", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2771", "className":"Simulink.Inport", @@ -1164,6 +905,199 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2733", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMin", + "label":"satMin", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", + "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":"BLDCmotor_FOC_R2017b_fixdt:10454:2781", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2770", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"P", + "label":"P", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2910", "className":"Simulink.Inport", @@ -1232,43 +1166,60 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2817", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2773", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"UnitDelay1", - "label":"UnitDelay1", + "name":"ext_limProt", + "label":"ext_limProt", "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", + "7", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", - [ - ], - "Auto" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 2, + 11 ] }, "viewer":{ @@ -1277,7 +1228,56 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2815", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant", + "label":"Constant", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", "masktype":"" } }, @@ -1349,11 +1349,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2770", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10454:2732", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"P", - "label":"P", + "name":"satMax", + "label":"satMax", "parent":"BLDCmotor_FOC_R2017b_fixdt:10454", "inspector":{ "params":[ @@ -1376,7 +1376,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "5", "Port number", "[]", "[]", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_d.svg index 1678ec8..6bda4c9 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_d.svg @@ -61,68 +61,91 @@ - - - + + + - - + + - + - + - - + + - - + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + - - + + + + + + + + + + + + + + + + + Ini=0 - - + + - - + + - - sfix32_En20 + + boolean @@ -143,35 +166,35 @@ - + - + - + - + - + - + - + - + @@ -189,11 +212,11 @@ - + - + sfix16_En4 @@ -203,6 +226,439 @@ + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + hitMax + + + + + + + + y + + + + + + + + hitMin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitSat] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitMin] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitSat] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitMin] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitMax] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -221,27 +677,27 @@ - + - + u - + - + init - + - + y @@ -271,11 +727,11 @@ - + - + Integrator @@ -292,11 +748,11 @@ - + - + sfix16_En4 @@ -308,367 +764,13 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hitMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hitSat] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hitSat] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hitMax] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - @@ -678,19 +780,19 @@ - + - + - + - + @@ -708,11 +810,11 @@ - + - + sfix16_En5 @@ -734,19 +836,19 @@ - + - + - + - + @@ -764,11 +866,11 @@ - + - + sfix32_En20 @@ -780,471 +882,188 @@ - - - + + + - - + + - - - - - - - [b_hitMin] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - ext_limProt - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - hitMax - - - - - - - - y - - - - - - - - hitMin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - + - - boolean + + + + + + + + + + - - - - - + - - + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - 6 - - - - - - - - - - - - - - + + - + - - satMin - - - - - - - + + - + - - sfix16_En4 + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - 5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - - - - - - - - - - - - - - - - satMax + + - - + + - - + + - - sfix16_En4 + + sfix32_En20 @@ -1271,35 +1090,35 @@ - + - + preIntegrator - + - + preSat - + - + hitSat - + - + Clamp @@ -1329,11 +1148,11 @@ - + - + Clamping_circuit @@ -1350,11 +1169,11 @@ - + - + boolean @@ -1366,46 +1185,13 @@ - + - - - - - - - - - - - - - - - [b_hitMin] - - - - - - - - - - - - - - - - - - @@ -1415,11 +1201,11 @@ - + - + 3 @@ -1437,11 +1223,11 @@ - + - + I @@ -1452,11 +1238,11 @@ - + - + ufix16_En16 @@ -1466,6 +1252,204 @@ + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + satMin + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + P + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + @@ -1478,11 +1462,11 @@ - + - + 4 @@ -1500,11 +1484,11 @@ - + - + init @@ -1515,11 +1499,11 @@ - + - + sfix32_En20 @@ -1531,91 +1515,107 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + 7 + - - + + - - - + + + - - + + - - Ini=0 + + ext_limProt - - + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + - + - - boolean + + sfix32_En20 @@ -1689,11 +1689,11 @@ - - + + - + @@ -1703,45 +1703,45 @@ - - 2 + + 5 - + - - + + - + - - P + + satMax - - + + - + - - ufix16_En12 + + sfix16_En4 @@ -1754,7 +1754,7 @@ - + @@ -2198,5 +2198,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2779_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2779_d.json index c92cee1..9d9ccbd 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2779_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2779_d.json @@ -1,4 +1,110 @@ [ + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2788", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2779", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|++", + "off", + "Inherit: Same as first input", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2787", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2779", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2790", "className":"Simulink.Outport", @@ -80,99 +186,61 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2787", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2908", + "className":"Simulink.Delay", "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", + "name":"Resettable Delay", + "label":"Resettable Delay", "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2779", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "DelayLengthSource", + "InitialConditionSource", + "DelayLength", + "InputProcessing", + "UseCircularBuffer", + "ShowEnablePort", + "ExternalReset", + "SampleTime", + "CodeGenStateStorageTypeQualifier", + "DelayLengthUpperLimit", + "DiagnosticForDelayLength", + "InitialCondition", + "PreventDirectFeedthrough", + "RemoveDelayLengthCheckInGeneratedCode", + "StateMustResolveToSignalObject", + "StateName", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2788", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2779", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "round", - "|++", - "off", - "Inherit: Same as first input", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", + "Dialog", + "Input port", "1", - "All dimensions", - "-1" + "Elements as channels (sample based)", + "off", + "off", + "None", + "-1", + "", + "100", + "None", + "0.0", + "off", + "off", + "off", + "", + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 10 + 8 ] }, "viewer":{ @@ -181,7 +249,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Delay", "masktype":"" } }, @@ -252,74 +320,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2908", - "className":"Simulink.Delay", - "icon":"WebViewIcon3", - "name":"Resettable Delay", - "label":"Resettable Delay", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2779", - "inspector":{ - "params":[ - "DelayLengthSource", - "InitialConditionSource", - "DelayLength", - "InputProcessing", - "UseCircularBuffer", - "ShowEnablePort", - "ExternalReset", - "SampleTime", - "CodeGenStateStorageTypeQualifier", - "DelayLengthUpperLimit", - "DiagnosticForDelayLength", - "InitialCondition", - "PreventDirectFeedthrough", - "RemoveDelayLengthCheckInGeneratedCode", - "StateMustResolveToSignalObject", - "StateName", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "Dialog", - "Input port", - "1", - "Elements as channels (sample based)", - "off", - "off", - "None", - "-1", - "", - "100", - "None", - "0.0", - "off", - "off", - "off", - "", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 8 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Delay", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2786", "className":"Simulink.Inport", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2779_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2779_d.svg index 038daee..dc090ae 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2779_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2779_d.svg @@ -13,44 +13,68 @@ - - - + + + - - + + - + - - 1 + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - + + + - - + + - - y + + sfix32_En20 @@ -71,19 +95,19 @@ - + - + - + - + @@ -109,11 +133,11 @@ - + - + sfix16_En4 @@ -125,67 +149,115 @@ - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + 1 - - + + + + + + + + + + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + x0 + + + + + + + + u + + + + + + + + Z + + + + + + + + -1 + + + + + + + - - + + - - + + - + sfix32_En20 @@ -207,11 +279,11 @@ - + - + 2 @@ -229,11 +301,11 @@ - + - + init @@ -244,11 +316,11 @@ - + - + sfix16_En4 @@ -258,78 +330,6 @@ - - - - - - - - - - - - - - - - - - x0 - - - - - - - - u - - - - - - - - Z - - - - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - @@ -485,5 +485,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2791_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2791_d.json index 6b82c24..d85b20d 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2791_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2791_d.json @@ -1,298 +1,4 @@ [ - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2791:2709", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"hitMax", - "label":"hitMax", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2791", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2791:2849", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch3", - "label":"Switch3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2791", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2791:2707", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"UpperRelop", - "label":"UpperRelop", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2791", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "<", - "off", - "boolean", - "Nearest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2791:2704", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"LowerRelop1", - "label":"LowerRelop1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2791", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - ">", - "off", - "boolean", - "Nearest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2791:2701", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"lo", - "label":"lo", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2791", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2791:2710", "className":"Simulink.Outport", @@ -373,6 +79,188 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2791:2709", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"hitMax", + "label":"hitMax", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2791", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2791:2707", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"UpperRelop", + "label":"UpperRelop", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2791", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "<", + "off", + "boolean", + "Nearest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2791:2849", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch3", + "label":"Switch3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2791", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2791:2848", "className":"Simulink.Switch", @@ -430,6 +318,73 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2791:2701", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"lo", + "label":"lo", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2791", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2791:2700", "className":"Simulink.Inport", @@ -644,6 +599,51 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2791:2704", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"LowerRelop1", + "label":"LowerRelop1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455:2791", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + ">", + "off", + "boolean", + "Nearest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2791:2849#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2791_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2791_d.svg index 1ecfecf..62f9a09 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2791_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2791_d.svg @@ -10,6 +10,54 @@ + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + hitMin + + + + + + + @@ -23,11 +71,11 @@ - + - + 1 @@ -45,11 +93,11 @@ - + - + hitMax @@ -59,198 +107,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -263,19 +119,19 @@ - + - + - + - + @@ -301,11 +157,11 @@ - + - + UpperRelop @@ -316,11 +172,11 @@ - + - + boolean @@ -330,6 +186,627 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + lo + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -342,19 +819,19 @@ - + - + - + - + @@ -380,11 +857,11 @@ - + - + LowerRelop1 @@ -395,11 +872,11 @@ - + - + boolean @@ -409,483 +886,6 @@ - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - lo - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - hitMin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -1081,10 +1081,10 @@ - + - + @@ -1106,5 +1106,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2816_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2816_d.svg index ee1d636..79bac05 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2816_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2816_d.svg @@ -800,5 +800,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_d.json index 16cb1d8..ec97946 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_d.json @@ -106,86 +106,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2785", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"out", - "label":"out", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2781", "className":"Simulink.Sum", @@ -398,85 +318,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2845", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2846", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"From4", + "label":"From4", "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "b_hitSat", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2795", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hitMin", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2833", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_hitMin", "Tag" ], "tabs":[ @@ -494,6 +348,136 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2779", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2794", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hitMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2832", "className":"Simulink.From", @@ -525,6 +509,174 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2785", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"out", + "label":"out", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2778", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide5", + "label":"Divide5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(1,16,5)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2833", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_hitMin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2776", "className":"Simulink.Product", @@ -582,6 +734,73 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2773", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"ext_limProt", + "label":"ext_limProt", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", + "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":"BLDCmotor_FOC_R2017b_fixdt:10455:2815", "className":"Simulink.Constant", @@ -632,25 +851,61 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2846", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2732", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"satMax", + "label":"satMax", "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "b_hitSat", - "Tag" + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 11 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -658,40 +913,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2794", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hitMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", + "blocktype":"Inport", "masktype":"" } }, @@ -792,130 +1014,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2778", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide5", - "label":"Divide5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,5)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2733", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"satMin", - "label":"satMin", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2910", "className":"Simulink.Inport", @@ -983,6 +1081,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2845", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hitSat", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2771", "className":"Simulink.Inport", @@ -1050,6 +1181,73 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2733", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMin", + "label":"satMin", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2770", "className":"Simulink.Inport", @@ -1117,6 +1315,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2795", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hitMin", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2769", "className":"Simulink.Inport", @@ -1184,237 +1415,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2779", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Integrator", - "label":"Integrator", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2773", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"ext_limProt", - "label":"ext_limProt", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", - "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":"BLDCmotor_FOC_R2017b_fixdt:10455:2732", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"satMax", - "label":"satMax", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10455", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10455:2844", "className":"Simulink.Logic", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_d.png index ff797a3..b6b9a9b 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_d.svg index c789a78..2295939 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_d.svg @@ -298,54 +298,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - out - - - - - - - - @@ -357,36 +309,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - @@ -404,11 +356,11 @@ - + - + sfix32_En20 @@ -429,36 +381,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - @@ -476,11 +428,11 @@ - + - + sfix16_En4 @@ -502,60 +454,84 @@ - + - + up - + - + u - + - + lo - + - + hitMax - + - + y - + - + hitMin + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -563,30 +539,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -600,15 +552,15 @@ - + - - + + - + boolean @@ -619,26 +571,26 @@ - + - + sfix16_En4 - + - - + + - + boolean @@ -646,29 +598,29 @@ - + - + - + - + - + - + @@ -682,109 +634,43 @@ - - + + - - + + - + - + [b_hitSat] - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hitMin] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hitMin] - - - - - - - + + - - + + - - + + - + boolean @@ -794,6 +680,148 @@ + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + init + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Integrator + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitMax] + + + + + + + + + + + + + + + @@ -806,11 +834,11 @@ - + - + [b_hitMax] @@ -828,11 +856,163 @@ - + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + out + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En5 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitMin] + + + + + + + + + + + + + + + + + + + + + boolean @@ -854,19 +1034,19 @@ - + - + - + - + @@ -884,11 +1064,74 @@ - + - + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + ext_limProt + + + + + + + + + + + + + + sfix32_En20 @@ -910,11 +1153,11 @@ - + - + 0 @@ -932,752 +1175,11 @@ - + - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hitSat] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hitMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - preIntegrator - - - - - - - - preSat - - - - - - - - hitSat - - - - - - - - Clamp - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Clamping_circuit - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En5 - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - satMin - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - init - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - I - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - P - - - - - - - - - - - - - - - ufix16_En12 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - err - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - init - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Integrator - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - ext_limProt - - - - - - - - - - - - - - + sfix32_En20 @@ -1699,11 +1201,11 @@ - + - + 5 @@ -1721,11 +1223,11 @@ - + - + satMax @@ -1736,11 +1238,509 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + preIntegrator + + + + + + + + preSat + + + + + + + + hitSat + + + + + + + + Clamp + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Clamping_circuit + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + init + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitSat] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + I + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + satMin + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + P + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hitMin] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + err + + + + + + + + + + + + + + sfix16_En4 @@ -1754,7 +1754,7 @@ - + @@ -2198,5 +2198,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10507_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10507_d.svg index 6503cc5..9b0ad1c 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10507_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10507_d.svg @@ -63,7 +63,7 @@ - + @@ -142,7 +142,7 @@ - + @@ -334,7 +334,7 @@ - + @@ -526,7 +526,7 @@ - + @@ -605,7 +605,7 @@ - + @@ -654,7 +654,7 @@ - + @@ -1009,10 +1009,10 @@ - + - + @@ -1103,10 +1103,10 @@ - + - + @@ -1176,5 +1176,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10508_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10508_d.svg index 8a0a8dd..5af9853 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10508_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10508_d.svg @@ -63,7 +63,7 @@ - + @@ -142,7 +142,7 @@ - + @@ -334,7 +334,7 @@ - + @@ -526,7 +526,7 @@ - + @@ -605,7 +605,7 @@ - + @@ -654,7 +654,7 @@ - + @@ -1103,10 +1103,10 @@ - + - + @@ -1176,5 +1176,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10566_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10566_d.json index db140bd..eaa67f8 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10566_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10566_d.json @@ -1,84 +1,4 @@ [ - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10583", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_nLimProtMax", - "label":"r_nLimProtMax", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10575", "className":"Simulink.Outport", @@ -159,6 +79,153 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10653", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_nKiLimProt", + "label":"cf_nKiLimProt", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_nKiLimProt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10574", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_iqKiLimProt", + "label":"cf_iqKiLimProt", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_iqKiLimProt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10640", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_KbLimProt", + "label":"cf_KbLimProt", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_KbLimProt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,12)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10634", "className":"Simulink.Sum", @@ -218,94 +285,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10651", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10746", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"I_backCalc_fixdt1", - "label":"I_backCalc_fixdt1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "yInit" - ], - "values":[ - "1000" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10745", "className":"Simulink.SubSystem", @@ -369,11 +348,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10629", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10658", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ @@ -382,7 +361,7 @@ "IconDisplay" ], "values":[ - "n_max", + "r_inpTgtScaAbs", "local", "Tag" ], @@ -402,11 +381,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10630", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10625", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Goto10", + "label":"Goto10", "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ @@ -415,7 +394,40 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "iq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10627", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iqAbs", "local", "Tag" ], @@ -466,51 +478,93 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10640", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_KbLimProt", - "label":"cf_KbLimProt", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10746", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"I_backCalc_fixdt1", + "label":"I_backCalc_fixdt1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "yInit" ], "values":[ - "cf_KbLimProt", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,12)", - "off", - "inf" + "1000" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" ], "tabs_idx":[ - 0, - 3, - 7 ] }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10655", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10643", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", "masktype":"" } }, @@ -546,27 +600,53 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10642", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10651", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Sum1", + "label":"Sum1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "r_iqLimProtMax", - "local", - "Tag" + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 10 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -574,7 +654,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Sum", "masktype":"" } }, @@ -641,106 +721,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10655", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10658", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10632", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10574", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10673", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"cf_iqKiLimProt", - "label":"cf_iqKiLimProt", + "name":"Constant1", + "label":"Constant1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ @@ -754,12 +739,12 @@ "FramePeriod" ], "values":[ - "cf_iqKiLimProt", + "0", "on", "inf", "[]", "[]", - "fixdt(0,16,16)", + "Inherit: Inherit via back propagation", "off", "inf" ], @@ -784,37 +769,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10643", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_nLimProtMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10672", "className":"Simulink.Constant", @@ -864,39 +818,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10627", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iqAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10570", "className":"Simulink.ActionPort", @@ -928,6 +849,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10642", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_iqLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10577", "className":"Simulink.Inport", @@ -995,55 +949,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10653", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_nKiLimProt", - "label":"cf_nKiLimProt", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "cf_nKiLimProt", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10576", "className":"Simulink.Inport", @@ -1112,43 +1017,25 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10673", - "className":"Simulink.Constant", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10632", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Constant1", - "label":"Constant1", + "name":"From", + "label":"From", "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "IconDisplay" ], "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "iq_max", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1156,74 +1043,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10568", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"iq_max", - "label":"iq_max", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", + "blocktype":"From", "masktype":"" } }, @@ -1294,6 +1114,219 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10630", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10568", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq_max", + "label":"iq_max", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10583", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_nLimProtMax", + "label":"r_nLimProtMax", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10629", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10657", "className":"Simulink.Inport", @@ -1361,39 +1394,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10625", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10566", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10568#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10566_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10566_d.svg index b325d7d..3c91770 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10566_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10566_d.svg @@ -10,54 +10,6 @@ - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - r_nLimProtMax - - - - - - - @@ -71,11 +23,11 @@ - + - + 1 @@ -93,11 +45,11 @@ - + - + r_iqLimProtMax @@ -107,6 +59,195 @@ + + + + + + + + + + + + + + + + + + cf_nKiLimProt + + + + + + + + + + + + + + + + + + + + + + cf_nKiLimProt + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + cf_iqKiLimProt + + + + + + + + + + + + + + + + + + + + + + cf_iqKiLimProt + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + cf_KbLimProt + + + + + + + + + + + + + + + + + + + + + + cf_KbLimProt + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + @@ -119,27 +260,27 @@ - + - + - + - + - + - + @@ -157,11 +298,11 @@ - + - + sfix16_En4 @@ -171,233 +312,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - err - - - - - - - - I - - - - - - - - Kb - - - - - - - - satMax - - - - - - - - satMin - - - - - - - - out - - - - - - - - I(z) - - - - - - - - - - - - - - - - - - - - - - I_backCalc_fixdt1 - - - - - - - - - - - - - - - Ini=1000 - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -405,59 +324,59 @@ - + - + err - + - + I - + - + Kb - + - + satMax - + - + satMin - + - + out - + - + I(z) @@ -475,71 +394,71 @@ - + - + I_backCalc_fixdt - - - - - - - - - - - sfix16_En4 - - - - - + - + Ini=1000 + + + + + + + + + + + sfix16_En4 + + + + - + - + - + - + - + - + @@ -563,11 +482,11 @@ - + - + [r_nLimProtMax] @@ -586,28 +505,28 @@ - - + + - + - + - - [n_max] + + [r_inpTgtScaAbs] - + @@ -619,28 +538,61 @@ - - + + - + - + - - [n_motAbs] + + [iq_max] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iqAbs] + + + + + + @@ -662,11 +614,11 @@ - + - + [n_motAbs] @@ -684,11 +636,11 @@ - + - + sfix16_En4 @@ -700,59 +652,250 @@ - - - + + + - - + + - - + + - - cf_KbLimProt + + err + + + + + + + + I + + + + + + + + Kb + + + + + + + + satMax + + + + + + + + satMin + + + + + + + + out + + + + + + + + I(z) - - + + - - + + - - + + - - cf_KbLimProt + + I_backCalc_fixdt1 + + + + + + + + + + + + + + + Ini=1000 - - + + - - + + - - ufix16_En12 + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -773,11 +916,11 @@ - + - + [r_iqLimProtMax] @@ -795,11 +938,11 @@ - + - + sfix16_En4 @@ -811,29 +954,60 @@ - - - + + + - - + + - - + + - - [r_iqLimProtMax] + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -854,11 +1028,11 @@ - + - + [r_inpTgtScaAbs] @@ -876,11 +1050,11 @@ - + - + sfix16_En4 @@ -902,11 +1076,11 @@ - + - + [iqAbs] @@ -924,569 +1098,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtScaAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - cf_iqKiLimProt - - - - - - - - - - - - - - - - - - - - - - cf_iqKiLimProt - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iqAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - case: { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - n_max - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - cf_nKiLimProt - - - - - - - - - - - - - - - - - - - - - - cf_nKiLimProt - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - n_motAbs - - - - - - - - - - - - - - + sfix16_En4 @@ -1508,11 +1124,11 @@ - + - + 0 @@ -1530,11 +1146,11 @@ - + - + sfix16_En4 @@ -1546,58 +1162,298 @@ - - - + + + - - + + - - + + - - 3 + + 0 - + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + - - + + - - + + - - iq_max + + n_max - + - - + + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + n_motAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1619,11 +1475,11 @@ - + - + 2 @@ -1641,11 +1497,11 @@ - + - + iqAbs @@ -1656,11 +1512,11 @@ - + - + sfix16_En4 @@ -1670,6 +1526,183 @@ + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + iq_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + r_nLimProtMax + + + + + + + + + + + + + + + + + + + + + + + + + + [n_max] + + + + + + + + + + + + + + + @@ -1682,11 +1715,11 @@ - + - + 1 @@ -1704,11 +1737,11 @@ - + - + r_inpTgtScaAbs @@ -1719,11 +1752,11 @@ - + - + sfix16_En4 @@ -1733,39 +1766,6 @@ - - - - - - - - - - - - - - - - - - [iq_max] - - - - - - - - - - - - - - - @@ -2102,5 +2102,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10584_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10584_d.json index 7981a72..c90f9f7 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10584_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10584_d.json @@ -1,53 +1,4 @@ [ - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10662", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_iqKiLimProt", - "label":"cf_iqKiLimProt", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10584", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "cf_iqKiLimProt", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10600", "className":"Simulink.Outport", @@ -128,6 +79,114 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10662", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_iqKiLimProt", + "label":"cf_iqKiLimProt", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10584", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_iqKiLimProt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10597", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10584", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10594", "className":"Saturation Dynamic", @@ -256,70 +315,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10597", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10584", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "round", - "|+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10586", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10587", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq_max", - "label":"iq_max", + "name":"iq_min", + "label":"iq_min", "parent":"BLDCmotor_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ @@ -342,7 +342,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -382,11 +382,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10587", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10586", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq_min", - "label":"iq_min", + "name":"iq_max", + "label":"iq_max", "parent":"BLDCmotor_FOC_R2017b_fixdt:10584", "inspector":{ "params":[ @@ -409,7 +409,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10584_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10584_d.svg index f6fbdb6..dfb1ac0 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10584_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10584_d.svg @@ -10,69 +10,6 @@ - - - - - - - - - - - - - - - - - - - cf_iqKiLimProt - - - - - - - - - - - - - - - - - - - - - - cf_iqKiLimProt - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - @@ -86,11 +23,11 @@ - + - + 1 @@ -108,11 +45,11 @@ - + - + iq_limProtErr @@ -124,212 +61,59 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y + + cf_iqKiLimProt - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - case: { } - - - - - - - + + - - + + - - + + - - Action Port + + cf_iqKiLimProt + + + + + + + + + + + + + + + ufix16_En16 @@ -350,27 +134,27 @@ - + - + - + - + - + - + @@ -388,11 +172,290 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + iq_min + + + + + + + + + + + + + + sfix16_En4 @@ -414,11 +477,11 @@ - + - + 2 @@ -436,11 +499,11 @@ - + - + iq_max @@ -451,74 +514,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - iq_min - - - - - - - - - - - - - - + sfix16_En4 @@ -711,5 +711,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10594_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10594_d.svg index d536a65..ded0505 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10594_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10594_d.svg @@ -63,7 +63,7 @@ - + @@ -142,7 +142,7 @@ - + @@ -334,7 +334,7 @@ - + @@ -526,7 +526,7 @@ - + @@ -605,7 +605,7 @@ - + @@ -654,7 +654,7 @@ - + @@ -1009,16 +1009,16 @@ - - - - + - + + + + @@ -1103,10 +1103,10 @@ - + - + @@ -1176,5 +1176,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10602_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10602_d.json index 1c1e946..9621352 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10602_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10602_d.json @@ -1,53 +1,4 @@ [ - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10810", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_KbLimProt", - "label":"cf_KbLimProt", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10602", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "cf_KbLimProt", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,12)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10619", "className":"Simulink.Outport", @@ -128,6 +79,114 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10810", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_KbLimProt", + "label":"cf_KbLimProt", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_KbLimProt", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,12)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10809", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10808", "className":"Simulink.SubSystem", @@ -158,54 +217,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10777", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10804", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"From5", + "label":"From5", "parent":"BLDCmotor_FOC_R2017b_fixdt:10602", "inspector":{ "params":[ "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10776", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10602", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "n_max", - "local", "Tag" ], "tabs":[ @@ -219,27 +243,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10815", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10609", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotor_FOC_R2017b_fixdt:10602", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "Vq_max", - "local", - "Tag" + "held", + "Only when execution is resumed" ], "tabs":[ "Parameter Attributes" @@ -252,7 +274,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"ActionPort", "masktype":"" } }, @@ -288,42 +310,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10812", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10602", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10803", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10811", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Constant1", - "label":"Constant1", + "name":"cf_nKiLimProt", + "label":"cf_nKiLimProt", "parent":"BLDCmotor_FOC_R2017b_fixdt:10602", "inspector":{ "params":[ @@ -337,12 +328,12 @@ "FramePeriod" ], "values":[ - "0", + "cf_nKiLimProt", "on", "inf", "[]", "[]", - "Inherit: Inherit via back propagation", + "fixdt(0,16,16)", "off", "inf" ], @@ -435,19 +426,70 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10804", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10803", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"Constant1", + "label":"Constant1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10777", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotor_FOC_R2017b_fixdt:10602", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "n_max", + "n_motAbs", + "local", "Tag" ], "tabs":[ @@ -461,38 +503,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10609", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10602", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", + "blocktype":"Goto", "masktype":"" } }, @@ -564,53 +575,27 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10809", - "className":"Simulink.Sum", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10815", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10602", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "rectangular", - "+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "Vq_max", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 10 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -618,48 +603,30 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10811", - "className":"Simulink.Constant", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10812", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"cf_nKiLimProt", - "label":"cf_nKiLimProt", + "name":"From1", + "label":"From1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10602", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "IconDisplay" ], "values":[ - "cf_nKiLimProt", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", - "off", - "inf" + "Vq_max", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -667,7 +634,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"From", "masktype":"" } }, @@ -738,6 +705,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10776", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10602", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10774#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10602_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10602_d.svg index 7c2cb1c..68c5744 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10602_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10602_d.svg @@ -10,69 +10,6 @@ - - - - - - - - - - - - - - - - - - - cf_KbLimProt - - - - - - - - - - - - - - - - - - - - - - cf_KbLimProt - - - - - - - - - - - - - - - ufix16_En12 - - - - - - - @@ -86,11 +23,11 @@ - + - + 1 @@ -108,11 +45,11 @@ - + - + Vq_nLimProtMax @@ -122,11 +59,138 @@ + + + + + + + + + + + + + + + + + + cf_KbLimProt + + + + + + + + + + + + + + + + + + + + + + cf_KbLimProt + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + - + @@ -134,59 +198,59 @@ - + - + err - + - + I - + - + Kb - + - + satMax - + - + satMin - + - + out - + - + I(z) @@ -204,11 +268,11 @@ - + - + I_backCalc_fixdt @@ -219,11 +283,11 @@ - + - + Ini=900 @@ -234,11 +298,11 @@ - + - + sfix16_En4 @@ -246,29 +310,29 @@ - + - + - + - + - + - + @@ -280,312 +344,6 @@ - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - Vq_max - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -598,11 +356,11 @@ - + - + [n_max] @@ -620,11 +378,11 @@ - + - + sfix16_En4 @@ -646,11 +404,11 @@ - + - + case: { } @@ -668,11 +426,11 @@ - + - + Action Port @@ -684,122 +442,43 @@ - - - + + + - - + + - - + + - - 2 + + [n_motAbs] - - - - - - - - - - - - - - - - - n_max + + - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -821,11 +500,11 @@ - + - + cf_nKiLimProt @@ -843,11 +522,11 @@ - + - + cf_nKiLimProt @@ -858,11 +537,11 @@ - + - + ufix16_En16 @@ -872,6 +551,294 @@ + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + Vq_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + n_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -884,11 +851,11 @@ - + - + 1 @@ -906,11 +873,11 @@ - + - + n_motAbs @@ -921,11 +888,11 @@ - + - + sfix16_En4 @@ -935,6 +902,39 @@ + + + + + + + + + + + + + + + + + + [n_max] + + + + + + + + + + + + + + + @@ -1091,5 +1091,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_2877_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_2877_d.svg index f4f1620..1aba94c 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_2877_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_2877_d.svg @@ -431,5 +431,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_2895_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_2895_d.svg index 673c26b..6a7f989 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_2895_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_2895_d.svg @@ -142,7 +142,7 @@ - + @@ -334,7 +334,7 @@ - + @@ -1009,16 +1009,16 @@ - + - + - + @@ -1176,5 +1176,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_d.json index ac24e85..e6d8003 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_d.json @@ -1,4 +1,84 @@ [ + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2889", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"out", + "label":"out", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2894", "className":"Simulink.UnitDelay", @@ -49,6 +129,65 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2893", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "-+|", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2895", "className":"Saturation Dynamic", @@ -88,73 +227,6 @@ "masktype":"Saturation Dynamic" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2854", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"satMax", - "label":"satMax", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10745", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2877", "className":"Simulink.SubSystem", @@ -252,199 +324,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2890", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Kb", - "label":"Kb", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10745", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2892", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10745", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2853", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"I", - "label":"I", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10745", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2869", "className":"Simulink.Product", @@ -560,42 +439,50 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2893", - "className":"Simulink.Sum", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2855", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", + "name":"satMin", + "label":"satMin", "parent":"BLDCmotor_FOC_R2017b_fixdt:10745", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "round", - "-+|", - "off", - "Inherit: Inherit via internal rule", + "5", + "Port number", "[]", "[]", - "Inherit: Inherit via internal rule", + "Inherit: auto", "off", - "Simplest", + "inherit", + "-1", + "Inherit", + "-1", + "auto", "off", - "1", - "All dimensions", - "-1" + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", @@ -605,7 +492,7 @@ "tabs_idx":[ 0, 2, - 10 + 11 ] }, "viewer":{ @@ -614,7 +501,141 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2890", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Kb", + "label":"Kb", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2853", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"I", + "label":"I", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", "masktype":"" } }, @@ -686,91 +707,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2889", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"out", - "label":"out", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10745", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2855", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2854", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"satMin", - "label":"satMin", + "name":"satMax", + "label":"satMax", "parent":"BLDCmotor_FOC_R2017b_fixdt:10745", "inspector":{ "params":[ @@ -793,7 +734,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "4", "Port number", "[]", "[]", @@ -832,6 +773,65 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2892", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10745", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10745:2892#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_d.svg index 78c29e6..6f77651 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_d.svg @@ -10,12 +10,60 @@ + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + out + + + + + + + - + @@ -23,35 +71,35 @@ - + - + - + - + - + - + - + - + @@ -77,11 +125,11 @@ - + - + sfix32_En16 @@ -92,11 +140,11 @@ - + - + Ini=0 @@ -106,11 +154,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + - + @@ -118,35 +230,35 @@ - + - + - + - + - + - + - + - + @@ -158,35 +270,35 @@ - + - + up - + - + u - + - + lo - + - + y @@ -204,74 +316,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - satMax - - - - - - - - - - - - - - + sfix16_En4 @@ -285,7 +334,7 @@ - + @@ -299,19 +348,19 @@ - + - + u - + - + y @@ -341,11 +390,11 @@ - + - + Integrator @@ -362,11 +411,11 @@ - + - + sfix16_En4 @@ -378,213 +427,15 @@ - + - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - Kb - - - - - - - - - - - - - - - ufix16_En12 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - I - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - - - - - + @@ -592,19 +443,19 @@ - + - + - + - + @@ -622,11 +473,11 @@ - + - + sfix32_En20 @@ -640,7 +491,7 @@ - + @@ -648,19 +499,19 @@ - + - + - + - + @@ -678,11 +529,11 @@ - + - + sfix32_En16 @@ -692,181 +543,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - err - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - out - - - - - - - - @@ -879,11 +555,11 @@ - + - + 5 @@ -901,11 +577,11 @@ - + - + satMin @@ -916,11 +592,11 @@ - + - + sfix16_En4 @@ -930,6 +606,330 @@ + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + Kb + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + I + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + err + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + satMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + @@ -1140,5 +1140,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_2877_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_2877_d.json index 9d841b3..23f467c 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_2877_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_2877_d.json @@ -1,54 +1,4 @@ [ - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2896", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10746:2877", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "yInit", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2882", "className":"Simulink.Outport", @@ -130,52 +80,43 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2880", - "className":"Simulink.Sum", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2896", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", + "name":"UnitDelay", + "label":"UnitDelay", "parent":"BLDCmotor_FOC_R2017b_fixdt:10746:2877", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "round", - "|++", + "yInit", + "Inherited", + "-1", + "", + "", "off", - "Inherit: Same as first input", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 10 + 3, + 4 ] }, "viewer":{ @@ -184,7 +125,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"UnitDelay", "masktype":"" } }, @@ -302,6 +243,65 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2880", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10746:2877", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|++", + "off", + "Inherit: Same as first input", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2878#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_2877_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_2877_d.svg index c989d7e..5acad1b 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_2877_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_2877_d.svg @@ -10,6 +10,54 @@ + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + @@ -23,35 +71,35 @@ - + - + - + - + - + - + - + - + @@ -77,11 +125,11 @@ - + - + Ini=yInit @@ -92,131 +140,11 @@ - + - - sfix32_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + sfix32_En16 @@ -238,19 +166,19 @@ - + - + - + - + @@ -276,11 +204,11 @@ - + - + sfix16_En4 @@ -302,11 +230,11 @@ - + - + 1 @@ -324,11 +252,11 @@ - + - + u @@ -339,11 +267,83 @@ - + - + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 @@ -431,5 +431,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_2895_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_2895_d.svg index c69f155..1d2065f 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_2895_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_2895_d.svg @@ -142,7 +142,7 @@ - + @@ -334,7 +334,7 @@ - + @@ -1176,5 +1176,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_d.json index d670dc1..2122b9a 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_d.json @@ -1,4 +1,54 @@ [ + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2894", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2889", "className":"Simulink.Outport", @@ -80,52 +130,99 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2894", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2877", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Integrator", + "label":"Integrator", "parent":"BLDCmotor_FOC_R2017b_fixdt:10746", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" ], "values":[ - "0", - "Inherited", - "-1", + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", "", "", "off", - [ - ], - "Auto" + "", + "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", - "State Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"SubSystem", "masktype":"" } }, @@ -188,65 +285,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2892", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10746", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2855", "className":"Simulink.Inport", @@ -314,73 +352,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2890", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Kb", - "label":"Kb", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10746", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2854", "className":"Simulink.Inport", @@ -449,50 +420,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2895", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10746", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2869", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2891", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", + "name":"Divide1", + "label":"Divide1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10746", "inspector":{ "params":[ @@ -544,6 +476,132 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2892", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2890", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Kb", + "label":"Kb", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10746", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2853", "className":"Simulink.Inport", @@ -612,90 +670,32 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2877", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Integrator", - "label":"Integrator", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2895", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10746", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", + "[]", + "[]", + "Inherit: Same as second input", "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", - "" + "Floor", + "off" ], "tabs":[ - "Main", - "-Other" ], "tabs_idx":[ - 0, - 6 ] }, "viewer":{ @@ -705,15 +705,15 @@ ], "finder":{ "blocktype":"SubSystem", - "masktype":"" + "masktype":"Saturation Dynamic" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2891", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10746:2869", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", + "name":"Divide2", + "label":"Divide2", "parent":"BLDCmotor_FOC_R2017b_fixdt:10746", "inspector":{ "params":[ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_d.svg index 215977e..5fdc80f 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_d.svg @@ -10,54 +10,6 @@ - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - out - - - - - - - @@ -71,35 +23,35 @@ - + - + - + - + - + - + - + - + @@ -120,96 +72,32 @@ - - - - - - - - - - - Ini=0 - - - - - + - + sfix32_En16 - - - - - - - - - - - - - - - - - - - - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 + + Ini=0 @@ -220,488 +108,44 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En16 - - - - - - - - - - - - + + - + - + - - 5 + + 1 - + - - + + - - + + - - satMin - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - Kb - - - - - - - - - - - - - - - ufix16_En12 - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - satMax - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - I - - - - - - - - - - - - - - - ufix16_En16 + + out @@ -714,7 +158,7 @@ - + @@ -728,19 +172,19 @@ - + - + u - + - + y @@ -770,11 +214,11 @@ - + - + Integrator @@ -791,11 +235,207 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + satMin + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + satMax + + + + + + + + + + + + + + sfix16_En4 @@ -808,14 +448,8 @@ - - - - - - - + @@ -823,19 +457,19 @@ - + - + - + - + @@ -853,11 +487,11 @@ - + - + sfix32_En16 @@ -867,6 +501,372 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + Kb + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + I + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + @@ -1140,5 +1140,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_2877_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_2877_d.json index 18e3430..4e3b23a 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_2877_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_2877_d.json @@ -79,6 +79,65 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2880", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10808:2877", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|++", + "off", + "Inherit: Same as first input", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2896", "className":"Simulink.UnitDelay", @@ -176,65 +235,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2880", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10808:2877", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "round", - "|++", - "off", - "Inherit: Same as first input", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2878", "className":"Simulink.Inport", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_2877_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_2877_d.svg index 7375036..86681c4 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_2877_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_2877_d.svg @@ -59,11 +59,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En16 + + + + + + + + - + @@ -71,35 +143,35 @@ - + - + - + - + - + - + - + - + @@ -125,11 +197,11 @@ - + - + Ini=yInit @@ -140,11 +212,11 @@ - + - + sfix32_En16 @@ -166,19 +238,19 @@ - + - + - + - + @@ -204,11 +276,11 @@ - + - + sfix16_En4 @@ -218,78 +290,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En16 - - - - - - - - @@ -431,5 +431,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_2895_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_2895_d.svg index 6b7804b..a18f025 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_2895_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_2895_d.svg @@ -142,7 +142,7 @@ - + @@ -334,7 +334,7 @@ - + @@ -1009,7 +1009,7 @@ - + @@ -1018,7 +1018,7 @@ - + @@ -1103,10 +1103,10 @@ - + - + @@ -1176,5 +1176,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_d.json index f0c8f9d..dfdf6b6 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_d.json @@ -1,41 +1,62 @@ [ { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2893", - "className":"Simulink.Sum", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2889", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", + "name":"out", + "label":"out", "parent":"BLDCmotor_FOC_R2017b_fixdt:10808", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "round", - "-+|", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "off", "1", - "All dimensions", - "-1" + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -45,7 +66,7 @@ "tabs_idx":[ 0, 2, - 10 + 11 ] }, "viewer":{ @@ -54,7 +75,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", + "blocktype":"Outport", "masktype":"" } }, @@ -118,42 +139,53 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2895", - "className":"Saturation Dynamic", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2894", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", + "name":"UnitDelay", + "label":"UnitDelay", "parent":"BLDCmotor_FOC_R2017b_fixdt:10808", "inspector":{ "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "[]", - "[]", - "Inherit: Same as second input", + "0", + "Inherited", + "-1", + "", + "", "off", - "Floor", - "off" + [ + ], + "Auto" ], "tabs":[ + "Main", + "State Attributes", + "-Other" ], "tabs_idx":[ + 0, + 3, + 4 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" + "blocktype":"UnitDelay", + "masktype":"" } }, { @@ -310,6 +342,65 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2893", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "-+|", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2891", "className":"Simulink.Product", @@ -367,6 +458,45 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2895", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10808", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2855", "className":"Simulink.Inport", @@ -434,86 +564,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2889", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"out", - "label":"out", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10808", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2854", "className":"Simulink.Inport", @@ -582,11 +632,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2853", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2890", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"I", - "label":"I", + "name":"Kb", + "label":"Kb", "parent":"BLDCmotor_FOC_R2017b_fixdt:10808", "inspector":{ "params":[ @@ -609,7 +659,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "3", "Port number", "[]", "[]", @@ -649,61 +699,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2894", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10808", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2890", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10808:2853", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Kb", - "label":"Kb", + "name":"I", + "label":"I", "parent":"BLDCmotor_FOC_R2017b_fixdt:10808", "inspector":{ "params":[ @@ -726,7 +726,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "2", "Port number", "[]", "[]", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_d.svg index 13e89fa..d2b0aa2 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_d.svg @@ -13,60 +13,44 @@ - - - + + + - - + + - + - - - - - - - - - - - - - - - - - - + + 1 - - + + - - - + + + - - + + - - sfix16_En4 + + out @@ -86,13 +70,29 @@ + + + + + + + + + + + + + + + + - + @@ -100,22 +100,6 @@ - - - - - - - - - - - - - - - - @@ -133,11 +117,11 @@ - + - + sfix32_En16 @@ -149,46 +133,46 @@ - - - + + + - - + + - - + + - - + + + + + + + + + + - + - - + + - + - - - - - - - - - - + + @@ -198,59 +182,42 @@ - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - + + - - + + - - + + - - sfix16_En4 + + sfix32_En16 + + + + + + + + + + + + + + + Ini=0 @@ -263,7 +230,7 @@ - + @@ -277,19 +244,19 @@ - + - + u - + - + y @@ -319,11 +286,11 @@ - + - + Integrator @@ -340,11 +307,11 @@ - + - + sfix16_En4 @@ -364,27 +331,27 @@ - + + + + + + + + + - - - - - - - - @@ -402,11 +369,11 @@ - + - + sfix32_En20 @@ -416,11 +383,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + - + @@ -428,19 +459,19 @@ - + - + - + - + @@ -458,11 +489,11 @@ - + - + sfix32_En16 @@ -472,6 +503,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -484,11 +627,11 @@ - + - + 5 @@ -506,11 +649,11 @@ - + - + satMin @@ -521,11 +664,11 @@ - + - + sfix16_En4 @@ -535,54 +678,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - out - - - - - - - - @@ -595,11 +690,11 @@ - + - + 4 @@ -617,11 +712,11 @@ - + - + satMax @@ -632,11 +727,11 @@ - + - + sfix16_En4 @@ -646,164 +741,6 @@ - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - I - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - sfix32_En16 - - - - - - - - @@ -816,11 +753,11 @@ - + - + 3 @@ -838,11 +775,11 @@ - + - + Kb @@ -853,11 +790,11 @@ - + - + ufix16_En12 @@ -867,6 +804,69 @@ + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + I + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + @@ -1140,5 +1140,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2779_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2779_d.json index 6b545eb..e6999f5 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2779_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2779_d.json @@ -1,63 +1,4 @@ [ - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2788", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10828:2779", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "round", - "|++", - "off", - "Inherit: Same as first input", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2790", "className":"Simulink.Outport", @@ -139,50 +80,42 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2909", - "className":"Simulink.Inport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2788", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"init", - "label":"init", + "name":"Sum1", + "label":"Sum1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10828:2779", "inspector":{ "params":[ - "Port", - "IconDisplay", + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "2", - "Port number", + "round", + "|++", + "off", + "Inherit: Same as first input", "[]", "[]", - "Inherit: auto", + "Inherit: Same as first input", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "Simplest", "off", - "", - "on", - "off", - "off", - "off" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -192,7 +125,7 @@ "tabs_idx":[ 0, 2, - 11 + 10 ] }, "viewer":{ @@ -201,7 +134,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Sum", "masktype":"" } }, @@ -273,6 +206,120 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2787", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10828:2779", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2909", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"init", + "label":"init", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10828:2779", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2786", "className":"Simulink.Inport", @@ -340,53 +387,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2787", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10828:2779", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2909#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2779_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2779_d.svg index f075070..41e8028 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2779_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2779_d.svg @@ -10,78 +10,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - @@ -95,11 +23,11 @@ - + - + 1 @@ -117,11 +45,11 @@ - + - + y @@ -133,58 +61,67 @@ - - - + + + - - + + - - + + - - 2 + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - init + + - + - - + + - + sfix16_En4 @@ -198,7 +135,7 @@ - + @@ -206,35 +143,35 @@ - + - + x0 - + - + u - + - + Z - + - + -1 @@ -252,74 +189,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - - - - - - - + sfix16_En4 @@ -341,19 +215,19 @@ - + - + - + - + @@ -379,11 +253,137 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + init + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + sfix16_En4 @@ -485,5 +485,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2791_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2791_d.json index e27d266..7d25206 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2791_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2791_d.json @@ -1,4 +1,84 @@ [ + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2791:2710", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"hitMin", + "label":"hitMin", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10828:2791", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2791:2377", "className":"Simulink.Outport", @@ -159,86 +239,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2791:2710", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"hitMin", - "label":"hitMin", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10828:2791", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2791:2849", "className":"Simulink.Switch", @@ -342,40 +342,50 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2791:2848", - "className":"Simulink.Switch", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2791:2700", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", + "name":"u", + "label":"u", "parent":"BLDCmotor_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ - "Criteria", - "InputSameDT", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "Threshold", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "u2 ~= 0", - "off", + "2", + "Port number", "[]", "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", + "Inherit: auto", "off", + "inherit", "-1", - "0", - "on" + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ "Main", @@ -384,8 +394,8 @@ ], "tabs_idx":[ 0, - 1, - 9 + 2, + 11 ] }, "viewer":{ @@ -394,7 +404,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"Inport", "masktype":"" } }, @@ -511,50 +521,40 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2791:2700", - "className":"Simulink.Inport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2791:2848", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"u", - "label":"u", + "name":"Switch1", + "label":"Switch1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10828:2791", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Criteria", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "Threshold", + "ZeroCross" ], "values":[ - "2", - "Port number", + "u2 ~= 0", + "off", "[]", "[]", - "Inherit: auto", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", "off", - "inherit", "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "0", + "on" ], "tabs":[ "Main", @@ -563,8 +563,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 1, + 9 ] }, "viewer":{ @@ -573,7 +573,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Switch", "masktype":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2791_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2791_d.svg index de878c3..3a7998e 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2791_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2791_d.svg @@ -10,6 +10,54 @@ + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + hitMin + + + + + + + @@ -23,11 +71,11 @@ - + - + 2 @@ -45,11 +93,11 @@ - + - + y @@ -71,11 +119,11 @@ - + - + 1 @@ -93,11 +141,11 @@ - + - + hitMax @@ -107,54 +155,6 @@ - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - hitMin - - - - - - - - @@ -428,187 +428,58 @@ - - - + + + - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F + + 2 - - + + + + + + + + + + + + + + + + + u - + - - + + - + sfix16_En4 @@ -630,19 +501,19 @@ - + - + - + - + @@ -668,11 +539,11 @@ - + - + LowerRelop1 @@ -683,11 +554,11 @@ - + - + boolean @@ -709,11 +580,11 @@ - + - + 3 @@ -731,11 +602,11 @@ - + - + lo @@ -746,11 +617,11 @@ - + - + sfix16_En4 @@ -762,58 +633,187 @@ - - - + + + - - + + - - + + - - 2 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - - - - - - - - - - - - - - - - u + + - + - + - + sfix16_En4 @@ -1081,10 +1081,10 @@ - + - + @@ -1106,5 +1106,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2816_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2816_d.json index 4a05152..75b6c88 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2816_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2816_d.json @@ -213,6 +213,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2839", + "className":"Simulink.Signum", + "icon":"WebViewIcon3", + "name":"SignDeltaU3", + "label":"SignDeltaU3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10828:2816", + "inspector":{ + "params":[ + "ZeroCross", + "SampleTime" + ], + "values":[ + "on", + "-1" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Signum", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2840", "className":"Simulink.DataTypeConversion", @@ -261,71 +292,38 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2839", - "className":"Simulink.Signum", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2841", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"SignDeltaU3", - "label":"SignDeltaU3", + "name":"Equal1", + "label":"Equal1", "parent":"BLDCmotor_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ - "ZeroCross", - "SampleTime" - ], - "values":[ - "on", - "-1" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Signum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2836", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"DataTypeConv3", - "label":"DataTypeConv3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10828:2816", - "inspector":{ - "params":[ - "OutMin", - "OutMax", + "Operator", + "InputSameDT", "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" + "SampleTime", + "ZeroCross" ], "values":[ - "[]", - "[]", - "int8", + "==", "on", - "Real World Value (RWV)", + "Inherit: Logical (see Configuration Parameters: Optimization)", "Zero", - "off", - "-1" + "-1", + "on" ], "tabs":[ - "Parameter Attributes", + "Main", + "Data Type", "-Other" ], "tabs_idx":[ 0, - 7 + 1, + 4 ] }, "viewer":{ @@ -334,7 +332,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"DataTypeConversion", + "blocktype":"RelationalOperator", "masktype":"" } }, @@ -406,38 +404,40 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2841", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2836", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"Equal1", - "label":"Equal1", + "name":"DataTypeConv3", + "label":"DataTypeConv3", "parent":"BLDCmotor_FOC_R2017b_fixdt:10828:2816", "inspector":{ "params":[ - "Operator", - "InputSameDT", + "OutMin", + "OutMax", "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", "RndMeth", - "SampleTime", - "ZeroCross" + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "==", + "[]", + "[]", + "int8", "on", - "Inherit: Logical (see Configuration Parameters: Optimization)", + "Real World Value (RWV)", "Zero", - "-1", - "on" + "off", + "-1" ], "tabs":[ - "Main", - "Data Type", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 1, - 4 + 7 ] }, "viewer":{ @@ -446,7 +446,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"DataTypeConversion", "masktype":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2816_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2816_d.svg index 3f57e95..fad5178 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2816_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2816_d.svg @@ -185,75 +185,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - + @@ -261,35 +197,35 @@ - + - + - + - + - + - + - + - + @@ -315,11 +251,11 @@ - + - + int16 @@ -331,29 +267,29 @@ - - + + - + - + - + - + - + @@ -368,22 +304,22 @@ - + - + - - + + - + int8 @@ -393,74 +329,11 @@ - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - hitSat - - - - - - - - - - - - - - - boolean - - - - - - - - - + @@ -468,27 +341,27 @@ - + - + - + - + - + - + @@ -514,11 +387,11 @@ - + - + boolean @@ -528,11 +401,138 @@ + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + hitSat + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + - + @@ -612,7 +612,7 @@ - + @@ -800,5 +800,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_d.json index 693634d..02487b0 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_d.json @@ -1,84 +1,4 @@ [ - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2785", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"out", - "label":"out", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2817", "className":"Simulink.UnitDelay", @@ -245,6 +165,86 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2785", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"out", + "label":"out", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2783", "className":"Simulink.Sum", @@ -304,6 +304,99 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2791", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon6", + "name":"Saturation_hit", + "label":"Saturation_hit", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "ShowPortLabels", + "BlockChoice", + "TemplateBlock", + "MemberBlocks", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "MinAlgLoopOccurrences", + "PropExecContextOutsideSubsystem", + "SystemSampleTime", + "RTWSystemCode", + "RTWFcnNameOpts", + "RTWFcnName", + "RTWFileNameOpts", + "RTWFileName", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "RTWMemSecFuncInitTerm", + "RTWMemSecFuncExecute", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "IsSubsystemVirtual", + "Variant", + "VariantControl", + "OverrideUsingVariant", + "GeneratePreprocessorConditionals", + "AllowZeroVariantControls", + "PropagateVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "TreatAsGroupedWhenPropagatingVariantConditions" + ], + "values":[ + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", + "off", + "off", + "off", + "-1", + "Auto", + "Auto", + "", + "Auto", + "", + "void_void", + "off", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "on", + "off", + "", + "", + "off", + "off", + "off", + "", + "", + "on" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2779", "className":"Simulink.SubSystem", @@ -401,6 +494,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2794", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hitMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2845", "className":"Simulink.Goto", @@ -434,6 +560,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2795", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_hitMin", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2846", "className":"Simulink.From", @@ -527,372 +686,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2815", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Constant", - "label":"Constant", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2732", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"satMax", - "label":"satMax", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2795", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_hitMin", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2791", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon6", - "name":"Saturation_hit", - "label":"Saturation_hit", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "ShowPortLabels", - "BlockChoice", - "TemplateBlock", - "MemberBlocks", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "MinAlgLoopOccurrences", - "PropExecContextOutsideSubsystem", - "SystemSampleTime", - "RTWSystemCode", - "RTWFcnNameOpts", - "RTWFcnName", - "RTWFileNameOpts", - "RTWFileName", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "RTWMemSecFuncInitTerm", - "RTWMemSecFuncExecute", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "IsSubsystemVirtual", - "Variant", - "VariantControl", - "OverrideUsingVariant", - "GeneratePreprocessorConditionals", - "AllowZeroVariantControls", - "PropagateVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "TreatAsGroupedWhenPropagatingVariantConditions" - ], - "values":[ - "FromPortIcon", - "", - "", - "", - "ReadWrite", - "", - "All", - "off", - "off", - "off", - "-1", - "Auto", - "Auto", - "", - "Auto", - "", - "void_void", - "off", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "on", - "off", - "", - "", - "off", - "off", - "off", - "", - "", - "on" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2733", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"satMin", - "label":"satMin", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2778", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide5", - "label":"Divide5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,5)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2776", "className":"Simulink.Product", @@ -951,50 +744,32 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2910", - "className":"Simulink.Inport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2815", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"init", - "label":"init", + "name":"Constant", + "label":"Constant", "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "FramePeriod" ], "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", + "0", "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", "off", - "off", - "off" + "inf" ], "tabs":[ "Main", @@ -1003,8 +778,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -1013,74 +788,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2771", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"I", - "label":"I", - "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", + "blocktype":"Constant", "masktype":"" } }, @@ -1182,11 +890,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2770", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2733", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"P", - "label":"P", + "name":"satMin", + "label":"satMin", "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ @@ -1209,7 +917,141 @@ "OutputFunctionCall" ], "values":[ - "2", + "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":"BLDCmotor_FOC_R2017b_fixdt:10828:2732", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"satMax", + "label":"satMax", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2910", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"init", + "label":"init", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", "Port number", "[]", "[]", @@ -1316,27 +1158,51 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2794", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2778", + "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Divide5", + "label":"Divide5", "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "b_hitMax", - "local", - "Tag" + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(1,16,5)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 9 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1344,7 +1210,141 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2771", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"I", + "label":"I", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10828:2770", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"P", + "label":"P", + "parent":"BLDCmotor_FOC_R2017b_fixdt:10828", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", "masktype":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_d.svg index bd980f7..53fa97f 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_d.svg @@ -10,60 +10,12 @@ - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - out - - - - - - - - + @@ -71,35 +23,35 @@ - + - + - + - + - + - + - + - + @@ -120,36 +72,36 @@ - - - - - - - - - - - boolean - - - - - + - + Ini=0 + + + + + + + + + + + boolean + + + + @@ -158,20 +110,44 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -179,7 +155,7 @@ - + @@ -187,7 +163,7 @@ - + @@ -195,7 +171,7 @@ - + @@ -203,7 +179,7 @@ - + @@ -211,7 +187,7 @@ - + @@ -219,7 +195,7 @@ - + @@ -227,7 +203,7 @@ - + @@ -235,7 +211,7 @@ - + @@ -243,7 +219,7 @@ - + @@ -251,7 +227,7 @@ - + @@ -259,7 +235,7 @@ - + @@ -267,7 +243,7 @@ - + @@ -275,46 +251,22 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + - + T - + - + F @@ -332,11 +284,11 @@ - + - + sfix16_En4 @@ -357,36 +309,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - @@ -404,11 +356,11 @@ - + - + sfix32_En20 @@ -418,6 +370,54 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + out + + + + + + + + @@ -490,6 +490,196 @@ + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + hitMax + + + + + + + + y + + + + + + + + hitMin + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -508,27 +698,27 @@ - + - + u - + - + init - + - + y @@ -558,11 +748,11 @@ - + - + Integrator @@ -579,11 +769,11 @@ - + - + sfix16_En4 @@ -595,13 +785,46 @@ - + + + + + + + + + + + + + + + + [b_hitMax] + + + + + + + + + + + + + + + + + + @@ -611,11 +834,11 @@ - + - + [b_hitSat] @@ -632,6 +855,39 @@ + + + + + + + + + + + + + + + + + + [b_hitMin] + + + + + + + + + + + + + + + @@ -644,11 +900,11 @@ - + - + [b_hitSat] @@ -666,11 +922,11 @@ - + - + boolean @@ -692,11 +948,11 @@ - + - + [b_hitMin] @@ -714,11 +970,11 @@ - + - + boolean @@ -740,11 +996,11 @@ - + - + [b_hitMax] @@ -762,11 +1018,11 @@ - + - + boolean @@ -776,6 +1032,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + @@ -788,11 +1100,11 @@ - + - + 0 @@ -810,11 +1122,11 @@ - + - + sfix16_En4 @@ -824,593 +1136,6 @@ - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - satMax - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hitMin] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - hitMax - - - - - - - - y - - - - - - - - hitMin - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - satMin - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - init - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - I - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - @@ -1429,35 +1154,35 @@ - + - + preIntegrator - + - + preSat - + - + hitSat - + - + Clamp @@ -1487,11 +1212,11 @@ - + - + Clamping_circuit @@ -1508,11 +1233,11 @@ - + - + boolean @@ -1524,65 +1249,191 @@ - + - + - + - + - - 2 + + 6 - + - - + + - - + + - - P + + satMin - - + + - - + + - - ufix16_En12 + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + satMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + init + + + + + + + + + + + + + + + sfix16_En4 @@ -1603,11 +1454,11 @@ - + - + 7 @@ -1625,11 +1476,11 @@ - + - + ext_limProt @@ -1640,11 +1491,11 @@ - + - + sfix32_En20 @@ -1656,29 +1507,178 @@ - - - + + + - - + + - - + + - - [b_hitMax] + + + + + + + + + + - - + + + + + + + + + + + + + + + + + sfix16_En5 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + I + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + P + + + + + + + + + + + + + + + ufix16_En12 @@ -1754,7 +1754,7 @@ - + @@ -2198,5 +2198,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10829_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10829_d.svg index e2cd595..9917d25 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10829_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10829_d.svg @@ -1015,10 +1015,10 @@ - + - + @@ -1103,10 +1103,10 @@ - + - + @@ -1176,5 +1176,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11023_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11023_d.json index 0d42a1c..5bb5e61 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11023_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11023_d.json @@ -1,84 +1,4 @@ [ - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11101", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"i_beta", - "label":"i_beta", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", - "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":"BLDCmotor_FOC_R2017b_fixdt:11100", "className":"Simulink.Outport", @@ -159,55 +79,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11099", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"z_selPhaCurMeasABC", - "label":"z_selPhaCurMeasABC", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "z_selPhaCurMeasABC", - "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":"BLDCmotor_FOC_R2017b_fixdt:11098", "className":"Simulink.Merge", @@ -248,27 +119,33 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11094", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11097", + "className":"Simulink.Merge", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Merge1", + "label":"Merge1", "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Inputs", + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets" ], "values":[ - "i_beta", - "local", - "Tag" + "3", + "[]", + "off", + "[]" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -276,32 +153,42 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Merge", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11092", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11096", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"If1", + "label":"If1", "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" ], "values":[ - "i_betaBC", - "local", - "Tag" + "1", + "u1 == 0", + "u1 == 1", + "on", + "-1", + "on" ], "tabs":[ - "Parameter Attributes" + "Parameter Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 4 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -309,16 +196,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11091", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11093", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", "inspector":{ "params":[ @@ -327,7 +214,7 @@ "IconDisplay" ], "values":[ - "i_betaAB", + "i_alphaAC", "local", "Tag" ], @@ -412,6 +299,138 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11088", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", + "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":"BLDCmotor_FOC_R2017b_fixdt:11091", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_betaAB", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11087", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_alphaAB", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11086", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_alpha", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11085", "className":"Simulink.From", @@ -443,6 +462,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11094", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_beta", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11083", "className":"Simulink.From", @@ -474,70 +526,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11082", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", - "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":"BLDCmotor_FOC_R2017b_fixdt:11093", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "i_alphaAC", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11080", "className":"Simulink.From", @@ -570,21 +558,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11089", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11079", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", + "name":"From3", + "label":"From3", "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "i_phaBC", - "local", + "i_betaBC", "Tag" ], "tabs":[ @@ -598,46 +584,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11097", - "className":"Simulink.Merge", - "icon":"WebViewIcon3", - "name":"Merge1", - "label":"Merge1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", - "inspector":{ - "params":[ - "Inputs", - "InitialOutput", - "AllowUnequalInputPortWidths", - "InputPortOffsets" - ], - "values":[ - "3", - "[]", - "off", - "[]" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Merge", + "blocktype":"From", "masktype":"" } }, @@ -703,37 +650,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11075", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", - "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":"BLDCmotor_FOC_R2017b_fixdt:11074", "className":"Simulink.From", @@ -766,11 +682,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11079", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11072", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", + "name":"From", + "label":"From", "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", "inspector":{ "params":[ @@ -778,7 +694,7 @@ "IconDisplay" ], "values":[ - "i_betaBC", + "i_alphaAB", "Tag" ], "tabs":[ @@ -797,11 +713,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11086", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11089", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", "inspector":{ "params":[ @@ -810,7 +726,7 @@ "IconDisplay" ], "values":[ - "i_alpha", + "i_phaBC", "local", "Tag" ], @@ -830,69 +746,73 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11087", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11101", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"i_beta", + "label":"i_beta", "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "i_alphaAB", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11096", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "ZeroCross" + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "1", - "u1 == 0", - "u1 == 1", - "on", + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", "-1", - "on" + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ - "Parameter Attributes", + "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 4 + 2, + 11 ] }, "viewer":{ @@ -901,7 +821,168 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11056", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Clarke_PhasesBC", + "label":"Clarke_PhasesBC", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", + "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":"BLDCmotor_FOC_R2017b_fixdt:11082", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", + "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":"BLDCmotor_FOC_R2017b_fixdt:11092", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_betaBC", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", "masktype":"" } }, @@ -936,6 +1017,55 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11099", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"z_selPhaCurMeasABC", + "label":"z_selPhaCurMeasABC", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "z_selPhaCurMeasABC", + "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":"BLDCmotor_FOC_R2017b_fixdt:11026", "className":"Simulink.SubSystem", @@ -1033,6 +1163,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11075", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", + "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":"BLDCmotor_FOC_R2017b_fixdt:11081", "className":"Simulink.From", @@ -1064,233 +1225,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11088", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", - "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":"BLDCmotor_FOC_R2017b_fixdt:11041", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clarke_PhasesAC", - "label":"Clarke_PhasesAC", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", - "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":"BLDCmotor_FOC_R2017b_fixdt:11056", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clarke_PhasesBC", - "label":"Clarke_PhasesBC", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", - "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":"BLDCmotor_FOC_R2017b_fixdt:11025", "className":"Simulink.Inport", @@ -1390,11 +1324,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11072", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11078", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From2", + "label":"From2", "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", "inspector":{ "params":[ @@ -1402,7 +1336,7 @@ "IconDisplay" ], "values":[ - "i_alphaAB", + "i_betaAB", "Tag" ], "tabs":[ @@ -1420,6 +1354,103 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11041", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Clarke_PhasesAC", + "label":"Clarke_PhasesAC", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", + "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":"BLDCmotor_FOC_R2017b_fixdt:11024", "className":"Simulink.Inport", @@ -1487,37 +1518,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11078", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11023", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_betaAB", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11056#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11023_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11023_d.png index 5660d81..def65b4 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11023_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11023_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11023_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11023_d.svg index 14247bd..7c9a78e 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11023_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11023_d.svg @@ -10,54 +10,6 @@ - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - i_beta - - - - - - - @@ -71,11 +23,11 @@ - + - + 1 @@ -93,11 +45,11 @@ - + - + i_alpha @@ -107,74 +59,11 @@ - - - - - - - - - - - - - - - - - - z_selPhaCurMeasABC - - - - - - - - - - - - - - - - - - - - - - z_selPhaCurMeasABC - - - - - - - - - - - - - - - uint8 - - - - - - - - - + @@ -182,19 +71,19 @@ - + - + - + - + @@ -220,11 +109,11 @@ - + - + sfix16_En4 @@ -236,29 +125,60 @@ - - - + + + - - + + - + - - + + - - [i_beta] + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -269,29 +189,98 @@ - - - + + + - - + + - - + + - - [i_betaBC] + + u1 + + + + + + + + if(u1 == 0) + + + + + + + + elseif(u1 == 1) + + + + + + + + else - - + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action @@ -302,28 +291,28 @@ - - + + - + - + - - [i_betaAB] + + [i_alphaAC] - + @@ -345,11 +334,11 @@ - + - + [i_alphaBC] @@ -378,11 +367,11 @@ - + - + [i_betaAC] @@ -399,6 +388,138 @@ + + + + + + + + + + + + + + + + + + [i_phaAB] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_betaAB] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_alphaAB] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_alpha] + + + + + + + + + + + + + + + @@ -411,11 +532,11 @@ - + - + [i_phaBC] @@ -433,11 +554,11 @@ - + - + sfix16_En4 @@ -447,6 +568,39 @@ + + + + + + + + + + + + + + + + + + [i_beta] + + + + + + + + + + + + + + + @@ -459,11 +613,11 @@ - + - + [i_phaAB] @@ -481,11 +635,11 @@ - + - + sfix16_En4 @@ -495,87 +649,6 @@ - - - - - - - - - - - - - - - - - - [i_phaAB] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_alphaAC] - - - - - - - - - - - - - - - @@ -588,11 +661,11 @@ - + - + [i_alpha] @@ -610,11 +683,11 @@ - + - + sfix16_En4 @@ -626,92 +699,43 @@ - - - + + + - - + + - - + + - - [i_phaBC] + + [i_betaBC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - + + - + sfix16_En4 @@ -733,11 +757,11 @@ - + - + [i_betaAC] @@ -755,11 +779,11 @@ - + - + sfix16_En4 @@ -781,11 +805,11 @@ - + - + [i_alphaAC] @@ -803,59 +827,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaBC] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -915,11 +891,11 @@ - - + + - + @@ -929,29 +905,29 @@ - - [i_betaBC] + + [i_alphaAB] - + - + - + - + sfix16_En4 @@ -963,11 +939,11 @@ - - + + - + @@ -977,14 +953,14 @@ - - [i_alpha] + + [i_phaBC] - + @@ -996,29 +972,44 @@ - - - + + + - - + + - + - - [i_alphaAB] + + 2 - - + + + + + + + + + + + + + + + + + i_beta @@ -1029,102 +1020,248 @@ - - - + + + - - + + + + + + + + - - - - - - - u1 - - + - - if(u1 == 0) + + i_phaB - + - - elseif(u1 == 1) + + i_phaC - + - - else + + i_alphaBC + + + + + + + + i_betaBC + + + + + + + + elseif { } - - - - - - - - - - - - - + + + + - - action + + - - - - + - - - + + + + - - action - - - - - - - + + - + - + + Clarke_PhasesBC + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaAB] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_betaBC] + + + + + + + + + + + @@ -1141,11 +1278,11 @@ - + - + [i_alphaBC] @@ -1163,11 +1300,11 @@ - + - + sfix16_En4 @@ -1177,61 +1314,124 @@ + + + + + + + + + + + + + + + + + + z_selPhaCurMeasABC + + + + + + + + + + + + + + + + + + + + + + z_selPhaCurMeasABC + + + + + + + + + + + + + + + uint8 + + + + + + + + - + - + - + - + - + i_phaA - + - + i_phaB - + - + i_alphaAB - + - + i_betaAB - + - + if { } @@ -1239,7 +1439,7 @@ - + @@ -1252,7 +1452,7 @@ - + @@ -1261,11 +1461,11 @@ - + - + Clarke_PhasesAB @@ -1273,7 +1473,7 @@ - + @@ -1282,11 +1482,11 @@ - + - + sfix16_En4 @@ -1294,7 +1494,7 @@ - + @@ -1303,11 +1503,11 @@ - + - + action @@ -1315,7 +1515,7 @@ - + @@ -1324,11 +1524,65 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaBC] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1341,12 +1595,6 @@ - - - - - - @@ -1356,11 +1604,11 @@ - + - + [i_beta] @@ -1378,372 +1626,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaAB] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - i_phaA - - - - - - - - i_phaC - - - - - - - - i_alphaAC - - - - - - - - i_betaAC - - - - - - - - else { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Clarke_PhasesAC - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - i_phaB - - - - - - - - i_phaC - - - - - - - - i_alphaBC - - - - - - - - i_betaBC - - - - - - - - elseif { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Clarke_PhasesBC - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -1756,12 +1643,6 @@ - - - - - - @@ -1771,11 +1652,11 @@ - + - + 2 @@ -1793,11 +1674,11 @@ - + - + i_phaBC @@ -1808,11 +1689,11 @@ - + - + sfix16_En4 @@ -1834,11 +1715,11 @@ - + - + [i_phaBC] @@ -1856,122 +1737,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_alphaAB] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - i_phaAB - - - - - - - - - - - - - - + sfix16_En4 @@ -1993,11 +1763,11 @@ - + - + [i_betaAB] @@ -2015,11 +1785,241 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + i_phaA + + + + + + + + i_phaC + + + + + + + + i_alphaAC + + + + + + + + i_betaAC + + + + + + + + else { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Clarke_PhasesAC + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + i_phaAB + + + + + + + + + + + + + + sfix16_En4 @@ -2423,5 +2423,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11026_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11026_d.json index d29cc0d..41e3e31 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11026_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11026_d.json @@ -128,157 +128,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11037", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "++", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11036", - "className":"Simulink.SignalConversion", - "icon":"WebViewIcon3", - "name":"Signal Conversion2", - "label":"Signal Conversion2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", - "inspector":{ - "params":[ - "ConversionOutput", - "OutDataTypeStr", - "OverrideOpt" - ], - "values":[ - "Signal copy", - "Inherit: auto", - "off" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SignalConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11033", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain4", - "label":"Gain4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "1/sqrt(3)", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11038", "className":"Simulink.Outport", @@ -359,6 +208,342 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11036", + "className":"Simulink.SignalConversion", + "icon":"WebViewIcon3", + "name":"Signal Conversion2", + "label":"Signal Conversion2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", + "inspector":{ + "params":[ + "ConversionOutput", + "OutDataTypeStr", + "OverrideOpt" + ], + "values":[ + "Signal copy", + "Inherit: auto", + "off" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SignalConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11037", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11034", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_phaA", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11032", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain2", + "label":"Gain2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "2/sqrt(3)", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11033", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain4", + "label":"Gain4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "1/sqrt(3)", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11031", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_phaB", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11030", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_phaA", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11029", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11035", "className":"Simulink.Goto", @@ -459,68 +644,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11029", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11030", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_phaA", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11027", "className":"Simulink.Inport", @@ -588,129 +711,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11034", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "i_phaA", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11031", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_phaB", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11032", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain2", - "label":"Gain2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11026", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "2/sqrt(3)", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11028#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11026_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11026_d.svg index db9e610..213960f 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11026_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11026_d.svg @@ -112,68 +112,44 @@ - - - + + + - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - + + 1 - - + + - - - + + + - - + + - - sfix16_En4 + + i_alphaAB @@ -194,100 +170,124 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - - + + @@ -295,30 +295,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -344,11 +320,164 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaA] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2/sqrt(3) + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -370,11 +499,11 @@ - + - + 1/sqrt(3) @@ -392,11 +521,11 @@ - + - + sfix16_En4 @@ -408,44 +537,140 @@ - - - + + + - - + + - - + + - - 1 + + [i_phaB] - - + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaA] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + - - + + - - + + - - i_alphaAB + + Action Port @@ -466,11 +691,11 @@ - + - + [i_phaB] @@ -499,11 +724,11 @@ - + - + 2 @@ -521,11 +746,11 @@ - + - + i_phaB @@ -536,107 +761,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaA] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -658,11 +787,11 @@ - + - + 1 @@ -680,11 +809,11 @@ - + - + i_phaA @@ -695,140 +824,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaA] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaB] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2/sqrt(3) - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -972,5 +972,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11041_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11041_d.json index 29ee2b7..10e78eb 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11041_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11041_d.json @@ -48,86 +48,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11053", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"i_alphaAC", - "label":"i_alphaAC", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11041", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11051", "className":"Simulink.SignalConversion", @@ -227,96 +147,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11048", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain4", - "label":"Gain4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11041", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "1/sqrt(3)", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11044", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11041", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11047", "className":"Simulink.Gain", @@ -376,37 +206,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11045", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11041", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_phaA", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11046", "className":"Simulink.From", @@ -439,53 +238,25 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11052", - "className":"Simulink.Sum", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11045", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", + "name":"From", + "label":"From", "parent":"BLDCmotor_FOC_R2017b_fixdt:11041", "inspector":{ "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "IconDisplay" ], "values":[ - "rectangular", - "--", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" + "i_phaA", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 10 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -493,74 +264,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11043", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"i_phaC", - "label":"i_phaC", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11041", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", + "blocktype":"From", "masktype":"" } }, @@ -644,6 +348,302 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11053", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"i_alphaAC", + "label":"i_alphaAC", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11041", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11044", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11041", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11043", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"i_phaC", + "label":"i_phaC", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11041", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11048", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain4", + "label":"Gain4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11041", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "1/sqrt(3)", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11052", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11041", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "--", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11042", "className":"Simulink.Inport", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11041_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11041_d.svg index 0ad4aeb..aef59c3 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11041_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11041_d.svg @@ -62,54 +62,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - i_alphaAC - - - - - - - - @@ -122,100 +74,124 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - - + + @@ -223,30 +199,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - @@ -272,11 +224,11 @@ - + - + sfix16_En4 @@ -298,11 +250,11 @@ - + - + [i_phaA] @@ -331,11 +283,11 @@ - + - + [i_phaC] @@ -352,102 +304,6 @@ - - - - - - - - - - - - - - - - - - 1/sqrt(3) - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - else { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - @@ -460,11 +316,11 @@ - + - + 2/sqrt(3) @@ -482,59 +338,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaA] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -556,11 +364,11 @@ - + - + [i_phaC] @@ -578,11 +386,11 @@ - + - + sfix16_En4 @@ -594,114 +402,43 @@ - - - + + + - - + + - - + + - - - - - - - - - - + + [i_phaA] - - + + - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - i_phaC - - - - - - - - - - - - - - + sfix16_En4 @@ -723,11 +460,11 @@ - + - + 2 @@ -745,11 +482,11 @@ - + - + i_betaAC @@ -759,6 +496,269 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + i_alphaAC + + + + + + + + + + + + + + + + + + + + + + + + + + else { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + i_phaC + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1/sqrt(3) + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -956,5 +956,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11056_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11056_d.json index 6cf8e3d..386a86b 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11056_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11056_d.json @@ -209,11 +209,70 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11065", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11068", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum3", + "label":"Sum3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11056", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11066", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotor_FOC_R2017b_fixdt:11056", "inspector":{ "params":[ @@ -222,7 +281,7 @@ "IconDisplay" ], "values":[ - "i_phaB", + "i_phaC", "local", "Tag" ], @@ -241,6 +300,65 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11064", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain2", + "label":"Gain2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11056", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "1/sqrt(3)", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11062", "className":"Simulink.From", @@ -272,6 +390,166 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11060", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11056", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_phaB", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11059", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11056", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11058", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"i_phaC", + "label":"i_phaC", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11056", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11063", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11056", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_phaC", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11067", "className":"Simulink.Sum", @@ -332,11 +610,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11066", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11065", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotor_FOC_R2017b_fixdt:11056", "inspector":{ "params":[ @@ -345,7 +623,7 @@ "IconDisplay" ], "values":[ - "i_phaC", + "i_phaB", "local", "Tag" ], @@ -395,163 +673,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11059", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11056", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11064", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain2", - "label":"Gain2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11056", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "1/sqrt(3)", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11058", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"i_phaC", - "label":"i_phaC", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11056", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11057", "className":"Simulink.Inport", @@ -619,127 +740,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11063", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11056", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_phaC", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11068", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11056", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11060", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11056", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_phaB", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11061#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11056_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11056_d.svg index 6968ae7..5a1ee43 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11056_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11056_d.svg @@ -160,132 +160,59 @@ - - - - - - - - - - - - - - - - [i_phaB] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaB] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - - + + - - + + - - + + - - + + + + + + + + + + - + - + - - + + - + sfix16_En4 @@ -307,11 +234,11 @@ - + - + [i_phaC] @@ -328,102 +255,6 @@ - - - - - - - - - - - - - - - - - - [i_phaC] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - elseif { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - @@ -436,11 +267,11 @@ - + - + 1/sqrt(3) @@ -458,11 +289,11 @@ - + - + sfix16_En4 @@ -474,233 +305,43 @@ - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - i_phaC - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - i_phaB - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - + - - [i_phaC] + + [i_phaB] - + - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -722,11 +363,11 @@ - + - + [i_phaB] @@ -744,11 +385,370 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + elseif { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + i_phaC + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaC] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaB] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaC] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + i_phaB + + + + + + + + + + + + + + sfix16_En4 @@ -886,5 +886,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11151_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11151_d.json index fee1a6e..a4978c3 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11151_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11151_d.json @@ -224,11 +224,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11298", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11499", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", "inspector":{ "params":[ @@ -237,7 +237,7 @@ "IconDisplay" ], "values":[ - "b_errFlag", + "b_cruiseCtrlEna", "local", "Tag" ], @@ -257,11 +257,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11499", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11297", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"Goto6", + "label":"Goto6", "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", "inspector":{ "params":[ @@ -270,7 +270,7 @@ "IconDisplay" ], "values":[ - "b_cruiseCtrlEna", + "z_ctrlTypSel", "local", "Tag" ], @@ -389,11 +389,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11294", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11292", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto19", + "label":"Goto19", "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", "inspector":{ "params":[ @@ -402,7 +402,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModReq", + "r_inpTgtSca", "local", "Tag" ], @@ -454,6 +454,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11289", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_toOpen", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11287", "className":"Simulink.From", @@ -516,6 +549,165 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11285", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_toTrqMod", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11284", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "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":"BLDCmotor_FOC_R2017b_fixdt:11298", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto8", + "label":"Goto8", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_errFlag", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11288", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11498", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From42", + "label":"From42", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_cruiseCtrlEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11282", "className":"Simulink.From", @@ -547,6 +739,99 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11280", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From23", + "label":"From23", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "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":"BLDCmotor_FOC_R2017b_fixdt:11279", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From21", + "label":"From21", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "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":"BLDCmotor_FOC_R2017b_fixdt:11278", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From20", + "label":"From20", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "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":"BLDCmotor_FOC_R2017b_fixdt:11277", "className":"Simulink.From", @@ -578,6 +863,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11294", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlModReq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11275", "className":"Simulink.From", @@ -641,104 +959,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11285", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_toTrqMod", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11276", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_errFlag", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11274", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_toActive", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11288", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11291", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", "inspector":{ "params":[ @@ -747,7 +972,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "r_inpTgt", "local", "Tag" ], @@ -766,6 +991,170 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11159", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F03_01_Mode_Transition_Calculation", + "label":"F03_01_Mode_Transition_Calculation", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "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":"BLDCmotor_FOC_R2017b_fixdt:11156", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgt", + "label":"r_inpTgt", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "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":"BLDCmotor_FOC_R2017b_fixdt:11201", "className":"Simulink.SubSystem", @@ -863,6 +1252,135 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11276", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From12", + "label":"From12", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_errFlag", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11158", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11155", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlModReq", + "label":"z_ctrlModReq", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11200", "className":"Simulink.SubSystem", @@ -961,11 +1479,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11280", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11274", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", + "name":"From", + "label":"From", "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", "inspector":{ "params":[ @@ -973,7 +1491,7 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "b_toActive", "Tag" ], "tabs":[ @@ -992,75 +1510,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11297", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "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":"BLDCmotor_FOC_R2017b_fixdt:11284", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "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":"BLDCmotor_FOC_R2017b_fixdt:11157", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11154", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"VqFinPrev", - "label":"VqFinPrev", + "name":"z_ctrlTypSel", + "label":"z_ctrlTypSel", "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", "inspector":{ "params":[ @@ -1083,202 +1537,7 @@ "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":"BLDCmotor_FOC_R2017b_fixdt:11291", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "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":"BLDCmotor_FOC_R2017b_fixdt:11292", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "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":"BLDCmotor_FOC_R2017b_fixdt:11158", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11278", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "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":"BLDCmotor_FOC_R2017b_fixdt:11156", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_inpTgt", - "label":"r_inpTgt", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "6", + "4", "Port number", "[]", "[]", @@ -1384,73 +1643,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11154", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_ctrlTypSel", - "label":"z_ctrlTypSel", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11153", "className":"Simulink.Inport", @@ -1518,165 +1710,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11279", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "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":"BLDCmotor_FOC_R2017b_fixdt:11498", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From42", - "label":"From42", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_cruiseCtrlEna", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11159", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F03_01_Mode_Transition_Calculation", - "label":"F03_01_Mode_Transition_Calculation", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "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":"BLDCmotor_FOC_R2017b_fixdt:11152", "className":"Simulink.Inport", @@ -1745,11 +1778,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11155", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11157", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlModReq", - "label":"z_ctrlModReq", + "name":"VqFinPrev", + "label":"VqFinPrev", "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", "inspector":{ "params":[ @@ -1772,7 +1805,7 @@ "OutputFunctionCall" ], "values":[ - "5", + "7", "Port number", "[]", "[]", @@ -1811,39 +1844,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11289", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11151", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_toOpen", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11283#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11151_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11151_d.png index 5fcbb59..0895637 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11151_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11151_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11151_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11151_d.svg index e1baf9b..067aaef 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11151_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11151_d.svg @@ -190,11 +190,11 @@ - - + + - + @@ -204,14 +204,14 @@ - - [b_errFlag] + + [b_cruiseCtrlEna] - + @@ -223,11 +223,11 @@ - - + + - + @@ -237,14 +237,14 @@ - - [b_cruiseCtrlEna] + + [z_ctrlTypSel] - + @@ -355,11 +355,11 @@ - - + + - + @@ -369,14 +369,14 @@ - - [z_ctrlModReq] + + [r_inpTgtSca] - + @@ -419,6 +419,39 @@ + + + + + + + + + + + + + + + + + + [b_toOpen] + + + + + + + + + + + + + + + @@ -431,11 +464,11 @@ - + - + [VqFinPrev] @@ -453,11 +486,11 @@ - + - + sfix16_En4 @@ -479,11 +512,11 @@ - + - + [z_ctrlMod] @@ -501,11 +534,11 @@ - + - + uint8 @@ -515,6 +548,216 @@ + + + + + + + + + + + + + + + + + + [b_toTrqMod] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_errFlag] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlMod] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cruiseCtrlEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -527,11 +770,11 @@ - + - + [b_motEna] @@ -549,11 +792,11 @@ - + - + boolean @@ -563,6 +806,150 @@ + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + @@ -575,11 +962,11 @@ - + - + [b_toSpdMod] @@ -597,11 +984,11 @@ - + - + boolean @@ -611,6 +998,39 @@ + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + @@ -623,11 +1043,11 @@ - + - + [b_toOpen] @@ -645,11 +1065,11 @@ - + - + boolean @@ -671,11 +1091,11 @@ - + - + [r_inpTgtSca] @@ -693,651 +1113,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toTrqMod] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_errFlag] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toActive] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - z_ctrlTypSel - - - - - - - - z_ctrlModReq - - - - - - - - z_ctrlMod - - - - - - - - r_inpTgt - - - - - - - - VqFinPrev - - - - - - - - r_inpTgtSca - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F03_03_Input_Target_Synthesis - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - b_toOpen - - - - - - - - b_toActive - - - - - - - - b_toSpdMod - - - - - - - - b_toTrqMod - - - - - - - - z_ctrlMod - - - - - - - - - - - - - - - - - - - - - F03_02_Control_Mode_Manager - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlModReq] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - VqFinPrev - - - - - - - - - - - - - - + sfix16_En4 @@ -1359,11 +1139,11 @@ - + - + [r_inpTgt] @@ -1382,125 +1162,202 @@ - - - + + + - - + + + + + + + + - - + + - - [r_inpTgtSca] + + b_errFlag + + + + + + + + b_motEna + + + + + + + + b_cruiseCtrlEna + + + + + + + + z_ctrlModReq + + + + + + + + b_toOpen + + + + + + + + b_toActive + + + + + + + + b_toSpdMod + + + + + + + + b_toTrqMod - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - if { } - - - - - - - + + - - + + + + + + + + - - + + - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - + + F03_01_Mode_Transition_Calculation - - + + + + + + + + - - + + - - uint8 + + boolean + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + boolean @@ -1512,6 +1369,12 @@ + + + + + + @@ -1521,11 +1384,11 @@ - + - + 6 @@ -1543,11 +1406,11 @@ - + - + r_inpTgt @@ -1558,11 +1421,11 @@ - + - + sfix16_En4 @@ -1574,58 +1437,473 @@ - - - + + + - - + + + + + + + + - - + + - - 3 + + z_ctrlTypSel + + + + + + + + z_ctrlModReq + + + + + + + + z_ctrlMod + + + + + + + + r_inpTgt + + + + + + + + VqFinPrev + + + + + + + + r_inpTgtSca - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F03_03_Input_Target_Synthesis + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_errFlag] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + - - + + - - + + - - b_cruiseCtrlEna + + z_ctrlModReq - + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_toOpen + + + + + + + + b_toActive + + + + + + + + b_toSpdMod + + + + + + + + b_toTrqMod + + + + + + + + z_ctrlMod + + + + + + + + + + + + + + + + + + + + + F03_02_Control_Mode_Manager + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toActive] + + + + + + + + + + + + + - - + + - + boolean @@ -1647,11 +1925,11 @@ - + - + 4 @@ -1669,11 +1947,11 @@ - + - + z_ctrlTypSel @@ -1684,11 +1962,11 @@ - + - + uint8 @@ -1698,6 +1976,69 @@ + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + b_cruiseCtrlEna + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -1710,11 +2051,11 @@ - + - + 2 @@ -1732,11 +2073,11 @@ - + - + b_motEna @@ -1747,313 +2088,11 @@ - + - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlModReq] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_cruiseCtrlEna] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - b_errFlag - - - - - - - - b_motEna - - - - - - - - b_cruiseCtrlEna - - - - - - - - z_ctrlModReq - - - - - - - - b_toOpen - - - - - - - - b_toActive - - - - - - - - b_toSpdMod - - - - - - - - b_toTrqMod - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F03_01_Mode_Transition_Calculation - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - + boolean @@ -2066,12 +2105,6 @@ - - - - - - @@ -2081,11 +2114,11 @@ - + - + 1 @@ -2103,11 +2136,11 @@ - + - + b_errFlag @@ -2118,11 +2151,11 @@ - + - + boolean @@ -2134,92 +2167,59 @@ - - + + - + - + - - 5 + + 7 - + - - + + - - + + - - z_ctrlModReq + + VqFinPrev - - + + - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - + - - [b_toOpen] - - - - - - - + + sfix16_En4 @@ -2622,5 +2622,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11159_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11159_d.json index 673fa2f..7fd7b5e 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11159_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11159_d.json @@ -1,401 +1,4 @@ [ - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11198", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"b_toSpdMod", - "label":"b_toSpdMod", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11193", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant1", - "label":"constant1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "SPD_MODE", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11192", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant", - "label":"constant", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "TRQ_MODE", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11197", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"b_toActive", - "label":"b_toActive", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11188", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator1", - "label":"Relational Operator1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11195", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant8", - "label":"constant8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "OPEN_MODE", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11191", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator5", - "label":"Relational Operator5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11196", "className":"Simulink.Outport", @@ -477,27 +80,43 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11181", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11195", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", + "name":"constant8", + "label":"constant8", "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "b_errFlag", - "local", - "Tag" + "OPEN_MODE", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -505,7 +124,142 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11190", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator4", + "label":"Relational Operator4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11189", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator10", + "label":"Relational Operator10", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11188", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator1", + "label":"Relational Operator1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", "masktype":"" } }, @@ -576,11 +330,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11178", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11177", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", "inspector":{ "params":[ @@ -589,7 +343,7 @@ "IconDisplay" ], "values":[ - "b_toActive", + "z_ctrlModReq", "local", "Tag" ], @@ -609,11 +363,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11177", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11181", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", "inspector":{ "params":[ @@ -622,7 +376,40 @@ "IconDisplay" ], "values":[ - "z_ctrlModReq", + "b_errFlag", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11496", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_cruiseCtrlEna", "local", "Tag" ], @@ -674,6 +461,68 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11493", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_cruiseCtrlEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11491", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From42", + "label":"From42", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_cruiseCtrlEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11175", "className":"Simulink.From", @@ -706,11 +555,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11174", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11169", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", + "name":"From2", + "label":"From2", "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", "inspector":{ "params":[ @@ -718,7 +567,7 @@ "IconDisplay" ], "values":[ - "b_toOpen", + "b_toTrqMod", "Tag" ], "tabs":[ @@ -770,11 +619,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11172", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11173", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From6", + "label":"From6", "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", "inspector":{ "params":[ @@ -782,145 +631,7 @@ "IconDisplay" ], "values":[ - "b_toOpen", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11171", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "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":"BLDCmotor_FOC_R2017b_fixdt:11493", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_cruiseCtrlEna", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11189", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator10", - "label":"Relational Operator10", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11169", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_toTrqMod", + "b_toSpdMod", "Tag" ], "tabs":[ @@ -970,11 +681,87 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11496", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11166", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_toSpdMod", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11191", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator5", + "label":"Relational Operator5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11178", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", "inspector":{ "params":[ @@ -983,7 +770,7 @@ "IconDisplay" ], "values":[ - "b_cruiseCtrlEna", + "b_toActive", "local", "Tag" ], @@ -1003,11 +790,60 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11491", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11194", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"constant5", + "label":"constant5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "VLT_MODE", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11172", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From42", - "label":"From42", + "name":"From5", + "label":"From5", "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", "inspector":{ "params":[ @@ -1015,7 +851,7 @@ "IconDisplay" ], "values":[ - "b_cruiseCtrlEna", + "b_toOpen", "Tag" ], "tabs":[ @@ -1064,6 +900,375 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11164", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_toActive", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11174", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From8", + "label":"From8", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_toOpen", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11163", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_errFlag", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11198", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"b_toSpdMod", + "label":"b_toSpdMod", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11192", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"constant", + "label":"constant", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "TRQ_MODE", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11162", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlModReq", + "label":"z_ctrlModReq", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11171", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "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":"BLDCmotor_FOC_R2017b_fixdt:11193", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"constant1", + "label":"constant1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "SPD_MODE", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11495", "className":"Simulink.Inport", @@ -1131,6 +1336,73 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11160", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_motEna", + "label":"b_motEna", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11199", "className":"Simulink.Outport", @@ -1211,37 +1483,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11165", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "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":"BLDCmotor_FOC_R2017b_fixdt:11170", "className":"Simulink.From", @@ -1273,278 +1514,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11163", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_errFlag", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11160", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_motEna", - "label":"b_motEna", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11173", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_toSpdMod", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11162", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_ctrlModReq", - "label":"z_ctrlModReq", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11190", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator4", - "label":"Relational Operator4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11166", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_toSpdMod", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11161", "className":"Simulink.Inport", @@ -1613,11 +1582,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11164", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11165", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From10", + "label":"From10", "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", "inspector":{ "params":[ @@ -1625,7 +1594,7 @@ "IconDisplay" ], "values":[ - "b_toActive", + "b_motEna", "Tag" ], "tabs":[ @@ -1644,32 +1613,63 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11194", - "className":"Simulink.Constant", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11197", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"constant5", - "label":"constant5", + "name":"b_toActive", + "label":"b_toActive", "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "VLT_MODE", - "on", - "inf", + "2", + "Port number", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: auto", "off", - "inf" + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -1678,8 +1678,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 2, + 11 ] }, "viewer":{ @@ -1688,16 +1688,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Outport", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11184", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11187", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator4", - "label":"Logical Operator4", + "name":"Logical Operator9", + "label":"Logical Operator9", "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", "inspector":{ "params":[ @@ -1709,52 +1709,7 @@ "SampleTime" ], "values":[ - "OR", - "3", - "rectangular", - "off", - "boolean", - "-1" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 5 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Logic", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11183", - "className":"Simulink.Logic", - "icon":"WebViewIcon3", - "name":"Logical Operator3", - "label":"Logical Operator3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "Operator", - "Inputs", - "IconShape", - "AllPortsSameDT", - "OutDataTypeStr", - "SampleTime" - ], - "values":[ - "AND", + "NOT", "2", "rectangular", "off", @@ -1827,6 +1782,51 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11184", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"Logical Operator4", + "label":"Logical Operator4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "OR", + "3", + "rectangular", + "off", + "boolean", + "-1" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 5 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Logic", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11185", "className":"Simulink.Logic", @@ -1873,11 +1873,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11492", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11183", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator2", - "label":"Logical Operator2", + "name":"Logical Operator3", + "label":"Logical Operator3", "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", "inspector":{ "params":[ @@ -1917,51 +1917,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11187", - "className":"Simulink.Logic", - "icon":"WebViewIcon3", - "name":"Logical Operator9", - "label":"Logical Operator9", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", - "inspector":{ - "params":[ - "Operator", - "Inputs", - "IconShape", - "AllPortsSameDT", - "OutDataTypeStr", - "SampleTime" - ], - "values":[ - "NOT", - "2", - "rectangular", - "off", - "boolean", - "-1" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 5 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Logic", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11494", "className":"Simulink.Logic", @@ -2052,6 +2007,51 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11492", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"Logical Operator2", + "label":"Logical Operator2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11159", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "AND", + "2", + "rectangular", + "off", + "boolean", + "-1" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 5 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Logic", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11183#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11159_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11159_d.png index d93855a..d01447a 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11159_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11159_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11159_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11159_d.svg index d0258a3..653ceb8 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11159_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11159_d.svg @@ -13,11 +13,11 @@ - - + + - + @@ -27,30 +27,30 @@ - - 3 + + 1 - + - - + + - + - - b_toSpdMod + + b_toOpen @@ -61,11 +61,11 @@ - - + + - + @@ -75,29 +75,29 @@ - - SPD_MODE + + OPEN_MODE - + - + - + - + uint8 @@ -109,44 +109,68 @@ - - - + + + - - + + - + - + - - TRQ_MODE + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - uint8 + + boolean @@ -157,44 +181,68 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - 2 - - - + + - - - + + + - - + + - - b_toActive + + boolean @@ -207,7 +255,7 @@ - + @@ -215,27 +263,27 @@ - + - + - + - + - + - + @@ -261,11 +309,11 @@ - + - + boolean @@ -275,207 +323,6 @@ - - - - - - - - - - - - - - - - - - OPEN_MODE - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - b_toOpen - - - - - - - - - - - - - - - - - - - - - - - - - - [b_errFlag] - - - - - - - - - - - - - - - @@ -488,11 +335,11 @@ - + - + [b_toOpen] @@ -521,11 +368,11 @@ - + - + [b_toSpdMod] @@ -542,39 +389,6 @@ - - - - - - - - - - - - - - - - - - [b_toActive] - - - - - - - - - - - - - - - @@ -587,11 +401,11 @@ - + - + [z_ctrlModReq] @@ -608,6 +422,72 @@ + + + + + + + + + + + + + + + + + + [b_errFlag] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cruiseCtrlEna] + + + + + + + + + + + + + + + @@ -620,11 +500,11 @@ - + - + [b_toTrqMod] @@ -641,6 +521,102 @@ + + + + + + + + + + + + + + + + + + [b_cruiseCtrlEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cruiseCtrlEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -653,11 +629,11 @@ - + - + [z_ctrlModReq] @@ -675,11 +651,11 @@ - + - + uint8 @@ -691,43 +667,43 @@ - - + + - + - + - - [b_toOpen] + + [b_toTrqMod] - + - + - - + + - + boolean @@ -749,11 +725,11 @@ - + - + [b_motEna] @@ -772,259 +748,43 @@ - - + + - + - + - - [b_toOpen] + + [b_toSpdMod] - + - + - - + + - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlModReq] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_cruiseCtrlEna] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toTrqMod] - - - - - - - - - - - - - - - - - - - - - + boolean @@ -1046,11 +806,11 @@ - + - + [z_ctrlModReq] @@ -1068,11 +828,11 @@ - + - + uint8 @@ -1084,28 +844,148 @@ - - - + + + - - + + - - + + - - [b_cruiseCtrlEna] + + [b_toSpdMod] - + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toActive] + + + + + + @@ -1117,43 +997,91 @@ - - - + + + - - + + - - + + - - [b_cruiseCtrlEna] + + VLT_MODE - + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toOpen] + + + + + + - + - - + + - + boolean @@ -1175,11 +1103,11 @@ - + - + [b_toTrqMod] @@ -1197,11 +1125,11 @@ - + - + boolean @@ -1213,154 +1141,43 @@ - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - b_cruiseCtrlEna - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - b_toTrqMod - - - - - - - - - - - - + + - + - + - - [b_motEna] + + [b_toActive] - + - + - - + + - + boolean @@ -1372,44 +1189,44 @@ - - + + - + - + - - [z_ctrlModReq] + + [b_toOpen] - + - - + + - - + + - - uint8 + + boolean @@ -1430,11 +1247,11 @@ - + - + [b_errFlag] @@ -1452,11 +1269,329 @@ - + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + b_toSpdMod + + + + + + + + + + + + + + + + + + + + + + + + + + TRQ_MODE + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + z_ctrlModReq + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + SPD_MODE + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + b_cruiseCtrlEna + + + + + + + + + + + + + + boolean @@ -1478,11 +1613,11 @@ - + - + 2 @@ -1500,11 +1635,11 @@ - + - + b_motEna @@ -1515,11 +1650,11 @@ - + - + boolean @@ -1531,179 +1666,44 @@ - - - - - - - - - - - - - - - - [b_toSpdMod] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - + + - + - + - + 4 - + - - - - - - - - - - z_ctrlModReq - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - - boolean + + b_toTrqMod @@ -1714,11 +1714,11 @@ - - + + - + @@ -1728,30 +1728,30 @@ - - [b_toSpdMod] + + [z_ctrlModReq] - + - - + + - + - - boolean + + uint8 @@ -1825,11 +1825,11 @@ - - + + - + @@ -1839,29 +1839,29 @@ - - [b_toActive] + + [b_motEna] - + - + - + - + boolean @@ -1873,44 +1873,44 @@ - - - + + + - - + + - + - - VLT_MODE + + 2 - - + + - - - + + + - + - - uint8 + + b_toActive @@ -1921,30 +1921,30 @@ - - - + + + - - + + - + - - + + - + - - + + @@ -1954,87 +1954,23 @@ - + - + - + boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - + + @@ -2051,7 +1987,7 @@ - + @@ -2059,19 +1995,19 @@ - + - + - + - + @@ -2086,11 +2022,11 @@ - + - + boolean @@ -2111,11 +2047,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + - + @@ -2177,29 +2177,29 @@ - - - + + + - - + + - + - - + + - + @@ -2210,87 +2210,23 @@ - + - + - + boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - + + @@ -2315,19 +2251,19 @@ - + - + - + - + @@ -2342,11 +2278,11 @@ - + - + boolean @@ -2379,19 +2315,19 @@ - + - + - + - + @@ -2406,11 +2342,11 @@ - + - + boolean @@ -2431,6 +2367,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + @@ -2923,5 +2923,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11200_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11200_d.json index 9859713..49bd722 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11200_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11200_d.json @@ -180,11 +180,44 @@ ] }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:32", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:12", "className":"Stateflow.Transition", "icon":"WebViewIcon9", "name":"", - "label":"[b_toSpdMod]", + "label":"", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11200", + "inspector":{ + "params":[ + "ExecutionOrder", + "LabelString", + "Description", + "Document" + ], + "values":[ + 2, + "", + "", + "" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:71", + "className":"Stateflow.Transition", + "icon":"WebViewIcon9", + "name":"", + "label":"[~b_toTrqMod]", "parent":"BLDCmotor_FOC_R2017b_fixdt:11200", "inspector":{ "params":[ @@ -195,7 +228,7 @@ ], "values":[ 1, - "[b_toSpdMod]", + "[~b_toTrqMod]", "", "" ], @@ -245,6 +278,138 @@ "finder":[ ] }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:9", + "className":"Stateflow.Transition", + "icon":"WebViewIcon9", + "name":"", + "label":"", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11200", + "inspector":{ + "params":[ + "ExecutionOrder", + "LabelString", + "Description", + "Document" + ], + "values":[ + 1, + "", + "", + "" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:31", + "className":"Stateflow.Transition", + "icon":"WebViewIcon9", + "name":"", + "label":"[b_toTrqMod]", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11200", + "inspector":{ + "params":[ + "ExecutionOrder", + "LabelString", + "Description", + "Document" + ], + "values":[ + 1, + "[b_toTrqMod]", + "", + "" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:33", + "className":"Stateflow.Transition", + "icon":"WebViewIcon9", + "name":"", + "label":"", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11200", + "inspector":{ + "params":[ + "ExecutionOrder", + "LabelString", + "Description", + "Document" + ], + "values":[ + 1, + "", + "", + "" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:32", + "className":"Stateflow.Transition", + "icon":"WebViewIcon9", + "name":"", + "label":"[b_toSpdMod]", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11200", + "inspector":{ + "params":[ + "ExecutionOrder", + "LabelString", + "Description", + "Document" + ], + "values":[ + 1, + "[b_toSpdMod]", + "", + "" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:73", "className":"Stateflow.Transition", @@ -311,171 +476,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:9", - "className":"Stateflow.Transition", - "icon":"WebViewIcon9", - "name":"", - "label":"", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11200", - "inspector":{ - "params":[ - "ExecutionOrder", - "LabelString", - "Description", - "Document" - ], - "values":[ - 1, - "", - "", - "" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":[ - ] - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:71", - "className":"Stateflow.Transition", - "icon":"WebViewIcon9", - "name":"", - "label":"[~b_toTrqMod]", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11200", - "inspector":{ - "params":[ - "ExecutionOrder", - "LabelString", - "Description", - "Document" - ], - "values":[ - 1, - "[~b_toTrqMod]", - "", - "" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":[ - ] - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:33", - "className":"Stateflow.Transition", - "icon":"WebViewIcon9", - "name":"", - "label":"", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11200", - "inspector":{ - "params":[ - "ExecutionOrder", - "LabelString", - "Description", - "Document" - ], - "values":[ - 1, - "", - "", - "" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":[ - ] - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:12", - "className":"Stateflow.Transition", - "icon":"WebViewIcon9", - "name":"", - "label":"", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11200", - "inspector":{ - "params":[ - "ExecutionOrder", - "LabelString", - "Description", - "Document" - ], - "values":[ - 2, - "", - "", - "" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":[ - ] - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:31", - "className":"Stateflow.Transition", - "icon":"WebViewIcon9", - "name":"", - "label":"[b_toTrqMod]", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11200", - "inspector":{ - "params":[ - "ExecutionOrder", - "LabelString", - "Description", - "Document" - ], - "values":[ - 1, - "[b_toTrqMod]", - "", - "" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":[ - ] - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:1", "className":"Stateflow.State", @@ -522,11 +522,11 @@ ] }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:14", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:13", "className":"Stateflow.Transition", "icon":"WebViewIcon9", "name":"", - "label":"[b_toOpen]", + "label":"[b_toActive]", "parent":"BLDCmotor_FOC_R2017b_fixdt:11200", "inspector":{ "params":[ @@ -537,7 +537,7 @@ ], "values":[ 1, - "[b_toOpen]", + "[b_toActive]", "", "" ], @@ -588,11 +588,11 @@ ] }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:13", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11200:14", "className":"Stateflow.Transition", "icon":"WebViewIcon9", "name":"", - "label":"[b_toActive]", + "label":"[b_toOpen]", "parent":"BLDCmotor_FOC_R2017b_fixdt:11200", "inspector":{ "params":[ @@ -603,7 +603,7 @@ ], "values":[ 1, - "[b_toActive]", + "[b_toOpen]", "", "" ], diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11200_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11200_d.svg index d59137e..8c1e498 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11200_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11200_d.svg @@ -55,18 +55,6 @@ - - - - - - - - - - - - @@ -76,25 +64,25 @@ - + - + - + - + - + @@ -153,7 +141,7 @@ - + @@ -165,6 +153,18 @@ + + + + + + + + + + + + @@ -257,40 +257,28 @@ - - - - - - - - - - - - - + - + - + - + - + @@ -349,7 +337,7 @@ - + @@ -361,10 +349,22 @@ + + + + + + + + + + + + - + @@ -372,45 +372,68 @@ - + - + - - + + - - - - - - - - - - - - - - - [b_toSpdMod] - - - - - + - - + + - - 1 + + 2 - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [~b_toTrqMod] + + @@ -422,7 +445,7 @@ - + @@ -460,122 +483,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_toTrqMod || - - - - - - - - - - - - - - - - ... - - - - - - - - - - - - - - - - b_toSpdMod] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - + @@ -596,39 +508,53 @@ - + - + - + - + - - + + - - + + - - + + - - + + - - [~b_toTrqMod] + + [b_toTrqMod] - + + + + + + + + + + + + + 1 + + @@ -640,7 +566,7 @@ - + @@ -661,34 +587,53 @@ - + - + - + - + - - + + - + + + + + + + + + + + + + + + [b_toSpdMod] + + + + + - - + + - - 2 + + 1 - + @@ -698,7 +643,81 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_toTrqMod || + + + + + + + + + + + + + + + + ... + + + + + + + + + + + + + + + + b_toSpdMod] + + + + + + + + + + + + @@ -706,45 +725,26 @@ - + - + - - + + - - - - - - - - - - - - - - - [b_toTrqMod] - - - - - + - + - - 1 + + 2 - + @@ -775,7 +775,7 @@ - + @@ -861,7 +861,7 @@ - + @@ -869,31 +869,31 @@ - + - + - - + + - + - - + + - + - - [b_toOpen] + + [b_toActive] - + @@ -920,33 +920,33 @@ - + - + - + - - + + - + - - + + - + - - [b_toActive] + + [b_toOpen] - + @@ -956,5 +956,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11201_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11201_d.json index 2319614..84c740a 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11201_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11201_d.json @@ -97,6 +97,139 @@ "finder":[ ] }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11271", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11270", + "className":"Simulink.Saturate", + "icon":"WebViewIcon3", + "name":"Saturation", + "label":"Saturation", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", + "inspector":{ + "params":[ + "UpperLimit", + "LowerLimit", + "LinearizeAsGain", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1000", + "-1000", + "on", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Floor", + "-1", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 8 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Saturate", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11254", "className":"Simulink.SubSystem", @@ -195,11 +328,54 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11253", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11250", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If1", + "label":"If1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 == CTRL_FOC", + "", + "on", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11252", "className":"Simulink.Merge", "icon":"WebViewIcon3", - "name":"Merge1", - "label":"Merge1", + "name":"Merge", + "label":"Merge", "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", "inspector":{ "params":[ @@ -233,102 +409,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11270", - "className":"Simulink.Saturate", - "icon":"WebViewIcon3", - "name":"Saturation", - "label":"Saturation", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", - "inspector":{ - "params":[ - "UpperLimit", - "LowerLimit", - "LinearizeAsGain", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1000", - "-1000", - "on", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Floor", - "-1", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 8 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Saturate", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11251", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1", - "u1 == OPEN_MODE", - "", - "on", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11249", "className":"Simulink.Goto", @@ -363,11 +443,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11248", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11247", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", "inspector":{ "params":[ @@ -376,7 +456,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtScaRaw", + "z_ctrlMod", "local", "Tag" ], @@ -396,11 +476,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11243", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11246", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", "inspector":{ "params":[ @@ -408,72 +488,8 @@ "TagVisibility", "IconDisplay" ], - "values":[ - "r_inpTgtSca", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11241", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", - "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":"BLDCmotor_FOC_R2017b_fixdt:11245", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "VqFinPrev", "local", "Tag" ], @@ -493,42 +509,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11240", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11252", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11253", "className":"Simulink.Merge", "icon":"WebViewIcon3", - "name":"Merge", - "label":"Merge", + "name":"Merge1", + "label":"Merge1", "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", "inspector":{ "params":[ @@ -595,6 +580,227 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11243", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", + "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":"BLDCmotor_FOC_R2017b_fixdt:11240", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11239", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From19", + "label":"From19", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", + "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":"BLDCmotor_FOC_R2017b_fixdt:11245", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto12", + "label":"Goto12", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", + "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":"BLDCmotor_FOC_R2017b_fixdt:11236", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", + "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":"BLDCmotor_FOC_R2017b_fixdt:11237", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", + "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":"BLDCmotor_FOC_R2017b_fixdt:11235", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11215", "className":"Simulink.SubSystem", @@ -692,6 +898,49 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11251", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If2", + "label":"If2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 == OPEN_MODE", + "", + "on", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11242", "className":"Simulink.From", @@ -723,257 +972,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11271", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11238", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", - "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":"BLDCmotor_FOC_R2017b_fixdt:11250", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1", - "u1 == CTRL_FOC", - "", - "on", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11211", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Default_Mode", - "label":"Default_Mode", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", - "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":"BLDCmotor_FOC_R2017b_fixdt:11207", "className":"Simulink.SubSystem", @@ -1072,27 +1070,61 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11247", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11206", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"VqFinPrev", + "label":"VqFinPrev", "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "z_ctrlMod", - "local", - "Tag" + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 11 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1100,7 +1132,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Inport", "masktype":"" } }, @@ -1172,61 +1204,25 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11206", - "className":"Simulink.Inport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11241", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"VqFinPrev", - "label":"VqFinPrev", + "name":"From22", + "label":"From22", "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "GotoTag", + "IconDisplay" ], "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "r_inpTgt", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1234,7 +1230,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"From", "masktype":"" } }, @@ -1305,130 +1301,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11236", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", - "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":"BLDCmotor_FOC_R2017b_fixdt:11237", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", - "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":"BLDCmotor_FOC_R2017b_fixdt:11235", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlMod", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11239", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", - "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":"BLDCmotor_FOC_R2017b_fixdt:11203", "className":"Simulink.Inport", @@ -1496,6 +1368,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11248", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaRaw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11202", "className":"Simulink.Inport", @@ -1564,21 +1469,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11246", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11238", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", + "name":"From11", + "label":"From11", "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "r_inpTgt", - "local", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -1592,7 +1495,104 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11211", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Default_Mode", + "label":"Default_Mode", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11201", + "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":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11201_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11201_d.png index eef681e..523a360 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11201_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11201_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11201_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11201_d.svg index 4d28f5d..d3daa08 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11201_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11201_d.svg @@ -49,11 +49,139 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + - + @@ -67,27 +195,27 @@ - + - + VqFinPrev - + - + r_inpTgtScaOpen - + - + if { } @@ -117,11 +245,11 @@ - + - + Open_Mode @@ -138,11 +266,11 @@ - + - + action @@ -159,11 +287,11 @@ - + - + sfix16_En4 @@ -175,224 +303,80 @@ - + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - + + - - + + - + u1 - - + + - - if(u1 == OPEN_MODE) + + if(u1 == CTRL_FOC) - - + + - + else - - + + - + - - + + - + action - + - - + + - + action @@ -402,239 +386,11 @@ - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtScaRaw] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtScaRaw] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - + @@ -642,19 +398,19 @@ - + - + - + - + @@ -680,11 +436,174 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlMod] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -706,11 +625,11 @@ - + - + [z_ctrlModReq] @@ -727,11 +646,317 @@ + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaRaw] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlMod] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + - + @@ -745,35 +970,35 @@ - + - + r_inpTgt - + - + z_ctrlModReq - + - + r_inpTgtScaFOC - + - + if { } @@ -803,11 +1028,11 @@ - + - + FOC_Control_Type @@ -824,11 +1049,11 @@ - + - + action @@ -845,11 +1070,11 @@ - + - + sfix16_En4 @@ -861,13 +1086,92 @@ - + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 == OPEN_MODE) + + + + + + + + else + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + @@ -877,11 +1181,11 @@ - + - + [z_ctrlModReq] @@ -899,11 +1203,11 @@ - + - + uint8 @@ -915,184 +1219,9 @@ - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - r_inpTgtSca - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 == CTRL_FOC) - - - - - - - - else - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action - - - - - - - - - - - - - + + + @@ -1100,33 +1229,33 @@ - - + + - - + + - - r_inpTgtScaRaw + + r_inpTgt - - + + - + r_inpTgtScaDft - - + + - + else { } @@ -1139,8 +1268,8 @@ - - + + @@ -1152,16 +1281,16 @@ - - + + - - + + - - Default_Mode + + Default_Control_Type @@ -1173,15 +1302,15 @@ - + - - + + - + sfix16_En4 @@ -1194,15 +1323,15 @@ - + - - + + - + action @@ -1214,169 +1343,69 @@ - + - - + + - - - - - - - - + + - - + + - - r_inpTgt - - - - - - - - r_inpTgtScaDft - - - - - - - - else { } + + 5 - - - - - - - - + + - - - - - - - - + + - - + + - - Default_Control_Type + + VqFinPrev - - - - - - - + - - + + - + sfix16_En4 - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - @@ -1393,11 +1422,11 @@ - + - + 4 @@ -1415,11 +1444,11 @@ - + - + r_inpTgt @@ -1430,11 +1459,11 @@ - + - + sfix16_En4 @@ -1446,58 +1475,43 @@ - - - + + + - - + + - - + + - - 5 + + [r_inpTgt] - - - - - - - - - - - - - - - - - VqFinPrev + + - + - - + + - + sfix16_En4 @@ -1519,11 +1533,11 @@ - + - + 3 @@ -1541,11 +1555,11 @@ - + - + z_ctrlMod @@ -1556,203 +1570,11 @@ - + - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - + uint8 @@ -1774,11 +1596,11 @@ - + - + 2 @@ -1796,11 +1618,11 @@ - + - + z_ctrlModReq @@ -1811,11 +1633,11 @@ - + - + uint8 @@ -1825,6 +1647,39 @@ + + + + + + + + + + + + + + + + + + [r_inpTgtScaRaw] + + + + + + + + + + + + + + + @@ -1837,11 +1692,11 @@ - + - + 1 @@ -1859,11 +1714,11 @@ - + - + z_ctrlTypSel @@ -1874,11 +1729,11 @@ - + - + uint8 @@ -1890,29 +1745,168 @@ - - - + + + - - + + - - + + - - [r_inpTgt] + + [r_inpTgtSca] - - + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + r_inpTgtScaRaw + + + + + + + + r_inpTgtScaDft + + + + + + + + else { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Default_Mode + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1924,6 +1918,12 @@ + + + + + + @@ -2259,5 +2259,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11207_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11207_d.svg index df6afdb..df9d15b 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11207_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11207_d.svg @@ -186,5 +186,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11211_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11211_d.json index d17f60a..55cf7fd 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11211_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11211_d.json @@ -1,4 +1,35 @@ [ + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11213", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11211", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "reset", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11214", "className":"Simulink.Outport", @@ -79,37 +110,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11213", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11211", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "reset", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11212", "className":"Simulink.Inport", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11211_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11211_d.svg index 6354934..6b6de1e 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11211_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11211_d.svg @@ -10,60 +10,12 @@ - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - r_inpTgtScaDft - - - - - - - - + @@ -71,11 +23,11 @@ - + - + else { } @@ -93,11 +45,11 @@ - + - + Action Port @@ -107,6 +59,54 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtScaDft + + + + + + + + @@ -186,5 +186,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11215_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11215_d.json index 257140e..02dfbee 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11215_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11215_d.json @@ -80,11 +80,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11232", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11233", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"i_max", - "label":"i_max", + "name":"n_max", + "label":"n_max", "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", "inspector":{ "params":[ @@ -98,7 +98,7 @@ "FramePeriod" ], "values":[ - "i_max", + "n_max", "on", "inf", "[]", @@ -128,55 +128,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11230", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant", - "label":"constant", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "1000", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11229", "className":"Simulink.Constant", @@ -226,6 +177,117 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11227", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux", + "label":"Mux", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "4", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11230", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"constant", + "label":"constant", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "1000", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11222", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From22", + "label":"From22", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", + "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":"BLDCmotor_FOC_R2017b_fixdt:11231", "className":"Simulink.Constant", @@ -328,103 +390,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11226", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", - "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":"BLDCmotor_FOC_R2017b_fixdt:11224", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaFOC", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11222", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", - "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":"BLDCmotor_FOC_R2017b_fixdt:11221", "className":"Simulink.From", @@ -457,19 +422,21 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11223", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11226", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_ctrlModReq", + "r_inpTgt", + "local", "Tag" ], "tabs":[ @@ -483,87 +450,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11227", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux", - "label":"Mux", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "4", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11233", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"n_max", - "label":"n_max", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "n_max", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, @@ -624,6 +511,101 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11225", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlModReq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11218", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "reset", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11223", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From9", + "label":"From9", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", + "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":"BLDCmotor_FOC_R2017b_fixdt:11219", "className":"Simulink.Product", @@ -682,20 +664,22 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11218", - "className":"Simulink.ActionPort", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11224", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "reset", - "Only when execution is resumed" + "r_inpTgtScaFOC", + "local", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -708,7 +692,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"Goto", "masktype":"" } }, @@ -780,27 +764,43 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11225", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11232", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"i_max", + "label":"i_max", "parent":"BLDCmotor_FOC_R2017b_fixdt:11215", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "z_ctrlModReq", - "local", - "Tag" + "i_max", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -808,7 +808,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", "masktype":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11215_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11215_d.svg index 16d548e..c347109 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11215_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11215_d.svg @@ -61,11 +61,11 @@ - - + + - + @@ -75,92 +75,44 @@ - - i_max + + n_max - + - - + + - + - - i_max + + n_max - + - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1000 - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -182,11 +134,11 @@ - + - + Vd_max @@ -204,11 +156,11 @@ - + - + Vd_max @@ -219,11 +171,155 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1000 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -245,11 +341,11 @@ - + - + 0 @@ -267,11 +363,11 @@ - + - + sfix16_En4 @@ -285,7 +381,7 @@ - + @@ -293,35 +389,35 @@ - + - + U - + - + Idx1 - + - + 0 - + - + Y @@ -339,125 +435,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtScaFOC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -479,11 +461,11 @@ - + - + [r_inpTgtScaFOC] @@ -501,11 +483,11 @@ - + - + sfix16_En4 @@ -517,155 +499,29 @@ - - - + + + - - + + - - + + - - [z_ctrlModReq] + + [r_inpTgt] - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - n_max - - - - - - - - - - - - - - - - - - - - - - n_max - - - - - - - - - - - - - - - sfix16_En4 + + @@ -678,7 +534,7 @@ - + @@ -686,35 +542,35 @@ - + - + - + - + - + - + - + - + @@ -733,11 +589,11 @@ - + - + ufix16_En12 @@ -747,173 +603,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - z_ctrlModReq - - - - - - - - - - - - - - - uint8 - - - - - - - - @@ -926,11 +615,11 @@ - + - + [z_ctrlModReq] @@ -947,6 +636,317 @@ + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaFOC] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_ctrlModReq + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + i_max + + + + + + + + + + + + + + + + + + + + + + i_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -1208,5 +1208,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11254_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11254_d.json index b75a218..307cd55 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11254_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11254_d.json @@ -48,6 +48,86 @@ "finder":[ ] }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11268", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_inpTgtScaOpen", + "label":"r_inpTgtScaOpen", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11267", "className":"Rising edge init", @@ -145,72 +225,6 @@ "masktype":"Rising edge init" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11264", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", - "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":"BLDCmotor_FOC_R2017b_fixdt:11263", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaOpen", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11266", "className":"Simulink.Constant", @@ -260,301 +274,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11268", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_inpTgtScaOpen", - "label":"r_inpTgtScaOpen", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11259", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11258", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion", - "label":"Data Type Conversion", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "fixdt(1,28,16)", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11262", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain3", - "label":"Gain3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11260", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", - "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":"BLDCmotor_FOC_R2017b_fixdt:11256", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "reset", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11265", "className":"Simulink.SubSystem", @@ -648,6 +367,162 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11263", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaOpen", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11262", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain3", + "label":"Gain3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "-1", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11264", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", + "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":"BLDCmotor_FOC_R2017b_fixdt:11260", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", + "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":"BLDCmotor_FOC_R2017b_fixdt:11261", "className":"Simulink.From", @@ -679,6 +554,180 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11258", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion", + "label":"Data Type Conversion", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,28,16)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11257", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant23", + "label":"Constant23", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11259", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11256", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "reset", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11255", "className":"Simulink.Inport", @@ -746,55 +795,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11257", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Constant23", - "label":"Constant23", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11254", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11255#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11254_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11254_d.png index 4d6661c..a27f23b 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11254_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11254_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11254_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11254_d.svg index c52262f..ec93572 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11254_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11254_d.svg @@ -38,6 +38,54 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtScaOpen + + + + + + + + @@ -49,37 +97,13 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -87,6 +111,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -104,11 +152,11 @@ - + - + boolean @@ -116,29 +164,29 @@ - + - + - + - + - + - + @@ -150,72 +198,6 @@ - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtScaOpen] - - - - - - - - - - - - - - - @@ -228,11 +210,11 @@ - + - + dV_openRate @@ -250,11 +232,11 @@ - + - + dV_openRate @@ -265,11 +247,11 @@ - + - + sfix28_En16 @@ -281,44 +263,155 @@ - - - + + + - - + + - - + + - - 1 + + u + + + + + + + + initVal + + + + + + + + init + + + + + + + + inc + + + + + + + + dec + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + - - + + - - r_inpTgtScaOpen + + Rate_Limiter + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -329,59 +422,205 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + [r_inpTgtScaOpen] + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + -1 + + + + + + + - + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + - - + + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaOpen] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -403,19 +642,19 @@ - + - + - + - + @@ -441,11 +680,11 @@ - + - + sfix28_En16 @@ -455,420 +694,6 @@ - - - - - - - - - - - - - - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - sfix28_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - initVal - - - - - - - - init - - - - - - - - inc - - - - - - - - dec - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Rate_Limiter - - - - - - - - - - - - - - - sfix28_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtScaOpen] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - VqFinPrev - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -881,11 +706,11 @@ - + - + 0 @@ -903,11 +728,11 @@ - + - + sfix28_En16 @@ -917,6 +742,181 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + VqFinPrev + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -1079,5 +1079,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_2342_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_2342_d.svg index a9190ff..b9d7be7 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_2342_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_2342_d.svg @@ -15,7 +15,7 @@ - + @@ -444,7 +444,7 @@ - + @@ -853,5 +853,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_2395_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_2395_d.svg index 3546f04..6f34a7c 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_2395_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_2395_d.svg @@ -1009,18 +1009,18 @@ - - - - - - + + + + + + @@ -1103,10 +1103,10 @@ - + - + @@ -1176,5 +1176,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_d.json index f0d0530..bdaf09a 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_d.json @@ -107,104 +107,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11265:2346", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11265", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Zero", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11265:2395", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic", - "label":"Saturation Dynamic", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11265", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11265:2360", "className":"Simulink.Outport", @@ -352,6 +254,45 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11265:2395", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic", + "label":"Saturation Dynamic", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11265", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11265:2357", "className":"Simulink.Inport", @@ -419,6 +360,35 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11265:2342", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"Delay_Init1", + "label":"Delay_Init1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11265", + "inspector":{ + "params":[ + "initVal" + ], + "values":[ + "0" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11265:2355", "className":"Simulink.Inport", @@ -487,11 +457,70 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11265:2356", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11265:2346", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11265", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Zero", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11265:2359", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"init", - "label":"init", + "name":"u", + "label":"u", "parent":"BLDCmotor_FOC_R2017b_fixdt:11265", "inspector":{ "params":[ @@ -514,7 +543,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "1", "Port number", "[]", "[]", @@ -554,40 +583,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11265:2342", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Delay_Init1", - "label":"Delay_Init1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11265", - "inspector":{ - "params":[ - "initVal" - ], - "values":[ - "0" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11265:2359", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11265:2356", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"u", - "label":"u", + "name":"init", + "label":"init", "parent":"BLDCmotor_FOC_R2017b_fixdt:11265", "inspector":{ "params":[ @@ -610,7 +610,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "3", "Port number", "[]", "[]", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_d.svg index 3033206..1a40571 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11265_d.svg @@ -118,182 +118,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix28_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - sfix28_En16 - - - - - - - - @@ -306,11 +130,11 @@ - + - + 1 @@ -328,11 +152,11 @@ - + - + y @@ -354,11 +178,11 @@ - + - + 5 @@ -376,11 +200,11 @@ - + - + dec @@ -391,11 +215,123 @@ - + - + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + sfix28_En16 @@ -417,11 +353,11 @@ - + - + 4 @@ -439,11 +375,11 @@ - + - + inc @@ -454,11 +390,11 @@ - + - + sfix28_En16 @@ -468,6 +404,134 @@ + + + + + + + + + + + + + + + + + + u + + + + + + + + initVal + + + + + + + + init + + + + + + + + y + + + + + + + + 1 + + + + + + + + z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -480,11 +544,11 @@ - + - + 2 @@ -502,11 +566,11 @@ - + - + initVal @@ -517,11 +581,138 @@ - + - + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix28_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + sfix28_En16 @@ -543,11 +734,11 @@ - + - + 3 @@ -565,11 +756,11 @@ - + - + init @@ -580,11 +771,11 @@ - + - + boolean @@ -594,197 +785,6 @@ - - - - - - - - - - - - - - - - - - u - - - - - - - - initVal - - - - - - - - init - - - - - - - - y - - - - - - - - 1 - - - - - - - - z - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix28_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - - - - - - - - sfix28_En16 - - - - - - - - @@ -953,5 +953,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11267_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11267_d.svg index dddc6cb..71c3b39 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11267_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11267_d.svg @@ -232,5 +232,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11357_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11357_d.json index 8fab5f3..7c97210 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11357_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11357_d.json @@ -197,6 +197,104 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11410", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"n_polePairs", + "label":"n_polePairs", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11357", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "n_polePairs", + "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":"BLDCmotor_FOC_R2017b_fixdt:11409", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"a_elecPeriod", + "label":"a_elecPeriod", + "parent":"BLDCmotor_FOC_R2017b_fixdt:11357", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "a_elecPeriod", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11408", "className":"Simulink.SubSystem", @@ -386,37 +484,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11375", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11357", - "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":"BLDCmotor_FOC_R2017b_fixdt:11411", "className":"Simulink.From", @@ -496,43 +563,25 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11409", - "className":"Simulink.Constant", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11460", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"a_elecPeriod", - "label":"a_elecPeriod", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotor_FOC_R2017b_fixdt:11357", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "a_elecPeriod", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "held", + "Only when execution is resumed" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -540,7 +589,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"ActionPort", "masktype":"" } }, @@ -594,25 +643,74 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11460", - "className":"Simulink.ActionPort", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11398", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"a_elecAngle", + "label":"a_elecAngle", "parent":"BLDCmotor_FOC_R2017b_fixdt:11357", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", "held", - "Only when execution is resumed" + "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" @@ -620,7 +718,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"Outport", "masktype":"" } }, @@ -682,74 +780,25 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11398", - "className":"Simulink.Outport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11375", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"a_elecAngle", - "label":"a_elecAngle", + "name":"From5", + "label":"From5", "parent":"BLDCmotor_FOC_R2017b_fixdt:11357", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "GotoTag", + "IconDisplay" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "a_elecAngle", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -757,56 +806,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11410", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"n_polePairs", - "label":"n_polePairs", - "parent":"BLDCmotor_FOC_R2017b_fixdt:11357", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "n_polePairs", - "on", - "inf", - "[]", - "[]", - "uint8", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", + "blocktype":"From", "masktype":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11357_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11357_d.png index cc13c9c..695e9e9 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11357_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11357_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11357_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11357_d.svg index c3f3119..c0775d5 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11357_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11357_d.svg @@ -153,11 +153,137 @@ + + + + + + + + + + + + + + + + + + n_polePairs + + + + + + + + + + + + + + + + + + + + + + n_polePairs + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + a_elecPeriod + + + + + + + + + + + + + + + + + + + + + + a_elecPeriod + + + + + + + + + + + + + + + sfix32_En4 + + + + + + + + - + @@ -171,27 +297,27 @@ - + - + num - + - + div - + - + rem @@ -221,11 +347,11 @@ - + - + sfix32_En4 @@ -237,29 +363,29 @@ - + - + - + - + - + - + @@ -289,11 +415,11 @@ - + - + [a_elecAngle] @@ -322,27 +448,27 @@ - + - + - + - + - + - + @@ -360,11 +486,11 @@ - + - + sfix32_En4 @@ -374,54 +500,6 @@ - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - @@ -434,11 +512,11 @@ - + - + [a_mechAngle] @@ -456,11 +534,11 @@ - + - + sfix16_En4 @@ -482,19 +560,19 @@ - + - + - + - + @@ -520,11 +598,11 @@ - + - + sfix16_En6 @@ -536,59 +614,44 @@ - - - + + + - - + + - - + + - - a_elecPeriod + + else { } - - + + - - + + - - + + - - a_elecPeriod - - - - - - - - - - - - - - - sfix32_En4 + + Action Port @@ -609,11 +672,11 @@ - + - + 30 @@ -631,115 +694,11 @@ - + - - sfix32_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - else { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + sfix32_En4 @@ -761,11 +720,11 @@ - + - + 1 @@ -783,11 +742,11 @@ - + - + a_elecAngle @@ -799,59 +758,100 @@ - - - + + + - - + + - - + + - - n_polePairs + + + + + + + + + + - - - - - - - - - - - - - - - - - n_polePairs + + - - + + + + + + + + + + sfix32_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + - + - - uint8 + + sfix16_En6 @@ -1002,5 +1002,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11408_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11408_d.svg index c2a2b02..f9fd33b 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11408_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11408_d.svg @@ -44,7 +44,7 @@ - + @@ -117,7 +117,7 @@ - + @@ -519,5 +519,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_d.json index 3dc831a..c9f5aa2 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_d.json @@ -97,55 +97,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9307", - "className":"Simulink.Annotation", - "icon":"WebViewIcon2", - "name":"

The rotor position is implemented based on the following table:

", - "label":"

The rotor position is implemented based on the following table:

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

The rotor position is implemented based on the following table:

", - "off", - "rich", - "auto", - "auto", - -1, - "auto", - "black", - "white", - "left", - "off", - "" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":[ - ] - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10192", "className":"Simulink.Annotation", @@ -196,11 +147,60 @@ ] }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9305", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9307", + "className":"Simulink.Annotation", + "icon":"WebViewIcon2", + "name":"

The rotor position is implemented based on the following table:

", + "label":"

The rotor position is implemented based on the following table:

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

The rotor position is implemented based on the following table:

", + "off", + "rich", + "auto", + "auto", + -1, + "auto", + "black", + "white", + "left", + "off", + "" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9304", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"iq", - "label":"iq", + "name":"a_elecAngle", + "label":"a_elecAngle", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -229,7 +229,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "8", + "6", "Port number", "[]", "[]", @@ -242,9 +242,89 @@ "auto", "off", "off", - "0", + "[]", "off", - "reset", + "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":"BLDCmotor_FOC_R2017b_fixdt:9303", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"n_mot", + "label":"n_mot", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", "off", "0", "", @@ -435,55 +515,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9298", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"z_ctrlTypSel", - "label":"z_ctrlTypSel", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:10064", "className":"Simulink.Constant", @@ -583,133 +614,59 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10164", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Task_Scheduler", - "label":"Task_Scheduler", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9441", + "className":"Simulink.Terminator", + "icon":"WebViewIcon3", + "name":"Terminator", + "label":"Terminator", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" ], "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" ], "tabs":[ - "Main", - "-Other" ], "tabs_idx":[ - 0, - 6 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"Terminator", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10751", - "className":"Simulink.Saturate", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9298", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Saturation1", - "label":"Saturation1", + "name":"z_ctrlTypSel", + "label":"z_ctrlTypSel", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "UpperLimit", - "LowerLimit", - "LinearizeAsGain", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SampleTime", - "ZeroCross" + "FramePeriod" ], "values":[ - "1700", - "-1700", + "z_ctrlTypSel", "on", + "inf", "[]", "[]", - "fixdt(1,16,4)", + "uint8", "off", - "Floor", - "-1", - "on" + "inf" ], "tabs":[ "Main", @@ -719,7 +676,7 @@ "tabs_idx":[ 0, 3, - 8 + 7 ] }, "viewer":{ @@ -728,105 +685,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Saturate", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10749", - "className":"Simulink.Saturate", - "icon":"WebViewIcon3", - "name":"Saturation", - "label":"Saturation", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "UpperLimit", - "LowerLimit", - "LinearizeAsGain", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1700", - "-1700", - "on", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Floor", - "-1", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 8 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Saturate", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10156", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator1", - "label":"Relational Operator1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "~=", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Constant", "masktype":"" } }, @@ -839,82 +698,12 @@ "parent":"BLDCmotor_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":{ @@ -928,73 +717,36 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9306", - "className":"Simulink.Outport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10258", + "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"id", - "label":"id", + "name":"If4", + "label":"If4", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "ZeroCross" ], "values":[ - "9", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", + "1", + "u1 ~= 0", "", - [ - ], - "Dialog", - "Auto", - "off" + "off", + "-1", + "on" ], "tabs":[ - "Main", - "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 4 ] }, "viewer":{ @@ -1003,16 +755,59 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"If", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9304", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9291", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If2", + "label":"If2", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9301", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"a_elecAngle", - "label":"a_elecAngle", + "name":"DC_phaC", + "label":"DC_phaC", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1041,7 +836,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "7", + "3", "Port number", "[]", "[]", @@ -1088,104 +883,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9292", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Implemented_control_methods", - "label":"Implemented_control_methods", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "ShowPortLabels", - "BlockChoice", - "TemplateBlock", - "MemberBlocks", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "MinAlgLoopOccurrences", - "PropExecContextOutsideSubsystem", - "SystemSampleTime", - "RTWSystemCode", - "RTWFcnNameOpts", - "RTWFcnName", - "RTWFileNameOpts", - "RTWFileName", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "RTWMemSecFuncInitTerm", - "RTWMemSecFuncExecute", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "IsSubsystemVirtual", - "Variant", - "VariantControl", - "OverrideUsingVariant", - "GeneratePreprocessorConditionals", - "AllowZeroVariantControls", - "PropagateVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "TreatAsGroupedWhenPropagatingVariantConditions" - ], - "values":[ - "FromPortIcon", - "", - "", - "", - "ReadWrite", - "", - "All", - "off", - "off", - "off", - "-1", - "Auto", - "Auto", - "", - "Auto", - "", - "void_void", - "off", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "on", - "off", - "", - "", - "off", - "off", - "off", - "", - "", - "on" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10158", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9284", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Goto9", + "label":"Goto9", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1194,7 +896,7 @@ "IconDisplay" ], "values":[ - "r_fieldWeak", + "b_hallC", "local", "Tag" ], @@ -1214,11 +916,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9288", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9282", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1227,7 +929,7 @@ "IconDisplay" ], "values":[ - "n_mot", + "z_errCode", "local", "Tag" ], @@ -1247,11 +949,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9287", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9934", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto26", - "label":"Goto26", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1260,7 +962,7 @@ "IconDisplay" ], "values":[ - "DC_phaA", + "z_dir", "local", "Tag" ], @@ -1280,11 +982,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9286", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9281", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto25", - "label":"Goto25", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1293,40 +995,7 @@ "IconDisplay" ], "values":[ - "DC_phaC", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11488", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto22", - "label":"Goto22", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_cruiseCtrlEna", + "b_hallB", "local", "Tag" ], @@ -1444,72 +1113,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10188", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "task1", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10187", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto18", - "label":"Goto18", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "task2", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9278", "className":"Simulink.Goto", @@ -1544,11 +1147,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9277", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9276", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto16", - "label":"Goto16", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1557,7 +1160,7 @@ "IconDisplay" ], "values":[ - "z_ctrlModReq", + "i_phaBC", "local", "Tag" ], @@ -1577,74 +1180,27 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9303", - "className":"Simulink.Outport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9275", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", + "name":"Goto14", + "label":"Goto14", "parent":"BLDCmotor_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" + "a_elecAngle", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1652,7 +1208,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Goto", "masktype":"" } }, @@ -1690,11 +1246,42 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9271", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9252", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From8", + "label":"From8", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9280", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1703,7 +1290,7 @@ "IconDisplay" ], "values":[ - "iq", + "z_posRaw", "local", "Tag" ], @@ -1722,6 +1309,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9251", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9241", "className":"Simulink.From", @@ -1785,19 +1403,21 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9262", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9286", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From45", - "label":"From45", + "name":"Goto25", + "label":"Goto25", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "id", + "DC_phaC", + "local", "Tag" ], "tabs":[ @@ -1811,16 +1431,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11489", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11518", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From42", - "label":"From42", + "name":"From43", + "label":"From43", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1878,54 +1498,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10258", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If4", - "label":"If4", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:10259", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10355", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From36", - "label":"From36", + "name":"From37", + "label":"From37", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1951,6 +1528,168 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9297", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"b_diagEna", + "label":"b_diagEna", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "b_diagEna", + "on", + "inf", + "[]", + "[]", + "boolean", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11488", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto22", + "label":"Goto22", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_cruiseCtrlEna", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9300", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"DC_phaB", + "label":"DC_phaB", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9268", "className":"Simulink.From", @@ -1983,11 +1722,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9285", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9289", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto24", - "label":"Goto24", + "name":"Goto28", + "label":"Goto28", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -1996,7 +1735,7 @@ "IconDisplay" ], "values":[ - "DC_phaB", + "b_motEna", "local", "Tag" ], @@ -2047,19 +1786,21 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9265", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9287", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From32", - "label":"From32", + "name":"Goto26", + "label":"Goto26", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "DC_phaB", + "DC_phaA", + "local", "Tag" ], "tabs":[ @@ -2073,16 +1814,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9264", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10259", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From31", - "label":"From31", + "name":"From36", + "label":"From36", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2090,7 +1831,7 @@ "IconDisplay" ], "values":[ - "DC_phaA", + "task2", "Tag" ], "tabs":[ @@ -2139,6 +1880,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9277", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto16", + "label":"Goto16", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlModReq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9930", "className":"Simulink.From", @@ -2202,21 +1976,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9284", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9258", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"From28", + "label":"From28", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "b_hallC", - "local", + "z_errCode", "Tag" ], "tabs":[ @@ -2230,7 +2002,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -2297,11 +2069,44 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10160", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10187", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto18", + "label":"Goto18", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "task2", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11306", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From24", - "label":"From24", + "name":"From23", + "label":"From23", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2309,7 +2114,7 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "VqFinPrev", "Tag" ], "tabs":[ @@ -2328,11 +2133,157 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10159", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9253", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"From22", + "label":"From22", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9264", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From31", + "label":"From31", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:11489", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From42", + "label":"From42", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_cruiseCtrlEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10749", + "className":"Simulink.Saturate", + "icon":"WebViewIcon3", + "name":"Saturation", + "label":"Saturation", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "UpperLimit", + "LowerLimit", + "LinearizeAsGain", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1700", + "-1700", + "on", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Floor", + "-1", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 8 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Saturate", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11304", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From20", + "label":"From20", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2359,11 +2310,91 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11305", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9305", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"iq", + "label":"iq", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9935", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", + "name":"From19", + "label":"From19", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2371,7 +2402,38 @@ "IconDisplay" ], "values":[ - "r_inpTgt", + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9245", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_phaBC", "Tag" ], "tabs":[ @@ -2423,144 +2485,20 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11304", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9279", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "z_ctrlTypSel", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9266", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From33", - "label":"From33", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "DC_phaC", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9935", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "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":"BLDCmotor_FOC_R2017b_fixdt:9249", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From17", - "label":"From17", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_fieldWeak", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9280", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_posRaw", "local", "Tag" ], @@ -2580,101 +2518,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9289", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9720", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto28", - "label":"Goto28", + "name":"From11", + "label":"From11", "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9297", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"b_diagEna", - "label":"b_diagEna", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "b_diagEna", - "on", - "inf", - "[]", - "[]", - "boolean", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9244", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_phaAB", "Tag" ], "tabs":[ @@ -2692,101 +2548,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11303", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9252", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9275", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10191", "className":"Simulink.From", @@ -2819,11 +2580,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9448", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10159", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", + "name":"From9", + "label":"From9", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -2831,7 +2592,7 @@ "IconDisplay" ], "values":[ - "VqFinPrev", + "z_ctrlTypSel", "Tag" ], "tabs":[ @@ -2849,194 +2610,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9437", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_motStdStill", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9418", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_motStdStill", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9276", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto15", - "label":"Goto15", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "i_phaBC", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9441", - "className":"Simulink.Terminator", - "icon":"WebViewIcon3", - "name":"Terminator", - "label":"Terminator", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - ], - "values":[ - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Terminator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11351", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "a_mechAngle", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9269", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgt", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9198", "className":"Simulink.SubSystem", @@ -3135,63 +2708,131 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9301", - "className":"Simulink.Outport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11305", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"DC_phaC", - "label":"DC_phaC", + "name":"From21", + "label":"From21", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "Port", - "IconDisplay", + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9437", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto11", + "label":"Goto11", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_motStdStill", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11485", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From41", + "label":"From41", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:10751", + "className":"Simulink.Saturate", + "icon":"WebViewIcon3", + "name":"Saturation1", + "label":"Saturation1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "UpperLimit", + "LowerLimit", + "LinearizeAsGain", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "RndMeth", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "ZeroCross" ], "values":[ - "3", - "Port number", + "1700", + "-1700", + "on", "[]", "[]", - "Inherit: auto", + "fixdt(1,16,4)", "off", - "inherit", + "Floor", "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "on" ], "tabs":[ "Main", @@ -3200,8 +2841,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 8 ] }, "viewer":{ @@ -3210,59 +2851,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"Saturate", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9290", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1", - "u1 == CTRL_FOC", - "", - "off", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11518", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9266", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From43", - "label":"From43", + "name":"From33", + "label":"From33", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3270,7 +2868,102 @@ "IconDisplay" ], "values":[ - "b_cruiseCtrlEna", + "DC_phaC", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9931", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From14", + "label":"From14", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9270", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:11302", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motEna", "Tag" ], "tabs":[ @@ -3386,11 +3079,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9931", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9262", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", + "name":"From45", + "label":"From45", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3398,7 +3091,372 @@ "IconDisplay" ], "values":[ - "r_fieldWeak", + "id", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11303", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From16", + "label":"From16", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9283", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto23", + "label":"Goto23", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9269", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgt", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10155", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9244", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From12", + "label":"From12", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9240", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9271", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto10", + "label":"Goto10", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9250", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9306", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"id", + "label":"id", + "parent":"BLDCmotor_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":[ + "8", + "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":"BLDCmotor_FOC_R2017b_fixdt:10356", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From38", + "label":"From38", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "task3", "Tag" ], "tabs":[ @@ -3514,11 +3572,42 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9291", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9418", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motStdStill", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9290", "className":"Simulink.If", "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", + "name":"If1", + "label":"If1", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3531,7 +3620,7 @@ ], "values":[ "1", - "u1 ~= 0", + "u1 == CTRL_FOC", "", "off", "-1", @@ -3557,11 +3646,201 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11306", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9292", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Implemented_control_methods", + "label":"Implemented_control_methods", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "ShowPortLabels", + "BlockChoice", + "TemplateBlock", + "MemberBlocks", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "MinAlgLoopOccurrences", + "PropExecContextOutsideSubsystem", + "SystemSampleTime", + "RTWSystemCode", + "RTWFcnNameOpts", + "RTWFcnName", + "RTWFileNameOpts", + "RTWFileName", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "RTWMemSecFuncInitTerm", + "RTWMemSecFuncExecute", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "IsSubsystemVirtual", + "Variant", + "VariantControl", + "OverrideUsingVariant", + "GeneratePreprocessorConditionals", + "AllowZeroVariantControls", + "PropagateVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "TreatAsGroupedWhenPropagatingVariantConditions" + ], + "values":[ + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", + "off", + "off", + "off", + "-1", + "Auto", + "Auto", + "", + "Auto", + "", + "void_void", + "off", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "on", + "off", + "", + "", + "off", + "off", + "off", + "", + "", + "on" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8220", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F01_Estimations", + "label":"F01_Estimations", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9249", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", + "name":"From17", + "label":"From17", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3569,7 +3848,7 @@ "IconDisplay" ], "values":[ - "VqFinPrev", + "r_fieldWeak", "Tag" ], "tabs":[ @@ -3588,11 +3867,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11302", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9265", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From32", + "label":"From32", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3600,102 +3879,7 @@ "IconDisplay" ], "values":[ - "b_motEna", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9282", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_errCode", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9240", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:10155", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlTypSel", + "DC_phaB", "Tag" ], "tabs":[ @@ -3811,11 +3995,136 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9720", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10065", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion2", + "label":"Data Type Conversion2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10158", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10156", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator1", + "label":"Relational Operator1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "~=", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11351", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"From18", + "label":"From18", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3823,7 +4132,7 @@ "IconDisplay" ], "values":[ - "b_motEna", + "a_mechAngle", "Tag" ], "tabs":[ @@ -3842,11 +4151,111 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11485", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9288", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto27", + "label":"Goto27", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_mot", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8209", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"i_DCLink", + "label":"i_DCLink", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9448", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From41", - "label":"From41", + "name":"From15", + "label":"From15", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -3872,134 +4281,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9251", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8220", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F01_Estimations", - "label":"F01_Estimations", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8469", "className":"Simulink.SubSystem", @@ -4097,529 +4378,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10161", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From25", - "label":"From25", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:10065", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion2", - "label":"Data Type Conversion2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9270", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8210", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:10154", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM2", - "label":"CTRL_COMM2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "CTRL_COM", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10139", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If3", - "label":"If3", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:11556", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"n_motHiRes", - "label":"n_motHiRes", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8208", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"i_phaBC", - "label":"i_phaBC", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:10355", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From37", - "label":"From37", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "task2", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10692", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From39", - "label":"From39", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9245", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9283", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto23", - "label":"Goto23", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8207", "className":"Simulink.Inport", @@ -4688,11 +4446,89 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8209", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10160", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From24", + "label":"From24", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8210", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8206", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"i_DCLink", - "label":"i_DCLink", + "name":"b_hallC", + "label":"b_hallC", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -4715,7 +4551,7 @@ "OutputFunctionCall" ], "values":[ - "9", + "6", "Port number", "[]", "[]", @@ -4755,95 +4591,99 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9253", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10164", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Task_Scheduler", + "label":"Task_Scheduler", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" ], "values":[ - "a_elecAngle", - "Tag" + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" ], "tabs":[ - "Parameter Attributes" + "Main", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 6 + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10356", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From38", - "label":"From38", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "task3", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9250", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_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", + "blocktype":"SubSystem", "masktype":"" } }, @@ -4982,11 +4822,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9281", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10188", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Goto19", + "label":"Goto19", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -4995,7 +4835,7 @@ "IconDisplay" ], "values":[ - "b_hallB", + "task1", "local", "Tag" ], @@ -5014,6 +4854,84 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11700", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion3", + "label":"Data Type Conversion3", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:10161", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From25", + "label":"From25", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8204", "className":"Simulink.Inport", @@ -5082,11 +5000,127 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9934", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8203", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgt", + "label":"r_inpTgt", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10154", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM2", + "label":"CTRL_COMM2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "CTRL_COM", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9285", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"Goto24", + "label":"Goto24", "parent":"BLDCmotor_FOC_R2017b_fixdt:29", "inspector":{ "params":[ @@ -5095,7 +5129,7 @@ "IconDisplay" ], "values":[ - "z_dir", + "DC_phaB", "local", "Tag" ], @@ -5114,6 +5148,49 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10139", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If3", + "label":"If3", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8202", "className":"Simulink.Inport", @@ -5181,6 +5258,104 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8208", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"i_phaBC", + "label":"i_phaBC", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:10692", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From39", + "label":"From39", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8201", "className":"Simulink.Inport", @@ -5248,284 +5423,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9279", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8206", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_hallC", - "label":"b_hallC", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9300", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"DC_phaB", - "label":"DC_phaB", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9258", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From28", - "label":"From28", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_errCode", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8203", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_inpTgt", - "label":"r_inpTgt", - "parent":"BLDCmotor_FOC_R2017b_fixdt:29", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10157", "className":"Simulink.Logic", @@ -10511,5 +10408,56 @@ ], "finder":[ ] + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11700#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon5", + "name":"", + "label":"", + "parent":"BLDCmotor_FOC_R2017b_fixdt:29", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] } ] \ No newline at end of file diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_d.png index c389a14..dc54aef 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_d.svg index d5f1b0c..2ebbbf4 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_d.svg @@ -437,55 +437,36 @@
- - - - - - - - - - - - - The rotor position is implemented based on the following table: - - - - - - + + + + + + + Task1 + : Diagnostics + Control_Manager + + + + + + + + Task2 + : Field Weakening + Limitations + - - Task1 - : Diagnostics + Control_Manager - - - - - - - - Task2 - : Field Weakening + Limitations - - - - - - - + Task3 : PI Controllers in FOC @@ -494,13 +475,32 @@ + + + + + + + + + + + + + The rotor position is implemented based on the following table: + + + + + + - - + + - + @@ -510,30 +510,78 @@ - - 8 + + 6 - + - - + + - + - - iq + + a_elecAngle + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + n_mot @@ -554,11 +602,11 @@ - + - + 4 @@ -576,11 +624,11 @@ - + - + z_errCode @@ -602,11 +650,11 @@ - + - + 1 @@ -624,11 +672,11 @@ - + - + DC_phaA @@ -638,69 +686,6 @@ - - - - - - - - - - - - - - - - - - z_ctrlTypSel - - - - - - - - - - - - - - - - - - - - - - z_ctrlTypSel - - - - - - - - - - - - - - - uint8 - - - - - - - - @@ -713,11 +698,11 @@ - + - + b_fieldWeakEna @@ -735,11 +720,11 @@ - + - + b_fieldWeakEna @@ -750,11 +735,11 @@ - + - + boolean @@ -776,11 +761,11 @@ - + - + b_cruiseCtrlEna @@ -798,11 +783,11 @@ - + - + b_cruiseCtrlEna @@ -813,11 +798,11 @@ - + - + boolean @@ -827,2863 +812,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - task1 - - - - - - - - task2 - - - - - - - - task3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Task_Scheduler - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - MODEL INFO - - - - - - - - Version: 1.1284 - - - - - - - - Author: Emanuel Feru - - - - - - - - Last modified by: eferu - - - - - - - - Last update: 11-okt-2020 19:11:59 - - - - - - - - Copyright © 2019-2021 Emanuel FERU - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 9 - - - - - - - - - - - - - - - - - - - - - - id - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - a_elecAngle - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Implemented_control_methods - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [DC_phaA] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [DC_phaC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_cruiseCtrlEna] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [a_mechAngle] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [task3] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [task1] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [task2] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlModReq] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - n_mot - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_cruiseCtrlEna] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motEna] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - [task2] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [DC_phaB] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - [DC_phaB] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [DC_phaA] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_pos] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hallC] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hallC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hallB] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [task1] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaAB] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [DC_phaC] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_posRaw] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motEna] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - b_diagEna - - - - - - - - - - - - - - - - - - - - - - b_diagEna - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaAB] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlModReq] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_hallA] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [task1] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaBC] - - - - - - - - - - - - - - - @@ -3693,19 +821,19 @@ - + - + - + - + @@ -3735,323 +863,59 @@ - - - + + + - - + + - - + + - - [a_mechAngle] + + z_ctrlTypSel - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgt] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - b_enaAdvCtrl - - - - - - - - z_ctrlTypSel - - - - - - - - z_pos - - - - - - - - V_phaABC_FOC - - - - - - - - Vq - - - - - - - - r_inpTgtSca - - - - - - - - a_elecAngle - - - - - - - - z_dir - - - - - - - - r_fieldWeak - - - - - - - - DC_phaA - - - - - - - - DC_phaB - - - - - - - - DC_phaC - - - - - - - - VqFinPrev - - - - - - - - - - - - - + + - - - - - - - - + + - - + + - - F06_Control_Type_Management + + z_ctrlTypSel - - - - - - - + - - + + - - int16 - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 + + uint8 @@ -4062,50 +926,98 @@ - - - - - - - - - - - - + + + - - + + - - 3 + + MODEL INFO + + + + + + + + Version: 1.1284 + + + + + + + + Author: Emanuel Feru + + + + + + + + Last modified by: eferu + + + + + + + + Last update: 11-okt-2020 19:11:59 + + + + + + + + Copyright © 2019-2021 Emanuel FERU - - + + - - - - + - - + + - - DC_phaC + + + + + + + + + + + + + + + + + + + + + + @@ -4116,608 +1028,51 @@ - - - + + + - - + + - - + + - + u1 - - + + - - if(u1 == CTRL_FOC) + + if(u1 ~= 0) - - + + - + - - + + - - action - - - - - - - - - - - - - - - - - - - - - - - - - - [b_cruiseCtrlEna] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - b_enaAdvCtrl - - - - - - - - z_ctrlMod - - - - - - - - r_inpTgtSca - - - - - - - - task2 - - - - - - - - task3 - - - - - - - - b_motEna - - - - - - - - n_mot - - - - - - - - n_motAbs - - - - - - - - r_fieldWeak - - - - - - - - a_elecAngle - - - - - - - - i_phaAB - - - - - - - - i_phaBC - - - - - - - - VqFinPrev - - - - - - - - b_cruiseCtrlEna - - - - - - - - V_phaABC_FOC - - - - - - - - Vq - - - - - - - - iq - - - - - - - - id - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F05_Field_Oriented_Control - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - z_ctrlTypSel - - - - - - - - r_inpTgt - - - - - - - - n_motAbs - - - - - - - - r_fieldWeak - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F04_Field_Weakening - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - + action @@ -4730,12 +1085,6 @@ - - - - - - @@ -4745,19 +1094,19 @@ - + - + u1 - + - + if(u1 ~= 0) @@ -4775,11 +1124,11 @@ - + - + action @@ -4791,44 +1140,44 @@ - - - + + + - - + + - - + + - - [VqFinPrev] + + 3 - - + + - - - + + + - - + + - - sfix16_En4 + + DC_phaC @@ -4839,44 +1188,29 @@ - - - + + + - - + + - - + + - - [b_motEna] + + [b_hallC] - - - - - - - - - - - - - - - - - boolean + + @@ -4897,11 +1231,11 @@ - + - + [z_errCode] @@ -4920,44 +1254,29 @@ - - - + + + - - + + - - + + - - [z_posRaw] + + [z_dir] - - - - - - - - - - - - - - - - - uint8 + + @@ -4968,44 +1287,29 @@ - - - + + + - - + + - - + + - - [z_ctrlTypSel] + + [b_hallB] - - - - - - - - - - - - - - - - - uint8 + + @@ -5016,197 +1320,29 @@ - - - + + + - - - - - - - - + + - - + + - - b_errFlag - - - - - - - - b_motEna - - - - - - - - b_cruiseCtrlEna - - - - - - - - z_ctrlTypSel - - - - - - - - z_ctrlModReq - - - - - - - - r_inpTgt - - - - - - - - VqFinPrev - - - - - - - - z_ctrlMod - - - - - - - - r_inpTgtSca - - - - - - - - if { } + + [a_mechAngle] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F03_Control_Mode_Manager - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -5217,50 +1353,29 @@ - - - - - - - - - + + + - - + + - - + + - - [b_motEna] + + [task3] - - - - - - - - - - - - - - - - - boolean + + @@ -5271,44 +1386,242 @@ - - - + + + - - + + - - + + - + + [id] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaBC] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hallA] + + + + + + - - + + - - + + - - sfix16_En4 + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_posRaw] + + + + + + + @@ -5329,11 +1642,11 @@ - + - + [z_ctrlTypSel] @@ -5351,11 +1664,11 @@ - + - + uint8 @@ -5365,117 +1678,3511 @@ + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [DC_phaC] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cruiseCtrlEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [task2] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + b_diagEna + + + + + + + + + + + + + + + + + + + + + + b_diagEna + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cruiseCtrlEna] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + DC_phaB + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [DC_phaA] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [task2] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_pos] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hallC] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_errCode] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hallB] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [task1] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [task2] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [DC_phaA] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cruiseCtrlEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + iq + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaBC] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaAB] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [task1] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_enaAdvCtrl + + + + + + + + z_ctrlTypSel + + + + + + + + z_pos + + + + + + + + V_phaABC_FOC + + + + + + + + Vq + + + + + + + + r_inpTgtSca + + + + + + + + a_elecAngle + + + + + + + + z_dir + + + + + + + + r_fieldWeak + + + + + + + + DC_phaA + + + + + + + + DC_phaB + + + + + + + + DC_phaC + + + + + + + + VqFinPrev + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F06_Control_Type_Management + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [DC_phaC] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_hallA] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_enaAdvCtrl + + + + + + + + z_ctrlMod + + + + + + + + r_inpTgtSca + + + + + + + + task2 + + + + + + + + task3 + + + + + + + + b_motEna + + + + + + + + n_mot + + + + + + + + n_motAbs + + + + + + + + r_fieldWeak + + + + + + + + a_elecAngle + + + + + + + + i_phaAB + + + + + + + + i_phaBC + + + + + + + + VqFinPrev + + + + + + + + b_cruiseCtrlEna + + + + + + + + V_phaABC_FOC + + + + + + + + Vq + + + + + + + + iq + + + + + + + + id + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F05_Field_Oriented_Control + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlModReq] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_pos] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_phaAB] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_posRaw] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + + + + + + + + + + + + + + + + + + + + + + id + + + + + + + + + + + + + + + + + + + + + + + + + + [task3] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + z_ctrlTypSel + + + + + + + + r_inpTgt + + + + + + + + n_motAbs + + + + + + + + r_fieldWeak + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F04_Field_Weakening + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 == CTRL_FOC) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Implemented_control_methods + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + b_hallA - + - + b_hallB - + - + b_hallC - + - + a_mechAngle - + - + z_posRaw - + - + z_pos - + - + z_dir - + - + n_mot - + - + n_motAbs - + - + a_elecAngle - + - + b_motStdStill - + - + b_enaAdvCtrl @@ -5483,7 +5190,7 @@ - + @@ -5496,7 +5203,7 @@ - + @@ -5505,16 +5212,466 @@ - + - + F01_Estimations + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [DC_phaB] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_errFlag + + + + + + + + b_motEna + + + + + + + + b_cruiseCtrlEna + + + + + + + + z_ctrlTypSel + + + + + + + + z_ctrlModReq + + + + + + + + r_inpTgt + + + + + + + + VqFinPrev + + + + + + + + z_ctrlMod + + + + + + + + r_inpTgtSca + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F03_Control_Mode_Manager + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + uint8 + + + + @@ -5522,404 +5679,20 @@ - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - b_motEna - - - - - - - - z_posRaw - - - - - - - - b_motStdStill - - - - - - - - VqFinPrev - - - - - - - - z_errCode - - - - - - - - b_errFlag - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F02_Diagnostics - - - - - - - - - - - - + - - + + - + action - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - @@ -5927,6 +5700,12 @@ + + + + + + @@ -5936,19 +5715,19 @@ - + - + - + - + @@ -5974,11 +5753,11 @@ - + - + sfix16_En4 @@ -5990,28 +5769,28 @@ - - + + - + - + - - [b_hallA] + + [r_fieldWeak] - + @@ -6021,6 +5800,556 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [a_mechAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 9 + + + + + + + + + + + + + + + + + + + + + + i_DCLink + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_motEna + + + + + + + + z_posRaw + + + + + + + + b_motStdStill + + + + + + + + VqFinPrev + + + + + + + + z_errCode + + + + + + + + b_errFlag + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F02_Diagnostics + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + i_phaAB + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -6033,19 +6362,19 @@ - + - + - + - + @@ -6071,11 +6400,11 @@ - + - + int16 @@ -6087,388 +6416,59 @@ - - - - - - - - - - - - - - - - CTRL_COM - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - + + - + - + - + 6 - + - - + + - - - - - - - n_motHiRes - - - - - - - - - - - - - - - - - - - - - - - - - - 8 - - - - - - - - - - - - - - - - - - - - - - i_phaBC - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [task2] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_phaBC] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - + - - [z_pos] + + b_hallC - - - + + + + + + + + + + + uint8 @@ -6479,266 +6479,141 @@ - - - + + + - - + + + + + + + + - - - - - - - 7 - - - - - - - - - - - - - - - - + - - i_phaAB - - - - - - - + + task1 - + - - int16 + + task2 - - - - - - - - - - - - - - - - - - - - + + - - 9 + + task3 - - + + + + + + + + - - + + + + + + + + - - + + - - i_DCLink + + Task_Scheduler - - - - - - + + + + - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - [task3] - - - - - - - - - - - - - + - - + + - + boolean - - - - - - - - - - - - - - - + - - + + + + + + + + + + + - - [z_ctrlTypSel] - - - - - - - + + boolean - - + + + + + + + + - - + + - - uint8 + + boolean @@ -6750,6 +6625,12 @@ + + + + + + @@ -6759,11 +6640,11 @@ - + - + 5 @@ -6781,11 +6662,11 @@ - + - + b_hallB @@ -6796,11 +6677,11 @@ - + - + uint8 @@ -6822,11 +6703,11 @@ - + - + 10 @@ -6844,11 +6725,11 @@ - + - + a_mechAngle @@ -6859,11 +6740,11 @@ - + - + sfix16_En4 @@ -6875,28 +6756,28 @@ - - + + - + - + - - [b_hallB] + + [task1] - + @@ -6906,6 +6787,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -6918,11 +6911,11 @@ - + - + 4 @@ -6940,11 +6933,11 @@ - + - + b_hallA @@ -6955,362 +6948,11 @@ - + - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - z_ctrlModReq - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - b_motEna - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - b_hallC - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - DC_phaB - - - - - - - - - - - - - - - - - - - - - - - - - - [z_errCode] - - - - - - - - - - - - - - - - - - - - - + uint8 @@ -7332,11 +6974,11 @@ - + - + 3 @@ -7354,11 +6996,11 @@ - + - + r_inpTgt @@ -7369,11 +7011,11 @@ - + - + int16 @@ -7383,11 +7025,385 @@ + + + + + + + + + + + + + + + + + + CTRL_COM + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [DC_phaB] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_ctrlModReq + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + + + + + + + + + + + + + + + + + + + + + + i_phaBC + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + b_motEna + + + + + + + + + + + + + + + boolean + + + + + + + + - + @@ -7395,19 +7411,19 @@ - + - + - + - + @@ -7433,11 +7449,11 @@ - + - + boolean @@ -7451,7 +7467,7 @@ - + @@ -7459,19 +7475,19 @@ - + - + - + - + @@ -7497,11 +7513,11 @@ - + - + boolean @@ -7708,37 +7724,17 @@ - - - - - - - - + - - - - - - - - - - - - - @@ -8818,6 +8814,20 @@ + + + + + + + + + + + + + + @@ -8831,7 +8841,7 @@ - + @@ -8845,20 +8855,6 @@ - - - - - - - - - - - - - - @@ -8915,7 +8911,21 @@ + + + + + + + + + + + + + + - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_icons.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_icons.png index c1ac49e..ec317b5 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_icons.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_29_icons.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8220_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8220_d.json index 3cefe27..2b57d88 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8220_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8220_d.json @@ -1351,462 +1351,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8468", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"b_enaAdvCtrl", - "label":"b_enaAdvCtrl", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:11402", - "className":"Simulink.Merge", - "icon":"WebViewIcon3", - "name":"Merge", - "label":"Merge", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "Inputs", - "InitialOutput", - "AllowUnequalInputPortWidths", - "InputPortOffsets" - ], - "values":[ - "2", - "[]", - "off", - "[]" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Merge", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11355", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If1", - "label":"If1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1", - "u1 == 0", - "", - "on", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8460", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_posRaw", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11353", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "a_mechAngle", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11413", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"b_angleMeasEna", - "label":"b_angleMeasEna", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "b_angleMeasEna", - "on", - "inf", - "[]", - "[]", - "boolean", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8451", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8450", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8449", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8463", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"z_posRaw", - "label":"z_posRaw", - "parent":"BLDCmotor_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":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9433", "className":"Simulink.Outport", @@ -1887,846 +1431,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8457", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8436", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8435", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8434", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8427", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8458", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:11414", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "a_mechAngle", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8384", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"F01_05_Electrical_Angle_Estimation", - "label":"F01_05_Electrical_Angle_Estimation", - "parent":"BLDCmotor_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", - "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":"BLDCmotor_FOC_R2017b_fixdt:9432", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9932", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From26", - "label":"From26", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8462", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9933", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"z_dir", - "label":"z_dir", - "parent":"BLDCmotor_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":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8431", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From17", - "label":"From17", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", - "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":"BLDCmotor_FOC_R2017b_fixdt:8429", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9431", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From25", - "label":"From25", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8461", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8430", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", - "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:11352", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"a_mechAngle", - "label":"a_mechAngle", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8437", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8466", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"n_motAbs", - "label":"n_motAbs", - "parent":"BLDCmotor_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":[ - "5", - "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":"BLDCmotor_FOC_R2017b_fixdt:8467", "className":"Simulink.Outport", @@ -2807,6 +1511,911 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8466", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"n_motAbs", + "label":"n_motAbs", + "parent":"BLDCmotor_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":[ + "5", + "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":"BLDCmotor_FOC_R2017b_fixdt:9933", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"z_dir", + "label":"z_dir", + "parent":"BLDCmotor_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":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8463", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"z_posRaw", + "label":"z_posRaw", + "parent":"BLDCmotor_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":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11413", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"b_angleMeasEna", + "label":"b_angleMeasEna", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "b_angleMeasEna", + "on", + "inf", + "[]", + "[]", + "boolean", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11402", + "className":"Simulink.Merge", + "icon":"WebViewIcon3", + "name":"Merge", + "label":"Merge", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "Inputs", + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets" + ], + "values":[ + "2", + "[]", + "off", + "[]" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Merge", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8462", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If2", + "label":"If2", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:11355", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If1", + "label":"If1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 == 0", + "", + "on", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8460", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto8", + "label":"Goto8", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_posRaw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8458", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:11353", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "a_mechAngle", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8468", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"b_enaAdvCtrl", + "label":"b_enaAdvCtrl", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9432", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto17", + "label":"Goto17", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8446", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From9", + "label":"From9", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9932", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From26", + "label":"From26", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:9431", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From25", + "label":"From25", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8437", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From23", + "label":"From23", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8436", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From22", + "label":"From22", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8435", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From21", + "label":"From21", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8434", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From20", + "label":"From20", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8429", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From14", + "label":"From14", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8432", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From18", + "label":"From18", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11357", "className":"Simulink.SubSystem", @@ -2905,11 +2514,141 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8446", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8457", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8384", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"F01_05_Electrical_Angle_Estimation", + "label":"F01_05_Electrical_Angle_Estimation", + "parent":"BLDCmotor_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", + "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":"BLDCmotor_FOC_R2017b_fixdt:11414", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"From", + "label":"From", "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2917,7 +2656,7 @@ "IconDisplay" ], "values":[ - "z_posRaw", + "a_mechAngle", "Tag" ], "tabs":[ @@ -2936,11 +2675,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8432", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8427", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", + "name":"From12", + "label":"From12", "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", "inspector":{ "params":[ @@ -2948,7 +2687,7 @@ "IconDisplay" ], "values":[ - "b_enaAdvCtrl", + "a_elecAngle", "Tag" ], "tabs":[ @@ -2966,6 +2705,267 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8449", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto10", + "label":"Goto10", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8430", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From15", + "label":"From15", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8451", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto12", + "label":"Goto12", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8450", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto11", + "label":"Goto11", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8461", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto9", + "label":"Goto9", + "parent":"BLDCmotor_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":"BLDCmotor_FOC_R2017b_fixdt:8431", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From17", + "label":"From17", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", + "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":"BLDCmotor_FOC_R2017b_fixdt:11352", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"a_mechAngle", + "label":"a_mechAngle", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8220", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8462#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8220_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8220_d.png index 78a01d8..93b9a19 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8220_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8220_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8220_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8220_d.svg index 8825608..980c8e7 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8220_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8220_d.svg @@ -252,7 +252,7 @@ - + @@ -771,7 +771,7 @@ - + @@ -860,16 +860,16 @@ - - + + - + - - int8 + + action @@ -881,16 +881,16 @@ - - + + - + - - action + + int8 @@ -902,15 +902,15 @@ - + - + - + int8 @@ -1110,7 +1110,7 @@ - + @@ -1239,16 +1239,16 @@ - - + + - + - - boolean + + sfix16_En4 @@ -1260,15 +1260,15 @@ - + - + - + sfix16_En4 @@ -1281,16 +1281,16 @@ - - + + - + - - sfix16_En4 + + int16 @@ -1302,15 +1302,15 @@ - + - + - + int16 @@ -1323,16 +1323,16 @@ - - + + - + - - int16 + + boolean @@ -1372,7 +1372,7 @@ - + @@ -1469,16 +1469,16 @@ - - + + - + - - uint8 + + int8 @@ -1490,16 +1490,16 @@ - - + + - + - - int8 + + uint8 @@ -1789,11 +1789,11 @@ - - + + - + @@ -1803,30 +1803,285 @@ - - 8 + + 7 - + - - + + - + - - b_enaAdvCtrl + + b_motStdStill + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + a_elecAngle + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + n_motAbs + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + z_dir + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + z_posRaw + + + + + + + + + + + + + + + + + + + + + + + + + + b_angleMeasEna + + + + + + + + + + + + + + + + + + + + + + b_angleMeasEna + + + + + + + + + + + + + + + boolean @@ -1839,7 +2094,7 @@ - + @@ -1847,19 +2102,19 @@ - + - + - + - + @@ -1885,11 +2140,11 @@ - + - + sfix16_En6 @@ -1899,11 +2154,67 @@ + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + - + @@ -1911,27 +2222,27 @@ - + - + u1 - + - + if(u1 == 0) - + - + else @@ -1945,30 +2256,30 @@ - + - - + + - + action - + - - + + - + action @@ -1990,11 +2301,11 @@ - + - + [z_posRaw] @@ -2011,6 +2322,39 @@ + + + + + + + + + + + + + + + + + + [z_counterRaw] + + + + + + + + + + + + + + + @@ -2023,11 +2367,11 @@ - + - + [a_mechAngle] @@ -2046,58 +2390,220 @@ - - - + + + - - + + - - + + - - b_angleMeasEna + + 8 - - + + - - + + - - + + - - b_angleMeasEna + + b_enaAdvCtrl + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_posRaw] + + + + + + + - + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + - - + + - + boolean @@ -2107,6 +2613,796 @@ + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counterRaw] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + a_mechAngle + + + + + + + + a_elecAngle + + + + + + + + else { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F01_06_Electrical_Angle_Measurement + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + z_pos + + + + + + + + z_dir + + + + + + + + z_counter + + + + + + + + z_counterRaw + + + + + + + + b_enaAdvCtrl + + + + + + + + a_elecAngle + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + F01_05_Electrical_Angle_Estimation + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [a_mechAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dirPrev] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + @@ -2119,11 +3415,11 @@ - + - + [n_motAbs] @@ -2152,11 +3448,11 @@ - + - + [b_enaAdvCtrl] @@ -2173,932 +3469,6 @@ - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - z_posRaw - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - b_motStdStill - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counterRaw] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counterRaw] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [a_mechAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - z_pos - - - - - - - - z_dir - - - - - - - - z_counter - - - - - - - - z_counterRaw - - - - - - - - b_enaAdvCtrl - - - - - - - - a_elecAngle - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F01_05_Electrical_Angle_Estimation - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - z_dir - - - - - - - - - - - - - - - - - - - - - - - - - - [z_pos] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - @@ -3111,11 +3481,11 @@ - + - + [z_dirPrev] @@ -3134,43 +3504,43 @@ - - + + - + - + - - [z_dirPrev] + + [z_pos] - + - + - - + + - + int8 @@ -3192,11 +3562,11 @@ - + - + 4 @@ -3214,11 +3584,11 @@ - + - + a_mechAngle @@ -3229,11 +3599,11 @@ - + - + sfix16_En4 @@ -3243,376 +3613,6 @@ - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - n_motAbs - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - a_elecAngle - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - a_mechAngle - - - - - - - - a_elecAngle - - - - - - - - else { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - F01_06_Electrical_Angle_Measurement - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_posRaw] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - @@ -4273,5 +4273,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8225_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8225_d.json index 9282d12..5e45f4e 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8225_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8225_d.json @@ -280,56 +280,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8233", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay3", - "label":"UnitDelay3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8225", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8232", "className":"Simulink.UnitDelay", @@ -430,6 +380,56 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8233", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay3", + "label":"UnitDelay3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8225", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9634", "className":"Simulink.Logic", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8225_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8225_d.svg index 10346f6..6af3781 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8225_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8225_d.svg @@ -248,101 +248,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - Ini=0 - - - - - - - - @@ -355,35 +260,35 @@ - + - + - + - + - + - + - + - + @@ -409,11 +314,11 @@ - + - + Ini=0 @@ -424,11 +329,11 @@ - + - + uint8 @@ -450,35 +355,35 @@ - + - + - + - + - + - + - + - + @@ -499,31 +404,126 @@ + + + + + + + + + + + uint8 + + + + - + - + + Ini=0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=0 - + - + - + uint8 @@ -537,7 +537,7 @@ - + @@ -757,5 +757,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8235_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8235_d.svg index 5b02873..1746b20 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8235_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8235_d.svg @@ -768,5 +768,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8247_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8247_d.json index b384dfc..29605f2 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8247_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8247_d.json @@ -723,6 +723,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8249", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8247", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8259", "className":"Simulink.UnitDelay", @@ -773,37 +804,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8249", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8247", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8259#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8247_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8247_d.svg index 04c6e66..e5b468f 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8247_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8247_d.svg @@ -887,36 +887,84 @@ - - - - - - - - - - - Ini=0 - - - - - + - + int8 + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + @@ -933,35 +981,35 @@ - + - + - + - + - + - + - + - + @@ -987,11 +1035,11 @@ - + - + int8 @@ -1001,54 +1049,6 @@ - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - @@ -1279,5 +1279,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8263_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8263_d.json index 681f645..54c69d7 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8263_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8263_d.json @@ -894,171 +894,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8378", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"z_counterRaw", - "label":"z_counterRaw", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8377", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"z_counter", - "label":"z_counter", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8373", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8374", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"z_maxCntRst", - "label":"z_maxCntRst", + "name":"z_maxCntRst2", + "label":"z_maxCntRst2", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1103,247 +943,42 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9429", - "className":"Simulink.Constant", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8371", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"n_stdStillDet", - "label":"n_stdStillDet", + "name":"UnitDelay4", + "label":"UnitDelay4", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "n_stdStillDet", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8372", - "className":"Simulink.Relay", - "icon":"WebViewIcon3", - "name":"n_commDeacv", - "label":"n_commDeacv", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "OnSwitchValue", - "OffSwitchValue", - "OnOutputValue", - "OffOutputValue", + "InitialCondition", "InputProcessing", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", "SampleTime", - "ZeroCross" + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "n_commDeacvHi", - "n_commAcvLo", - "1", "0", - "Elements as channels (sample based)", - "[]", - "[]", - "boolean", - "off", + "Inherited", "-1", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 5, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Relay", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11461", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"b_angleMeasEna", - "label":"b_angleMeasEna", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "b_angleMeasEna", - "on", - "inf", - "[]", - "[]", - "boolean", + "", + "", "off", - "inf" + [ + ], + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8369", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8366", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - ">", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, 4 ] }, @@ -1353,30 +988,49 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"UnitDelay", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8312", - "className":"Simulink.Mux", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8370", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"Mux2", - "label":"Mux2", + "name":"UnitDelay3", + "label":"UnitDelay3", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "Inputs", - "DisplayOption" + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "2", - "bar" + "z_maxCntRst", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" ], "tabs":[ - "Parameter Attributes" + "Main", + "State Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 4 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1384,38 +1038,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8311", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux1", - "label":"Mux1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "2", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", + "blocktype":"UnitDelay", "masktype":"" } }, @@ -1561,6 +1184,68 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8312", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux2", + "label":"Mux2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "2", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8313", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux3", + "label":"Mux3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "2", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8308", "className":"Simulink.If", @@ -1604,6 +1289,96 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8369", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8303", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motAbsPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8300", "className":"Simulink.Goto", @@ -1637,6 +1412,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8298", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto11", + "label":"Goto11", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motRaw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8297", "className":"Simulink.Goto", @@ -1671,104 +1479,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8294", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "dz_trnsDet", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8289", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From31", - "label":"From31", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_edge", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8291", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counterRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8305", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8301", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -1777,7 +1492,7 @@ "IconDisplay" ], "values":[ - "dz_trnsDet", + "z_dirPrev", "local", "Tag" ], @@ -1796,292 +1511,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8285", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From28", - "label":"From28", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dirPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8371", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay4", - "label":"UnitDelay4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9477", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8292", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8283", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motAbsPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8370", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay3", - "label":"UnitDelay3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "z_maxCntRst", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8284", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From24", - "label":"From24", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8280", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From17", - "label":"From17", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counterRawPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8293", "className":"Simulink.From", @@ -2114,21 +1543,64 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9427", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8366", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Relational Operator2", + "label":"Relational Operator2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + ">", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8292", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "b_motStdStill", - "local", + "n_motAbs", "Tag" ], "tabs":[ @@ -2142,7 +1614,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -2227,11 +1699,93 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8278", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8373", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"z_maxCntRst", + "label":"z_maxCntRst", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "z_maxCntRst", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8305", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "dz_trnsDet", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8289", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", + "name":"From31", + "label":"From31", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2258,11 +1812,60 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8277", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9429", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"n_stdStillDet", + "label":"n_stdStillDet", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "n_stdStillDet", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8286", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", + "name":"From29", + "label":"From29", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2270,7 +1873,7 @@ "IconDisplay" ], "values":[ - "z_counterRaw", + "n_motAbs", "Tag" ], "tabs":[ @@ -2289,42 +1892,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8276", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8284", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counter", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8281", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", + "name":"From24", + "label":"From24", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2351,11 +1923,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8275", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9477", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From21", + "label":"From21", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2363,7 +1935,7 @@ "IconDisplay" ], "values":[ - "z_counter", + "n_motRaw", "Tag" ], "tabs":[ @@ -2382,52 +1954,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8303", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8283", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"From2", + "label":"From2", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "n_motAbsPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8286", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From29", - "label":"From29", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motAbs", "Tag" ], "tabs":[ @@ -2477,21 +2016,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8298", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8294", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", + "name":"From8", + "label":"From8", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_motRaw", - "local", + "dz_trnsDet", "Tag" ], "tabs":[ @@ -2505,16 +2042,96 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8374", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8378", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"z_counterRaw", + "label":"z_counterRaw", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11461", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"z_maxCntRst2", - "label":"z_maxCntRst2", + "name":"b_angleMeasEna", + "label":"b_angleMeasEna", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2528,12 +2145,12 @@ "FramePeriod" ], "values":[ - "z_maxCntRst", + "b_angleMeasEna", "on", "inf", "[]", "[]", - "Inherit: Inherit via back propagation", + "boolean", "off", "inf" ], @@ -2559,21 +2176,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8306", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9425", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"From9", + "label":"From9", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_mot", - "local", + "n_motAbs", "Tag" ], "tabs":[ @@ -2587,36 +2202,273 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8272", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Counter", - "label":"Counter", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8377", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"z_counter", + "label":"z_counter", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "z_cntInit" + "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_maxCntRst" + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ + "Main", + "Signal Attributes", + "-Other" ], "tabs_idx":[ + 0, + 2, + 11 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8285", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From28", + "label":"From28", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dirPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8311", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux1", + "label":"Mux1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "2", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8281", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From18", + "label":"From18", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8280", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From17", + "label":"From17", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counterRawPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8277", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From14", + "label":"From14", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counterRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9426", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "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":"" } }, @@ -2654,11 +2506,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9425", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8275", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"From10", + "label":"From10", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2666,7 +2518,120 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "z_counter", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9427", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_motStdStill", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8270", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant4", + "label":"Constant4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8278", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From15", + "label":"From15", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_edge", "Tag" ], "tabs":[ @@ -2732,19 +2697,21 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9426", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8306", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_motStdStill", + "n_mot", + "local", "Tag" ], "tabs":[ @@ -2758,7 +2725,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -2830,21 +2797,48 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8301", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8272", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"Counter", + "label":"Counter", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", + "inspector":{ + "params":[ + "z_cntInit" + ], + "values":[ + "z_maxCntRst" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8276", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"From12", + "label":"From12", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_dirPrev", - "local", + "z_counter", "Tag" ], "tabs":[ @@ -2858,37 +2852,43 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8270", - "className":"Simulink.Constant", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8372", + "className":"Simulink.Relay", "icon":"WebViewIcon3", - "name":"Constant4", - "label":"Constant4", + "name":"n_commDeacv", + "label":"n_commDeacv", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "OnSwitchValue", + "OffSwitchValue", + "OnOutputValue", + "OffOutputValue", + "InputProcessing", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "SampleTime", + "ZeroCross" ], "values":[ + "n_commDeacvHi", + "n_commAcvLo", + "1", "0", - "on", - "inf", + "Elements as channels (sample based)", "[]", "[]", - "Inherit: Inherit via back propagation", + "boolean", "off", - "inf" + "-1", + "on" ], "tabs":[ "Main", @@ -2897,8 +2897,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 5, + 9 ] }, "viewer":{ @@ -2907,25 +2907,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Relay", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8313", - "className":"Simulink.Mux", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8291", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Mux3", - "label":"Mux3", + "name":"From5", + "label":"From5", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ - "Inputs", - "DisplayOption" + "GotoTag", + "IconDisplay" ], "values":[ - "2", - "bar" + "z_counterRaw", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -2938,16 +2938,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Mux", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11462", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8309", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator3", - "label":"Logical Operator3", + "name":"Logical Operator1", + "label":"Logical Operator1", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -2959,7 +2959,7 @@ "SampleTime" ], "values":[ - "OR", + "NOT", "2", "rectangular", "off", @@ -2988,11 +2988,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8309", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11462", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator1", - "label":"Logical Operator1", + "name":"Logical Operator3", + "label":"Logical Operator3", "parent":"BLDCmotor_FOC_R2017b_fixdt:8263", "inspector":{ "params":[ @@ -3004,7 +3004,7 @@ "SampleTime" ], "values":[ - "NOT", + "OR", "2", "rectangular", "off", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8263_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8263_d.png index b307313..f800492 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8263_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8263_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8263_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8263_d.svg index 975699d..50b1f41 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8263_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8263_d.svg @@ -115,7 +115,7 @@ - + @@ -804,139 +804,43 @@ - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - z_counterRaw - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - z_counter - - - - - - - - - - - - + + - + - + - + z_maxCntRst - + - + - - + + - + int16 @@ -948,125 +852,46 @@ - - - + + + - - + + - + - - + + - - n_stdStillDet + + - - - - - - - - - - - - - + + + + + + + - + - - n_stdStillDet - - - - - - - + + - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -1080,327 +905,88 @@ - - + + - - - + + + - - + + - - n_commDeacv + + Ini=0 - - + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - boolean + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - b_angleMeasEna - - - - - - - - - - - - - - - - - - - - - - b_angleMeasEna - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -1414,123 +1000,42 @@ - - + + - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - + int16 + + + + + + + + + + + Ini=z_maxCntRst + + + + @@ -1539,7 +1044,7 @@ - + @@ -1547,19 +1052,19 @@ - + - + - + - + @@ -1585,11 +1090,11 @@ - + - + boolean @@ -1603,7 +1108,7 @@ - + @@ -1617,67 +1122,67 @@ - + - + z_dir - + - + z_dirPrev - + - + z_counterRawPrev - + - + n_motAbsPrev - + - + z_counter - + - + dz_trnsDet - + - + n_motRaw - + - + if { } @@ -1707,11 +1212,11 @@ - + - + Raw_Motor_Speed_Estimation @@ -1724,16 +1229,16 @@ - - + + - - + + - - action + + boolean @@ -1745,16 +1250,16 @@ - - + + - - + + - - boolean + + action @@ -1770,11 +1275,11 @@ - + - + sfix16_En4 @@ -1791,11 +1296,11 @@ - + - + int16 @@ -1807,13 +1312,109 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + @@ -1823,19 +1424,19 @@ - + - + u1 - + - + if(u1 ~= 0) @@ -1853,11 +1454,11 @@ - + - + action @@ -1867,6 +1468,231 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbsPrev] + + + + + + + + + + + + + + + @@ -1879,11 +1705,11 @@ - + - + [b_enaAdvCtrl] @@ -1900,6 +1726,39 @@ + + + + + + + + + + + + + + + + + + [n_motRaw] + + + + + + + + + + + + + + + @@ -1912,11 +1771,11 @@ - + - + [z_counter] @@ -1935,139 +1794,284 @@ - - + + + + + + + + + + + + + + + + [z_dirPrev] + + + + + + + + + + + + + + + + + + + - + + + + + + + + [n_motRaw] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + - + - - [dz_trnsDet] + + - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_edge] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + - - [z_counterRaw] + + [n_motAbs] - + - + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + n_motAbs + + + + + + + + + + + + + + + + + + + + + + + + + + z_maxCntRst + + + + + + + + + + + + + - - + + - + int16 @@ -2089,11 +2093,11 @@ - + - + [dz_trnsDet] @@ -2112,44 +2116,44 @@ - - + + - + - + - - [z_dirPrev] + + [b_edge] - + - - + + - - + + - - int8 + + boolean @@ -2160,90 +2164,58 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + n_stdStillDet + - - + + - - - + + + - - + + - - Ini=0 + + n_stdStillDet - + - - + + - + sfix16_En4 @@ -2253,6 +2225,102 @@ + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -2265,11 +2333,11 @@ - + - + [n_motRaw] @@ -2287,59 +2355,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -2361,11 +2381,11 @@ - + - + [n_motAbsPrev] @@ -2383,652 +2403,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=z_maxCntRst - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counterRawPrev] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motRaw] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - n_motAbs - - - - - - - - - - - - - - - - - - - - - - - - - - [b_edge] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counterRaw] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbsPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -3050,11 +2429,11 @@ - + - + [z_dir] @@ -3072,11 +2451,11 @@ - + - + int8 @@ -3088,77 +2467,44 @@ - - - + + + - - + + - - + + - - [n_motRaw] + + [dz_trnsDet] - - - - - - - - - - - - - - - - - - - - - - - - - - - - z_maxCntRst - - - - - - - + + - - + + - - + + - - int16 + + boolean @@ -3169,283 +2515,44 @@ - - - + + + - - + + - - + + - - [n_mot] + + 4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - inc - - - - - - - - max - - - - - - - - rst - - - - - - - - cnt - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - Counter - - - - - - - - - - - - - - - Ini=z_maxCntRst - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + z_counterRaw @@ -3456,29 +2563,59 @@ - - - + + + - - + + - - + + - - [n_motAbs] + + b_angleMeasEna - - + + + + + + + + + + + + + + + + + b_angleMeasEna + + + + + + + + + + + + + + + boolean @@ -3499,11 +2636,11 @@ - + - + [n_motAbs] @@ -3521,11 +2658,11 @@ - + - + sfix16_En4 @@ -3535,6 +2672,552 @@ + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + z_counter + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dirPrev] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counterRawPrev] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counterRaw] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motStdStill] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_edge] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -3547,35 +3230,35 @@ - + - + - + - + - + - + - + - + @@ -3601,11 +3284,11 @@ - + - + sfix16_En4 @@ -3617,44 +3300,29 @@ - - - + + + - - + + - - + + - - [b_motStdStill] + + [n_mot] - - - - - - - - - - - - - - - - - boolean + + @@ -3675,11 +3343,11 @@ - + - + 3 @@ -3697,11 +3365,11 @@ - + - + z_dirPrev @@ -3712,11 +3380,11 @@ - + - + int8 @@ -3728,77 +3396,250 @@ - - - + + + - - + + - - + + - - [z_dirPrev] + + inc + + + + + + + + max + + + + + + + + rst + + + + + + + + cnt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - - - + + + + + + + + + + + Counter + + + + + - - + + - - 0 - - - - - - - + + Ini=z_maxCntRst - - + + - - + + - - sfix16_En4 + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3809,44 +3650,203 @@ - - - + + + - - + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + n_commDeacv + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + - + - - + + [z_counterRaw] - - + + - - + + - + - - boolean + + int16 @@ -3855,70 +3855,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - @@ -3931,19 +3867,19 @@ - + - + - + - + @@ -3958,11 +3894,11 @@ - + - + boolean @@ -3983,11 +3919,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + - + @@ -4809,5 +4809,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8272_2515_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8272_2515_d.svg index 7fcb98e..174d938 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8272_2515_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8272_2515_d.svg @@ -15,7 +15,7 @@ - + @@ -486,36 +486,36 @@ - - - - - - - - - - - Ini=initVal - - - - - + - + int16 + + + + + + + + + + + Ini=initVal + + + + @@ -592,5 +592,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8272_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8272_d.json index 259e1b3..58b4686 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8272_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8272_d.json @@ -1,30 +1,81 @@ [ { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8272:2515", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"rst_Delay", - "label":"rst_Delay", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8272:2418", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"cnt", + "label":"cnt", "parent":"BLDCmotor_FOC_R2017b_fixdt:8272", "inspector":{ "params":[ - "initVal" + "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_cntInit" + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ + "Main", + "Signal Attributes", + "-Other" ], "tabs_idx":[ + 0, + 2, + 11 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"Outport", "masktype":"" } }, @@ -207,6 +258,35 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8272:2515", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"rst_Delay", + "label":"rst_Delay", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8272", + "inspector":{ + "params":[ + "initVal" + ], + "values":[ + "z_cntInit" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8272:2413", "className":"Simulink.Inport", @@ -274,86 +354,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8272:2418", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"cnt", - "label":"cnt", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8272", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8272:2412", "className":"Simulink.Inport", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8272_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8272_d.svg index ce1f9c1..bb3f0d9 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8272_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8272_d.svg @@ -13,131 +13,44 @@ - - - + + + - - + + - + - - u - - - - - - - - rst - - - - - - - - y - - - - - - - - 1 - - - - - - - - z - - - - - - - - + + 1 - - + + - - - + + + - - + + - - int16 - - - - - - - - - - - - - - - Ini=z_cntInit - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + cnt @@ -158,35 +71,35 @@ - + - + - + - + - + - + - + - + @@ -204,11 +117,11 @@ - + - + int16 @@ -222,7 +135,7 @@ - + @@ -230,19 +143,19 @@ - + - + - + - + @@ -268,11 +181,11 @@ - + - + int16 @@ -294,11 +207,11 @@ - + - + 3 @@ -316,11 +229,11 @@ - + - + rst @@ -331,11 +244,11 @@ - + - + boolean @@ -345,6 +258,141 @@ + + + + + + + + + + + + + + + + + + u + + + + + + + + rst + + + + + + + + y + + + + + + + + 1 + + + + + + + + z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=z_cntInit + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -357,11 +405,11 @@ - + - + 2 @@ -379,11 +427,11 @@ - + - + max @@ -394,11 +442,11 @@ - + - + int16 @@ -408,54 +456,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - cnt - - - - - - - - @@ -625,5 +625,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8314_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8314_d.json index c9fee35..654fb4f 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8314_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8314_d.json @@ -244,807 +244,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8357", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"g_Ha", - "label":"g_Ha", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "4", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8355", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_speedCoef", - "label":"cf_speedCoef", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "cf_speedCoef", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,0)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8351", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay2", - "label":"UnitDelay2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8353", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay4", - "label":"UnitDelay4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8347", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "on", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Floor", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8346", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum7", - "label":"Sum7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "+-", - "on", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8348", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "on", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Floor", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8344", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator4", - "label":"Relational Operator4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "~=", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8341", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "dz_trnsDet", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8340", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_counterRawPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8331", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "cf_speedCoef", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8330", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dir", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8329", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dirPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8328", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counter", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8332", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dir", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8342", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "cf_speedCoef", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8345", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum13", - "label":"Sum13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "++++", - "on", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8335", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counter", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8325", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "cf_speedCoef", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8360", "className":"Simulink.Outport", @@ -1126,104 +325,63 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8327", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8358", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", + "name":"z_counter", + "label":"z_counter", "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counter", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8336", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_dir", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8323", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide13", - "label":"Divide13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "*/", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "off", "1", - "All dimensions", - "-1" + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "z_maxCntRst", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", @@ -1233,6 +391,120 @@ "tabs_idx":[ 0, 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8357", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"g_Ha", + "label":"g_Ha", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "4", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Same as input", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8356", + "className":"Simulink.Relay", + "icon":"WebViewIcon3", + "name":"dz_cntTrnsDet", + "label":"dz_cntTrnsDet", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "OnSwitchValue", + "OffSwitchValue", + "OnOutputValue", + "OffOutputValue", + "InputProcessing", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "SampleTime", + "ZeroCross" + ], + "values":[ + "dz_cntTrnsDetHi", + "dz_cntTrnsDetLo", + "1", + "0", + "Elements as channels (sample based)", + "[]", + "[]", + "boolean", + "off", + "-1", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 5, 9 ] }, @@ -1242,16 +514,115 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Relay", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8352", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8355", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_speedCoef", + "label":"cf_speedCoef", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_speedCoef", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,0)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8354", "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"UnitDelay3", - "label":"UnitDelay3", + "name":"UnitDelay5", + "label":"UnitDelay5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8351", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay2", + "label":"UnitDelay2", "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -1404,11 +775,453 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8333", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8348", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "on", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Floor", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8346", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum7", + "label":"Sum7", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "+-", + "on", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8345", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum13", + "label":"Sum13", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++++", + "on", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8344", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator4", + "label":"Relational Operator4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "~=", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8342", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "cf_speedCoef", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8341", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "dz_trnsDet", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8339", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motAbsPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8347", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "on", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Floor", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8340", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_counterRawPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8336", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_dir", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8335", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From9", + "label":"From9", "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ @@ -1416,7 +1229,7 @@ "IconDisplay" ], "values":[ - "n_motAbsPrev", + "z_counter", "Tag" ], "tabs":[ @@ -1434,6 +1247,312 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8352", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay3", + "label":"UnitDelay3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8331", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "cf_speedCoef", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8330", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8327", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From12", + "label":"From12", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counter", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8326", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counterRawPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8353", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay4", + "label":"UnitDelay4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8337", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_counter", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8321", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant4", + "label":"Constant4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8322", "className":"Simulink.Product", @@ -1492,172 +1611,20 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8354", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8325", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"UnitDelay5", - "label":"UnitDelay5", + "name":"From", + "label":"From", "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "GotoTag", + "IconDisplay" ], "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8320", - "className":"Simulink.Abs", - "icon":"WebViewIcon3", - "name":"Abs2", - "label":"Abs2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime", - "ZeroCross" - ], - "values":[ - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "-1", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Abs", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8356", - "className":"Simulink.Relay", - "icon":"WebViewIcon3", - "name":"dz_cntTrnsDet", - "label":"dz_cntTrnsDet", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "OnSwitchValue", - "OffSwitchValue", - "OnOutputValue", - "OffOutputValue", - "InputProcessing", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "SampleTime", - "ZeroCross" - ], - "values":[ - "dz_cntTrnsDetHi", - "dz_cntTrnsDetLo", - "1", - "0", - "Elements as channels (sample based)", - "[]", - "[]", - "boolean", - "off", - "-1", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 5, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Relay", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8319", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" + "cf_speedCoef", + "Tag" ], "tabs":[ "Parameter Attributes" @@ -1670,7 +1637,128 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8324", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide14", + "label":"Divide14", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "*/", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8332", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8338", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_dirPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", "masktype":"" } }, @@ -1742,332 +1830,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8326", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8333", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From7", + "label":"From7", "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ "GotoTag", "IconDisplay" ], - "values":[ - "z_counterRawPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8317", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_counterRawPrev", - "label":"z_counterRawPrev", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8321", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Constant4", - "label":"Constant4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8334", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "dz_trnsDet", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8337", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_counter", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8316", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_dirPrev", - "label":"z_dirPrev", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8338", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_dirPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8339", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], "values":[ "n_motAbsPrev", - "local", "Tag" ], "tabs":[ @@ -2081,7 +1856,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -2165,6 +1940,337 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8317", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_counterRawPrev", + "label":"z_counterRawPrev", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8319", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8316", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_dirPrev", + "label":"z_dirPrev", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8334", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From8", + "label":"From8", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "dz_trnsDet", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8328", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counter", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8320", + "className":"Simulink.Abs", + "icon":"WebViewIcon3", + "name":"Abs2", + "label":"Abs2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime", + "ZeroCross" + ], + "values":[ + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "-1", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Abs", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8323", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide13", + "label":"Divide13", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "*/", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8315", "className":"Simulink.Inport", @@ -2233,74 +2339,25 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8358", - "className":"Simulink.Outport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8329", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"z_counter", - "label":"z_counter", + "name":"From21", + "label":"From21", "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "GotoTag", + "IconDisplay" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "z_maxCntRst", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "z_dirPrev", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2308,64 +2365,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8324", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide14", - "label":"Divide14", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8314", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "*/", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", + "blocktype":"From", "masktype":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8314_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8314_d.png index a8f24cf..d9c67cd 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8314_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8314_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8314_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8314_d.svg index 81e3121..df18a25 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8314_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8314_d.svg @@ -218,1390 +218,6 @@ - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - cf_speedCoef - - - - - - - - - - - - - - - - - - - - - - cf_speedCoef - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - threshold=0 - Criteria : u2 ~= 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - threshold=0 - Criteria : u2 ~= 0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [dz_trnsDet] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counterRawPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [cf_speedCoef] - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dirPrev] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [cf_speedCoef] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [cf_speedCoef] - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - @@ -1614,11 +230,11 @@ - + - + 3 @@ -1636,11 +252,11 @@ - + - + n_motRaw @@ -1652,44 +268,44 @@ - - - + + + - - + + - - + + - - [z_counter] + + 1 - - + + - - - + + + - - + + - - int16 + + z_counter @@ -1700,779 +316,44 @@ - - - + + + - - + + - - + + - - [z_dir] + + 4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - - threshold=0 - Criteria : u2 ~= 0 - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbsPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 + + uint16 @@ -2485,7 +366,7 @@ - + @@ -2493,51 +374,51 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -2563,11 +444,11 @@ - + - + dz_cntTrnsDet @@ -2578,11 +459,11 @@ - + - + boolean @@ -2594,44 +475,59 @@ - - - + + + - - + + - - + + - - if { } + + cf_speedCoef - - + + - - + + - - + + - - Action Port + + cf_speedCoef + + + + + + + + + + + + + + + uint16 @@ -2642,58 +538,393 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - 4 - - - - - - - - - - - - - - - - - - n_motAbsPrev + + - + + + + + + + + + + int16 + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + threshold=0 + Criteria : u2 ~= 0 + + + + + + - - + + - + sfix16_En4 @@ -2705,202 +936,530 @@ - - - + + + - - + + - + - - + + - - [z_counterRawPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - z_counterRawPrev - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [dz_trnsDet] - - - - - - - - - - - - - + - - + + - + + boolean + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + threshold=0 + Criteria : u2 ~= 0 + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean @@ -2912,28 +1471,28 @@ - - + + - + - + - - [z_counter] + + [cf_speedCoef] - + @@ -2945,91 +1504,28 @@ - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - z_dirPrev - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - + + - + - + - - [z_dirPrev] + + [dz_trnsDet] - + @@ -3051,11 +1547,11 @@ - + - + [n_motAbsPrev] @@ -3072,6 +1568,1160 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + threshold=0 + Criteria : u2 ~= 0 + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counterRawPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + + + + + + + + + + + + [cf_speedCoef] + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counterRawPrev] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [cf_speedCoef] + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dirPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + n_motAbsPrev + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbsPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -3084,11 +2734,11 @@ - + - + 2 @@ -3106,11 +2756,11 @@ - + - + dz_trnsDet @@ -3120,6 +2770,429 @@ + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + z_counterRawPrev + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_dirPrev + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [dz_trnsDet] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -3132,11 +3205,11 @@ - + - + 1 @@ -3154,11 +3227,11 @@ - + - + z_dir @@ -3169,11 +3242,11 @@ - + - + int8 @@ -3185,117 +3258,44 @@ - - - + + + - - + + - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - z_counter - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - + + [z_dirPrev] - - + + - - + + - + - - sfix16_En4 + + int8 @@ -3308,7 +3308,7 @@ - + @@ -3773,10 +3773,10 @@ - + - + @@ -4020,5 +4020,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8384_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8384_d.json index 8fd8fd3..4f56885 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8384_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8384_d.json @@ -997,9 +997,9 @@ "auto", "off", "off", - "0", + "[]", "off", - "reset", + "held", "off", "0", "", @@ -1030,6 +1030,55 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8420", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"a_elecAngle1", + "label":"a_elecAngle1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "a_elecAngle", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,6)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8418", "className":"Simulink.Switch", @@ -1350,11 +1399,44 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8403", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8411", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_posHighRes", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8404", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From7", + "label":"From7", "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1362,7 +1444,7 @@ "IconDisplay" ], "values":[ - "z_counter", + "z_counterRaw", "Tag" ], "tabs":[ @@ -1381,11 +1463,73 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8397", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8400", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"From5", + "label":"From5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8398", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From12", + "label":"From12", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_posLowRes", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8396", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1412,11 +1556,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8394", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8393", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide3", - "label":"Divide3", + "name":"Divide2", + "label":"Divide2", "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1557,77 +1701,20 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8393", - "className":"Simulink.Product", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11459", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8404", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counterRaw", - "Tag" + "held", + "Only when execution is resumed" ], "tabs":[ "Parameter Attributes" @@ -1640,16 +1727,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"ActionPort", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8396", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8397", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From11", + "label":"From11", "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ @@ -1675,55 +1762,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9665", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Constant1", - "label":"Constant1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8389", "className":"Simulink.Inport", @@ -1791,148 +1829,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11459", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8400", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8420", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"a_elecAngle1", - "label":"a_elecAngle1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "a_elecAngle", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,6)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8398", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_posLowRes", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8410", "className":"Simulink.Goto", @@ -1967,21 +1863,68 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8411", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9665", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Constant1", + "label":"Constant1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8403", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_posHighRes", - "local", + "z_counter", "Tag" ], "tabs":[ @@ -1995,7 +1938,64 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8394", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide3", + "label":"Divide3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8384", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", "masktype":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8384_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8384_d.svg index 6536c23..ef597e3 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8384_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8384_d.svg @@ -296,7 +296,7 @@ - + @@ -585,7 +585,7 @@ - + @@ -705,7 +705,7 @@ - + @@ -1190,48 +1190,72 @@ + + + + + + + + + + + + + + + + + + a_elecAngle + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -1239,7 +1263,7 @@ - + @@ -1247,7 +1271,7 @@ - + @@ -1255,7 +1279,7 @@ - + @@ -1263,7 +1287,7 @@ - + @@ -1271,7 +1295,7 @@ - + @@ -1279,7 +1303,7 @@ - + @@ -1287,7 +1311,7 @@ - + @@ -1295,7 +1319,7 @@ - + @@ -1303,7 +1327,7 @@ - + @@ -1311,7 +1335,7 @@ - + @@ -1319,7 +1343,7 @@ - + @@ -1327,7 +1351,7 @@ - + @@ -1335,22 +1359,46 @@ - + - + - - T + + + + + + + + + + + + + + + + + + + + + + + T + + + - + F @@ -1368,11 +1416,11 @@ - + - + sfix16_En12 @@ -1393,36 +1441,36 @@ - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + @@ -1440,11 +1488,11 @@ - + - + sfix16_En12 @@ -1466,108 +1514,84 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + @@ -1575,15 +1599,15 @@ - + - + - - + + @@ -1591,6 +1615,30 @@ + + + + + + + + + + + + + + + + + + + + + + + + @@ -1616,11 +1664,11 @@ - + - + sfix16_En6 @@ -1642,19 +1690,19 @@ - + - + - + - + @@ -1680,11 +1728,11 @@ - + - + sfix16_En12 @@ -1706,19 +1754,19 @@ - + - + - + - + @@ -1744,11 +1792,11 @@ - + - + int16 @@ -1770,11 +1818,11 @@ - + - + [b_enaAdvCtrl] @@ -1803,11 +1851,11 @@ - + - + [z_dir] @@ -1825,11 +1873,11 @@ - + - + int8 @@ -1841,325 +1889,29 @@ - - - + + + - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - + + - + - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - + [z_posHighRes] - - - - - - - - - - - - - - - - - sfix16_En12 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 + + @@ -2180,11 +1932,11 @@ - + - + [z_counterRaw] @@ -2202,11 +1954,11 @@ - + - + int16 @@ -2216,213 +1968,6 @@ - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - sfix16_En12 - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - b_enaAdvCtrl - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - @@ -2435,11 +1980,11 @@ - + - + [a_elecAngle] @@ -2457,59 +2002,11 @@ - + - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - a_elecAngle - - - - - - - - - - - - - - - - - - - - - + sfix16_En6 @@ -2531,11 +2028,11 @@ - + - + [z_posLowRes] @@ -2553,11 +2050,11 @@ - + - + int8 @@ -2567,6 +2064,390 @@ + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_posHighRes] + + + + + + + + + + + + + + + + + + + + + + sfix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + b_enaAdvCtrl + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -2579,11 +2460,11 @@ - + - + [z_posLowRes] @@ -2602,29 +2483,148 @@ - - - + + + - - + + - - + + - - [z_posHighRes] + + 0 - - + + + + + + + + + + + + + + + + + sfix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En14 @@ -3149,5 +3149,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8469_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8469_d.json index ffcd1a9..ffedcfc 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8469_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8469_d.json @@ -602,6 +602,241 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8527", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"b_errFlag", + "label":"b_errFlag", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8525", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"t_errQual", + "label":"t_errQual", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "t_errQual", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9398", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch3", + "label":"Switch3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8524", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"t_errDequal", + "label":"t_errDequal", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "t_errDequal", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8521", "className":"Simulink.Gain", @@ -661,6 +896,108 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8515", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9404", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator7", + "label":"Relational Operator7", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + ">", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8520", "className":"Simulink.Gain", @@ -720,6 +1057,51 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8509", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator2", + "label":"Relational Operator2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "~=", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8519", "className":"Either edge detection", @@ -818,43 +1200,27 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9405", - "className":"Simulink.Constant", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11021", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"r_errInpTgtThres", - "label":"r_errInpTgtThres", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "r_errInpTgtThres", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" + "b_motEna", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -862,356 +1228,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8515", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8514", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum", - "label":"Sum", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "rectangular", - "+++", - "off", - "Inherit: Same as first input", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9404", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator7", - "label":"Relational Operator7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - ">", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8510", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator3", - "label":"Relational Operator3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8524", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"t_errDequal", - "label":"t_errDequal", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "t_errDequal", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8508", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator1", - "label":"Relational Operator1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8525", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"t_errQual", - "label":"t_errQual", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "t_errQual", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, @@ -1282,184 +1299,42 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8503", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8514", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Sum", + "label":"Sum", "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_errCode", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11022", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_motEna", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9398", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch3", - "label":"Switch3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Criteria", + "IconShape", + "Inputs", "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "u2 ~= 0", + "rectangular", + "+++", "off", + "Inherit: Same as first input", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: Same as first input", "off", - "Zero", + "Simplest", "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8527", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"b_errFlag", - "label":"b_errFlag", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -1469,7 +1344,7 @@ "tabs_idx":[ 0, 2, - 11 + 10 ] }, "viewer":{ @@ -1478,135 +1353,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9406", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_errCodePrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8492", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_errFlag", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11021", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_motEna", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9407", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_errCodePrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", + "blocktype":"Sum", "masktype":"" } }, @@ -1643,6 +1390,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8503", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_errCode", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8500", "className":"Simulink.Goto", @@ -1676,6 +1456,68 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11022", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8491", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_errCodeRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9402", "className":"Simulink.From", @@ -1707,6 +1549,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8493", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_errFlag", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9400", "className":"Simulink.From", @@ -1738,6 +1611,747 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9408", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From16", + "label":"From16", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_errCodePrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8510", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator3", + "label":"Relational Operator3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8492", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_errFlag", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8482", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion", + "label":"Data Type Conversion", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "uint8", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8480", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM2", + "label":"CTRL_COMM2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8479", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM1", + "label":"CTRL_COMM1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "7", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8478", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM", + "label":"CTRL_COMM", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8484", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion3", + "label":"Data Type Conversion3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "uint8", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8494", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_errCodeRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8517", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8508", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator1", + "label":"Relational Operator1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9394", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"VqFinPrev", + "label":"VqFinPrev", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9412", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM4", + "label":"CTRL_COMM4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "1", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9396", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_motStdStill", + "label":"b_motStdStill", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9410", + "className":"Simulink.SFunction", + "icon":"WebViewIcon3", + "name":"Bitwise Operator1", + "label":"Bitwise Operator1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "logicop", + "UseBitMask", + "NumInputPorts", + "BitMask", + "BitMaskRealWorld" + ], + "values":[ + "AND", + "on", + "1", + "bin2dec('100')", + "Stored Integer" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"S-Function", + "masktype":"Bitwise Operator" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8483", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion1", + "label":"Data Type Conversion1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "uint8", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486", "className":"Simulink.SubSystem", @@ -1835,344 +2449,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8493", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_errFlag", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8487", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_posRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8482", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion", - "label":"Data Type Conversion", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "uint8", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8509", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "~=", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8480", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM2", - "label":"CTRL_COMM2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9412", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM4", - "label":"CTRL_COMM4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "1", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8479", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM1", - "label":"CTRL_COMM1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "7", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9410", - "className":"Simulink.SFunction", - "icon":"WebViewIcon3", - "name":"Bitwise Operator1", - "label":"Bitwise Operator1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "logicop", - "UseBitMask", - "NumInputPorts", - "BitMask", - "BitMaskRealWorld" - ], - "values":[ - "AND", - "on", - "1", - "bin2dec('100')", - "Stored Integer" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"S-Function", - "masktype":"Bitwise Operator" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8474", "className":"Simulink.ActionPort", @@ -2205,227 +2481,21 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8483", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9406", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Data Type Conversion1", - "label":"Data Type Conversion1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "uint8", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8484", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion3", - "label":"Data Type Conversion3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "uint8", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9403", - "className":"Simulink.Abs", - "icon":"WebViewIcon3", - "name":"Abs4", - "label":"Abs4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime", - "ZeroCross" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as input", - "off", - "Floor", - "off", - "-1", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Abs", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9396", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_motStdStill", - "label":"b_motStdStill", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9408", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", + "name":"Goto7", + "label":"Goto7", "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "z_errCodePrev", + "local", "Tag" ], "tabs":[ @@ -2439,78 +2509,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8494", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_errCodeRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8491", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_errCodeRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8478", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9405", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"CTRL_COMM", - "label":"CTRL_COMM", + "name":"r_errInpTgtThres", + "label":"r_errInpTgtThres", "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ @@ -2524,7 +2532,7 @@ "FramePeriod" ], "values":[ - "0", + "r_errInpTgtThres", "on", "inf", "[]", @@ -2554,56 +2562,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8517", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11020", "className":"Simulink.Inport", @@ -2672,60 +2630,102 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9394", - "className":"Simulink.Inport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9407", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"VqFinPrev", - "label":"VqFinPrev", + "name":"From15", + "label":"From15", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_errCodePrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8487", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_posRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9403", + "className":"Simulink.Abs", + "icon":"WebViewIcon3", + "name":"Abs4", + "label":"Abs4", "parent":"BLDCmotor_FOC_R2017b_fixdt:8469", "inspector":{ "params":[ - "Port", - "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "RndMeth", + "SaturateOnIntegerOverflow", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "ZeroCross" ], "values":[ - "4", - "Port number", "[]", "[]", - "Inherit: auto", + "Inherit: Same as input", + "off", + "Floor", "off", - "inherit", "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "on" ], "tabs":[ - "Main", "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 6 ] }, "viewer":{ @@ -2734,7 +2734,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Abs", "masktype":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8469_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8469_d.png index 97944ac..9582b68 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8469_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8469_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8469_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8469_d.svg index 93969e7..d0deb54 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8469_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8469_d.svg @@ -438,6 +438,364 @@ + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + b_errFlag + + + + + + + + + + + + + + + + + + + + + + + + + + t_errQual + + + + + + + + + + + + + + + + + + + + + + t_errQual + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ~= 0 + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + t_errDequal + + + + + + + + + + + + + + + + + + + + + + t_errDequal + + + + + + + + + + + + + + + uint16 + + + + + + + + @@ -450,11 +808,11 @@ - + - + 4 @@ -472,11 +830,11 @@ - + - + uint8 @@ -486,343 +844,24 @@ - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - r_errInpTgtThres - - - - - - - - - - - - - - - - - - - - - - r_errInpTgtThres - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -830,7 +869,7 @@ - + @@ -838,7 +877,7 @@ - + @@ -846,7 +885,7 @@ - + @@ -854,7 +893,7 @@ - + @@ -862,7 +901,7 @@ - + @@ -870,7 +909,7 @@ - + @@ -878,7 +917,7 @@ - + @@ -886,7 +925,7 @@ - + @@ -894,22 +933,78 @@ - + - + - - T + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + - + F @@ -927,99 +1022,11 @@ - + - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + uint8 @@ -1033,7 +1040,7 @@ - + @@ -1041,19 +1048,19 @@ - + - + - + - + @@ -1079,11 +1086,11 @@ - + - + boolean @@ -1095,38 +1102,78 @@ - - - + + + - + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + - + - + - - + + - - - - - - - - - - + + @@ -1140,22 +1187,22 @@ - + - + - - + + - + boolean @@ -1167,130 +1214,147 @@ - - - + + + - - + + - - - - - - - t_errDequal - - - - - - - - - - - - - - - - + - - t_errDequal - - - - - - - + + - + - - uint16 + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + boolean @@ -1302,59 +1366,29 @@ - - - + + + - - + + - - + + - - t_errQual + + [b_motEna] - - - - - - - - - - - - - - - - - t_errQual - - - - - - - - - - - - - - - uint16 + + @@ -1375,11 +1409,11 @@ - + - + [b_errFlag] @@ -1408,11 +1442,11 @@ - + - + [VqFinPrev] @@ -1431,470 +1465,83 @@ - - - + + + - - + + - - + + - - [z_errCode] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motEna] - - - - - - - + + - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ~= 0 - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - b_errFlag - - - - - - - - - - - - - - - - - - - - - - - - - - [z_errCodePrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_errFlag] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motEna] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_errCodePrev] - - - - - - - - - - - - - + - - + + - + uint8 @@ -1916,11 +1563,11 @@ - + - + [b_motStdStill] @@ -1937,6 +1584,39 @@ + + + + + + + + + + + + + + + + + + [z_errCode] + + + + + + + + + + + + + + + @@ -1949,11 +1629,11 @@ - + - + [z_errCodeRaw] @@ -1970,6 +1650,102 @@ + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_errCodeRaw] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + @@ -1982,11 +1758,11 @@ - + - + [VqFinPrev] @@ -2004,11 +1780,11 @@ - + - + sfix16_En4 @@ -2018,381 +1794,6 @@ - - - - - - - - - - - - - - - - - - [b_motStdStill] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - tAcv - - - - - - - - tDeacv - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Debounce_Filter - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -2405,11 +1806,11 @@ - + - + [b_errFlag] @@ -2427,11 +1828,11 @@ - + - + boolean @@ -2443,43 +1844,91 @@ - - + + - + - + - - [z_posRaw] + + [b_motStdStill] - + - + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_errCodePrev] + + + + + + + + + + + + + - - + + - + uint8 @@ -2489,6 +1938,126 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_errFlag] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -2501,19 +2070,19 @@ - + - + - + - + @@ -2539,11 +2108,11 @@ - + - + uint8 @@ -2553,70 +2122,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - @@ -2629,11 +2134,11 @@ - + - + 0 @@ -2651,11 +2156,11 @@ - + - + uint8 @@ -2665,54 +2170,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - @@ -2725,11 +2182,11 @@ - + - + 7 @@ -2747,11 +2204,11 @@ - + - + uint8 @@ -2763,171 +2220,43 @@ - - - + + + - - + + - - + + - - Bitwise - - - - - - - - AND - - - - - - - - 0x4 + + 0 - - + + - + - - + + - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + uint8 @@ -2949,19 +2278,19 @@ - + - + - + - + @@ -2987,202 +2316,11 @@ - + - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - b_motStdStill - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_errCodePrev] - - - - - - - - - - - - - - - - - - - - - + uint8 @@ -3204,11 +2342,11 @@ - + - + [z_errCodeRaw] @@ -3226,107 +2364,11 @@ - + - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_errCodeRaw] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - + uint8 @@ -3348,35 +2390,35 @@ - + - + - + - + - + - + - + - + @@ -3402,11 +2444,11 @@ - + - + Ini=0 @@ -3417,11 +2459,11 @@ - + - + uint8 @@ -3433,58 +2475,67 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - 1 - - - - - - - - - - - - - - - - - - b_motEna + + - + - - + + - + boolean @@ -3506,11 +2557,11 @@ - + - + 4 @@ -3528,11 +2579,11 @@ - + - + VqFinPrev @@ -3543,11 +2594,960 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + b_motStdStill + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + Bitwise + + + + + + + + AND + + + + + + + + 0x4 + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + tAcv + + + + + + + + tDeacv + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Debounce_Filter + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + [z_errCodePrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + r_errInpTgtThres + + + + + + + + + + + + + + + + + + + + + + r_errInpTgtThres + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + b_motEna + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_errCodePrev] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_posRaw] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -4223,5 +4223,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2423_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2423_d.json index 1076adb..8b44934 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2423_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2423_d.json @@ -48,6 +48,86 @@ "finder":[ ] }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2426", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"yDefault", + "label":"yDefault", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2423", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2425", "className":"Simulink.ActionPort", @@ -146,86 +226,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2426", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"yDefault", - "label":"yDefault", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2423", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2424#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2423_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2423_d.svg index 9a9f28d..93d1003 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2423_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2423_d.svg @@ -30,11 +30,59 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + yDefault + + + + + + + + - + @@ -42,11 +90,11 @@ - + - + else { } @@ -64,11 +112,11 @@ - + - + Action Port @@ -90,11 +138,11 @@ - + - + 1 @@ -112,11 +160,11 @@ - + - + yPrev @@ -127,11 +175,11 @@ - + - + boolean @@ -141,54 +189,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - yDefault - - - - - - - - @@ -205,5 +205,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2428_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2428_d.json index 9201218..e4baa5c 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2428_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2428_d.json @@ -1,4 +1,84 @@ [ + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2447", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"yDeacv", + "label":"yDeacv", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2446", "className":"Simulink.Switch", @@ -102,21 +182,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2444", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2440", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"From8", + "label":"From8", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ "b_cntRst", - "local", "Tag" ], "tabs":[ @@ -130,7 +208,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -167,150 +245,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2441", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "tDeacv", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2447", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"yDeacv", - "label":"yDeacv", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2440", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_cntRst", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2439", "className":"Simulink.From", @@ -342,70 +276,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2443", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "yPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2438", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "yDeacv", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2437", "className":"Simulink.From", @@ -437,6 +307,99 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2436", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "yPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2444", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_cntRst", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2435", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"Counter", + "label":"Counter", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "z_cntInit" + ], + "values":[ + "0" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2434", "className":"Simulink.Constant", @@ -486,6 +449,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2443", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto17", + "label":"Goto17", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "yPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2433", "className":"Simulink.Constant", @@ -566,6 +562,70 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2441", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "tDeacv", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2438", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "yDeacv", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2431", "className":"Simulink.Inport", @@ -633,37 +693,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2436", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "yPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2430", "className":"Simulink.Inport", @@ -731,35 +760,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2435", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Counter", - "label":"Counter", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", - "inspector":{ - "params":[ - "z_cntInit" - ], - "values":[ - "0" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2429", "className":"Simulink.Inport", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2428_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2428_d.svg index 4d197ea..89bccf9 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2428_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2428_d.svg @@ -10,6 +10,54 @@ + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + yDeacv + + + + + + + @@ -22,37 +70,13 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -60,7 +84,7 @@ - + @@ -68,7 +92,7 @@ - + @@ -76,7 +100,7 @@ - + @@ -84,7 +108,7 @@ - + @@ -92,7 +116,7 @@ - + @@ -100,7 +124,7 @@ - + @@ -108,7 +132,7 @@ - + @@ -116,7 +140,7 @@ - + @@ -124,7 +148,7 @@ - + @@ -132,7 +156,7 @@ - + @@ -140,7 +164,7 @@ - + @@ -148,7 +172,7 @@ - + @@ -156,22 +180,46 @@ - + - + - - T + + + + + + + + + + + + + + + + + + + + + + + T + + + - + F @@ -189,11 +237,11 @@ - + - + boolean @@ -215,19 +263,19 @@ - + - + - + - + @@ -253,11 +301,236 @@ - + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cntRst] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [yDeacv] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [tDeacv] + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + [tDeacv] + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + [yPrev] + + + + + + + + + + + + + + + + + + + + + boolean @@ -279,11 +552,11 @@ - + - + [b_cntRst] @@ -302,29 +575,235 @@ - - - + + + - - + + - - + + - - [yDeacv] + + inc + + + + + + + + max + + + + + + + + rst + + + + + + + + cnt + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + Counter + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -335,172 +814,43 @@ - - - + + + - - + + - - + + - - [tDeacv] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + 1 - - - - - - - - - - - - - - - - - yDeacv - - - - - - - - - - - - - - - - - - - - - - - - - - [b_cntRst] - - - - - - - + + - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [tDeacv] - - - - - - - - - - - - - + - - + + - + uint16 @@ -522,11 +872,11 @@ - + - + [yPrev] @@ -543,150 +893,6 @@ - - - - - - - - - - - - - - - - - - [yDeacv] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [tDeacv] - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - @@ -699,11 +905,11 @@ - + - + 0 @@ -721,11 +927,11 @@ - + - + boolean @@ -747,11 +953,11 @@ - + - + elseif { } @@ -769,11 +975,11 @@ - + - + Action Port @@ -783,6 +989,87 @@ + + + + + + + + + + + + + + + + + + [tDeacv] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [yDeacv] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -795,11 +1082,11 @@ - + - + 3 @@ -817,11 +1104,11 @@ - + - + yPrev @@ -832,59 +1119,11 @@ - + - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [yPrev] - - - - - - - - - - - - - - - - - - - - - + boolean @@ -906,11 +1145,11 @@ - + - + 2 @@ -928,11 +1167,11 @@ - + - + b_cntRst @@ -943,11 +1182,11 @@ - + - + boolean @@ -957,245 +1196,6 @@ - - - - - - - - - - - - - - - - - - inc - - - - - - - - max - - - - - - - - rst - - - - - - - - cnt - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Counter - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -1443,5 +1443,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2435_2515_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2435_2515_d.svg index 4e1f3c7..3741b8e 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2435_2515_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2435_2515_d.svg @@ -15,7 +15,7 @@ - + @@ -486,36 +486,36 @@ - - - - - - - - - - - uint16 - - - - - + - + Ini=initVal + + + + + + + + + + + uint16 + + + + @@ -592,5 +592,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2435_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2435_d.json index eac052a..19caf2f 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2435_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2435_d.json @@ -79,35 +79,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2435:2515", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"rst_Delay", - "label":"rst_Delay", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2435", - "inspector":{ - "params":[ - "initVal" - ], - "values":[ - "z_cntInit" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2435:2416", "className":"Simulink.Sum", @@ -168,60 +139,46 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2435:2413", - "className":"Simulink.Inport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2435:2415", + "className":"Simulink.MinMax", "icon":"WebViewIcon3", - "name":"max", - "label":"max", + "name":"MinMax", + "label":"MinMax", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2435", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "OutMax", + "OutMin", + "RndMeth", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "SaturateOnIntegerOverflow", + "ZeroCross" ], "values":[ + "Inherit: Inherit via internal rule", + "min", + "off", "2", - "Port number", + "off", "[]", "[]", - "Inherit: auto", - "off", - "inherit", + "Floor", "-1", - "Inherit", - "-1", - "auto", "off", - "", - "on", - "off", - "off", - "off" + "on" ], "tabs":[ - "Main", "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 1 ] }, "viewer":{ @@ -230,7 +187,36 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"MinMax", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2435:2515", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"rst_Delay", + "label":"rst_Delay", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2435", + "inspector":{ + "params":[ + "initVal" + ], + "values":[ + "z_cntInit" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", "masktype":"" } }, @@ -301,59 +287,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2435:2415", - "className":"Simulink.MinMax", - "icon":"WebViewIcon3", - "name":"MinMax", - "label":"MinMax", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2435", - "inspector":{ - "params":[ - "OutDataTypeStr", - "Function", - "InputSameDT", - "Inputs", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" - ], - "values":[ - "Inherit: Inherit via internal rule", - "min", - "off", - "2", - "off", - "[]", - "[]", - "Floor", - "-1", - "off", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"MinMax", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2435:2412", "className":"Simulink.Inport", @@ -421,6 +354,73 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2435:2413", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"max", + "label":"max", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2435", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2435:2515#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2435_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2435_d.svg index 37cd611..c35dd01 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2435_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2435_d.svg @@ -59,141 +59,6 @@ - - - - - - - - - - - - - - - - - - u - - - - - - - - rst - - - - - - - - y - - - - - - - - 1 - - - - - - - - z - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=z_cntInit - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -206,35 +71,35 @@ - + - + - + - + - + - + - + - + @@ -252,11 +117,11 @@ - + - + uint16 @@ -266,137 +131,11 @@ - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - max - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - rst - - - - - - - - - - - - - - - boolean - - - - - - - - - + @@ -404,19 +143,19 @@ - + - + - + - + @@ -442,11 +181,11 @@ - + - + uint16 @@ -456,6 +195,204 @@ + + + + + + + + + + + + + + + + + + u + + + + + + + + rst + + + + + + + + y + + + + + + + + 1 + + + + + + + + z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=z_cntInit + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + rst + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -468,11 +405,11 @@ - + - + 1 @@ -490,11 +427,11 @@ - + - + inc @@ -505,11 +442,74 @@ - + - + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + max + + + + + + + + + + + + + + uint16 @@ -625,5 +625,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2473_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2473_d.json index 7c8758e..6af3d11 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2473_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2473_d.json @@ -80,39 +80,27 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2490", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2489", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - ">", - "off", - "boolean", - "Simplest", - "-1", - "on" + "b_cntRst", + "local", + "Tag" ], "tabs":[ - "Main", - "Data Type", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 1, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -120,7 +108,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", + "blocktype":"Goto", "masktype":"" } }, @@ -189,11 +177,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2483", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2482", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From10", + "label":"From10", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -201,7 +189,7 @@ "IconDisplay" ], "values":[ - "yAcv", + "tAcv", "Tag" ], "tabs":[ @@ -220,11 +208,56 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2482", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2490", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator2", + "label":"Relational Operator2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + ">", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2481", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From1", + "label":"From1", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -232,7 +265,7 @@ "IconDisplay" ], "values":[ - "tAcv", + "yPrev", "Tag" ], "tabs":[ @@ -308,11 +341,44 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2481", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2486", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "tAcv", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2484", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", + "name":"From7", + "label":"From7", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -320,7 +386,7 @@ "IconDisplay" ], "values":[ - "yPrev", + "tAcv", "Tag" ], "tabs":[ @@ -339,31 +405,51 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2480", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"Counter", - "label":"Counter", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2479", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant6", + "label":"Constant6", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "z_cntInit" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "0" + "1", + "on", + "inf", + "[]", + "[]", + "uint16", + "off", + "inf" ], "tabs":[ + "Main", + "Signal Attributes", + "-Other" ], "tabs_idx":[ + 0, + 3, + 7 ] }, "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" + "jshandler":"webview/handlers/ElementHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"SubSystem", + "blocktype":"Constant", "masktype":"" } }, @@ -417,82 +503,31 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2477", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2480", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"Counter", + "label":"Counter", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "z_cntInit" ], "values":[ - "held", - "Only when execution is resumed" + "0" ], "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2479", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Constant6", - "label":"Constant6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "1", - "on", - "inf", - "[]", - "[]", - "uint16", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" ], "tabs_idx":[ - 0, - 3, - 7 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"SubSystem", "masktype":"" } }, @@ -564,11 +599,75 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2484", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2487", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "yAcv", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2477", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2483", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From2", + "label":"From2", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", "inspector":{ "params":[ @@ -576,7 +675,7 @@ "IconDisplay" ], "values":[ - "tAcv", + "yAcv", "Tag" ], "tabs":[ @@ -661,39 +760,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2489", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_cntRst", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2474", "className":"Simulink.Inport", @@ -761,72 +827,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2487", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "yAcv", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2486", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "tAcv", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2480#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2473_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2473_d.png index ec5ec7e..57009d5 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2473_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2473_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2473_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2473_d.svg index 5f2194a..f069417 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2473_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2473_d.svg @@ -61,60 +61,29 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + [b_cntRst] + - - - - - - - - - - - - - - - - - boolean + + @@ -135,11 +104,11 @@ - + - + [yPrev] @@ -168,11 +137,11 @@ - + - + [b_cntRst] @@ -190,59 +159,11 @@ - + - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [yAcv] - - - - - - - - - - - - - - - - - - - - - + boolean @@ -264,11 +185,11 @@ - + - + [tAcv] @@ -286,11 +207,11 @@ - + - + uint16 @@ -302,187 +223,59 @@ - - - + + + - - + + - + - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F + + + + + + + + + + - - + + - + - - + + - + boolean @@ -504,11 +297,11 @@ - + - + [yPrev] @@ -526,11 +319,380 @@ - + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [tAcv] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [tAcv] + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + boolean @@ -552,124 +714,44 @@ - + - + inc - + - + max - + - + rst - + - + cnt - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -677,7 +759,7 @@ - + @@ -685,7 +767,7 @@ - + @@ -693,7 +775,7 @@ - + @@ -701,6 +783,86 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -718,11 +880,11 @@ - + - + Counter @@ -733,11 +895,11 @@ - + - + uint16 @@ -745,29 +907,29 @@ - + - + - + - + - + - + @@ -779,150 +941,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - @@ -935,11 +953,11 @@ - + - + 3 @@ -957,11 +975,11 @@ - + - + b_errPrev @@ -972,11 +990,11 @@ - + - + boolean @@ -986,213 +1004,6 @@ - - - - - - - - - - - - - - - - - - [tAcv] - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - b_cntRst - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [b_cntRst] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - tAcv - - - - - - - - - - - - - - - uint16 - - - - - - - - @@ -1205,11 +1016,11 @@ - + - + [yAcv] @@ -1228,29 +1039,218 @@ - - - + + + - - + + - - + + - - [tAcv] + + if { } - - + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + [yAcv] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + b_cntRst + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + tAcv + + + + + + + + + + + + + + + uint16 @@ -1443,5 +1443,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2480_2515_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2480_2515_d.svg index 12f9be0..59ee66b 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2480_2515_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2480_2515_d.svg @@ -15,7 +15,7 @@ - + @@ -592,5 +592,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2480_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2480_d.json index abf24ff..7942af4 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2480_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2480_d.json @@ -1,33 +1,4 @@ [ - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2480:2515", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon4", - "name":"rst_Delay", - "label":"rst_Delay", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2480", - "inspector":{ - "params":[ - "initVal" - ], - "values":[ - "z_cntInit" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2480:2418", "className":"Simulink.Outport", @@ -109,55 +80,31 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2480:2415", - "className":"Simulink.MinMax", - "icon":"WebViewIcon3", - "name":"MinMax", - "label":"MinMax", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2480:2515", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon4", + "name":"rst_Delay", + "label":"rst_Delay", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2480", "inspector":{ "params":[ - "OutDataTypeStr", - "Function", - "InputSameDT", - "Inputs", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" + "initVal" ], "values":[ - "Inherit: Inherit via internal rule", - "min", - "off", - "2", - "off", - "[]", - "[]", - "Floor", - "-1", - "off", - "on" + "z_cntInit" ], "tabs":[ - "Signal Attributes", - "-Other" ], "tabs_idx":[ - 0, - 1 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"MinMax", + "blocktype":"SubSystem", "masktype":"" } }, @@ -295,65 +242,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2480:2416", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2480", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "round", - "|++", - "on", - "Inherit: Same as first input", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2480:2412", "className":"Simulink.Inport", @@ -421,6 +309,118 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2480:2416", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2480", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|++", + "on", + "Inherit: Same as first input", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2480:2415", + "className":"Simulink.MinMax", + "icon":"WebViewIcon3", + "name":"MinMax", + "label":"MinMax", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486:2480", + "inspector":{ + "params":[ + "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" + ], + "values":[ + "Inherit: Inherit via internal rule", + "min", + "off", + "2", + "off", + "[]", + "[]", + "Floor", + "-1", + "off", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"MinMax", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2480:2515#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2480_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2480_d.svg index 7cc4ffd..7d71521 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2480_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2480_d.svg @@ -10,141 +10,6 @@ - - - - - - - - - - - - - - - - - - - u - - - - - - - - rst - - - - - - - - y - - - - - - - - 1 - - - - - - - - z - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - Ini=z_cntInit - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -158,11 +23,11 @@ - + - + 1 @@ -180,11 +45,11 @@ - + - + cnt @@ -194,11 +59,407 @@ + + + + + + + + + + + + + + + + + + u + + + + + + + + rst + + + + + + + + y + + + + + + + + 1 + + + + + + + + z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Ini=z_cntInit + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + rst + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + max + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + inc + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + - + @@ -206,19 +467,19 @@ - + - + - + - + @@ -244,272 +505,11 @@ - + - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - rst - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - max - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - inc - - - - - - - - - - - - - - + uint16 @@ -625,5 +625,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2507_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2507_d.svg index 374f1f8..98bd29e 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2507_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2507_d.svg @@ -345,5 +345,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_d.json index b785714..190c7e4 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_d.json @@ -79,6 +79,99 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2509", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay", + "label":"UnitDelay", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2467", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If2", + "label":"If2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "2", + "u1 ~= 0", + "u2 ~=0", + "on", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2472", "className":"Simulink.Merge", @@ -119,11 +212,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2463", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2466", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -132,7 +225,40 @@ "IconDisplay" ], "values":[ - "u", + "tDeacv", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2464", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "yPrev", "local", "Tag" ], @@ -185,19 +311,21 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2460", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2462", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "yPrev", + "y", + "local", "Tag" ], "tabs":[ @@ -211,7 +339,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -246,37 +374,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2458", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "yPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2507", "className":"Either edge detection", @@ -375,11 +472,197 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2466", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2460", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From9", + "label":"From9", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "yPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2449", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "tAcv", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2450", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_cntRst", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2454", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "u", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2448", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "yPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2456", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "u", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2463", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ @@ -388,7 +671,7 @@ "IconDisplay" ], "values":[ - "tDeacv", + "u", "local", "Tag" ], @@ -407,6 +690,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2451", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "yPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2473", "className":"Simulink.SubSystem", @@ -504,101 +818,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2453", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "u", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2451", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "yPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2462", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "y", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2452", "className":"Simulink.From", @@ -630,37 +849,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2450", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_cntRst", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2455", "className":"Simulink.From", @@ -692,39 +880,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2465", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "tAcv", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2428", "className":"Simulink.SubSystem", @@ -823,181 +978,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2457", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2458", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", + "name":"From7", + "label":"From7", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ "GotoTag", "IconDisplay" ], - "values":[ - "y", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2421", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"tAcv", - "label":"tAcv", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2464", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], "values":[ "yPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2449", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "tAcv", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2456", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "u", "Tag" ], "tabs":[ @@ -1112,118 +1105,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2448", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "yPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2454", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "u", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2509", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay", - "label":"UnitDelay", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2422", "className":"Simulink.Inport", @@ -1292,37 +1173,25 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2467", - "className":"Simulink.If", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2457", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"If2", - "label":"If2", + "name":"From6", + "label":"From6", "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", "inspector":{ "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" + "GotoTag", + "IconDisplay" ], "values":[ - "2", - "u1 ~= 0", - "u2 ~=0", - "on", - "-1", - "on" + "y", + "Tag" ], "tabs":[ - "Parameter Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 4 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1330,7 +1199,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"If", + "blocktype":"From", "masktype":"" } }, @@ -1401,6 +1270,137 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2421", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"tAcv", + "label":"tAcv", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2453", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "u", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2465", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "tAcv", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2470", "className":"Simulink.Logic", @@ -1446,6 +1446,51 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2468", + "className":"Simulink.Logic", + "icon":"WebViewIcon3", + "name":"Logical Operator1", + "label":"Logical Operator1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", + "inspector":{ + "params":[ + "Operator", + "Inputs", + "IconShape", + "AllPortsSameDT", + "OutDataTypeStr", + "SampleTime" + ], + "values":[ + "NOT", + "2", + "rectangular", + "off", + "boolean", + "-1" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 5 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Logic", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2471", "className":"Simulink.Logic", @@ -1536,51 +1581,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2468", - "className":"Simulink.Logic", - "icon":"WebViewIcon3", - "name":"Logical Operator1", - "label":"Logical Operator1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8486", - "inspector":{ - "params":[ - "Operator", - "Inputs", - "IconShape", - "AllPortsSameDT", - "OutDataTypeStr", - "SampleTime" - ], - "values":[ - "NOT", - "2", - "rectangular", - "off", - "boolean", - "-1" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 5 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Logic", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8486:2507#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_d.png index ed71cb1..2422a64 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_d.svg index c52cc5b..c5fcab3 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_d.svg @@ -59,6 +59,211 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + Ini=0 + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + u2 + + + + + + + + if(u1 ~= 0) + + + + + + + + elseif(u2 ~=0) + + + + + + + + else + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + @@ -71,19 +276,19 @@ - + - + - + - + @@ -109,11 +314,11 @@ - + - + boolean @@ -125,28 +330,61 @@ - - + + - + - + - - [u] + + [tDeacv] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [yPrev] + + + + + + @@ -168,11 +406,11 @@ - + - + [b_cntRst] @@ -191,44 +429,29 @@ - - - + + + - - + + - - + + - - [yPrev] + + [y] - - - - - - - - - - - - - - - - - boolean + + @@ -249,11 +472,11 @@ - + - + [b_cntRst] @@ -271,59 +494,11 @@ - + - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [yPrev] - - - - - - - - - - - - - - - - - - - - - + boolean @@ -345,83 +520,83 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -439,11 +614,11 @@ - + - + boolean @@ -451,29 +626,29 @@ - + - + - + - + - + - + @@ -487,28 +662,316 @@ - - - + + + - - + + - - + + - - [tDeacv] + + [yPrev] - + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [tAcv] + + + + + + + + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cntRst] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [u] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [yPrev] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [u] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [u] + + + + + + @@ -518,6 +981,54 @@ + + + + + + + + + + + + + + + + + + [yPrev] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -536,43 +1047,43 @@ - + - + tAcv - + - + b_cntRst - + - + b_errPrev - + - + yAcv - + - + if { } @@ -602,11 +1113,11 @@ - + - + Qualification @@ -619,16 +1130,16 @@ - - + + - - + + - - action + + boolean @@ -640,151 +1151,16 @@ - - + + - - + + - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [u] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [yPrev] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [y] - - - - - - - + + action @@ -796,6 +1172,12 @@ + + + + + + @@ -805,11 +1187,11 @@ - + - + [tDeacv] @@ -827,11 +1209,11 @@ - + - + uint16 @@ -841,54 +1223,6 @@ - - - - - - - - - - - - - - - - - - [b_cntRst] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - @@ -901,11 +1235,11 @@ - + - + [yPrev] @@ -923,11 +1257,11 @@ - + - + boolean @@ -937,44 +1271,11 @@ - - - - - - - - - - - - - - - - - - [tAcv] - - - - - - - - - - - - - - - - + @@ -988,43 +1289,43 @@ - + - + tDeacv - + - + b_cntRst - + - + yPrev - + - + yDeacv - + - + elseif { } @@ -1054,11 +1355,11 @@ - + - + Dequalification @@ -1075,11 +1376,11 @@ - + - + action @@ -1096,11 +1397,11 @@ - + - + boolean @@ -1112,241 +1413,49 @@ - + - + - + - + - - [y] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - tAcv - - - - - - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - + [yPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - [tAcv] - - - - - - + - - - - - - - - - - uint16 - - - - - - - - - - - - - - - - - - - - - - - - - - [u] - - - - - - - - - - - - - + - - + + - + boolean @@ -1374,27 +1483,27 @@ - + - + yPrev - + - + yDefault - + - + else { } @@ -1424,11 +1533,11 @@ - + - + Default @@ -1441,16 +1550,16 @@ - - + + - - + + - - boolean + + action @@ -1462,212 +1571,15 @@ - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [yPrev] - - - - - - - - - - - - - + - - + + - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [u] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ini=0 - - - - - - - - - - - - - - + boolean @@ -1680,6 +1592,12 @@ + + + + + + @@ -1689,11 +1607,11 @@ - + - + 3 @@ -1711,11 +1629,11 @@ - + - + tDeacv @@ -1726,11 +1644,11 @@ - + - + uint16 @@ -1742,106 +1660,44 @@ - - - + + + - - + + - - + + - - u1 - - - - - - - - u2 - - - - - - - - if(u1 ~= 0) - - - - - - - - elseif(u2 ~=0) - - - - - - - - else + + [y] - - + + - - + + - - + + - - action - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action + + boolean @@ -1862,11 +1718,11 @@ - + - + 1 @@ -1884,11 +1740,11 @@ - + - + u @@ -1899,11 +1755,11 @@ - + - + boolean @@ -1913,11 +1769,155 @@ + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + tAcv + + + + + + + + + + + + + + + uint16 + + + + + + + + + + + + + + + + + + + + + + + + + + [u] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [tAcv] + + + + + + + + + + + + + + + - + @@ -1977,6 +1977,70 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + @@ -1989,19 +2053,19 @@ - + - + - + - + @@ -2016,11 +2080,11 @@ - + - + boolean @@ -2053,19 +2117,19 @@ - + - + - + - + @@ -2080,11 +2144,11 @@ - + - + boolean @@ -2105,70 +2169,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - @@ -2597,5 +2597,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8519_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8519_d.svg index dfc257e..d7c86bb 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8519_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8519_d.svg @@ -345,5 +345,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8658_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8658_d.json index 95194d2..1bd4b5e 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8658_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8658_d.json @@ -890,43 +890,52 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10447", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10173", + "className":"Simulink.Gain", "icon":"WebViewIcon3", - "name":"UnitDelay4", - "label":"UnitDelay4", + "name":"toNegative", + "label":"toNegative", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" ], "values":[ - "0", - "Inherited", "-1", - "", - "", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", "off", - [ - ], - "Auto" + "Zero", + "off", + "[]", + "[]", + "Inherit: Same as input", + "-1" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 2, + 8, + 11 ] }, "viewer":{ @@ -935,104 +944,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8743", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Sine_Cosine_Approximation", - "label":"Sine_Cosine_Approximation", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", + "blocktype":"Gain", "masktype":"" } }, @@ -1133,56 +1045,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9028", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux8", - "label":"Mux8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "3", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9072", - "className":"Simulink.Scope", - "icon":"WebViewIcon3", - "name":"Scope8", - "label":"Scope8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":[ - ], - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Scope", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9027", "className":"Simulink.Mux", @@ -1214,6 +1076,56 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10447", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay4", + "label":"UnitDelay4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8913", "className":"Simulink.SubSystem", @@ -1311,6 +1223,80 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9028", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux8", + "label":"Mux8", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "3", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10363", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If3", + "label":"If3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "1", + "u1 ~= 0", + "", + "off", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10365", "className":"Simulink.If", @@ -1354,6 +1340,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8863", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto8", + "label":"Goto8", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8862", "className":"Simulink.Goto", @@ -1387,6 +1406,58 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8861", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9072", + "className":"Simulink.Scope", + "icon":"WebViewIcon3", + "name":"Scope8", + "label":"Scope8", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":[ + ], + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Scope", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10359", "className":"Simulink.Goto", @@ -1420,6 +1491,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11517", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto37", + "label":"Goto37", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_cruiseCtrlEna", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8858", "className":"Simulink.Goto", @@ -1487,11 +1591,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8853", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11472", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto31", - "label":"Goto31", + "name":"Goto33", + "label":"Goto33", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1500,7 +1604,7 @@ "IconDisplay" ], "values":[ - "iq_limProtErr", + "VqFinPrev", "local", "Tag" ], @@ -1553,11 +1657,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8851", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10728", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto30", + "label":"Goto30", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1566,7 +1670,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "r_nLimProtMax", "local", "Tag" ], @@ -1619,54 +1723,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10363", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If3", - "label":"If3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "1", - "u1 ~= 0", - "", - "off", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8845", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10719", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto24", - "label":"Goto24", + "name":"Goto26", + "label":"Goto26", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1675,7 +1736,7 @@ "IconDisplay" ], "values":[ - "id", + "r_iqLimProtMax", "local", "Tag" ], @@ -1794,11 +1855,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10703", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8851", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto20", - "label":"Goto20", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1807,7 +1868,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtScaAbs", + "z_ctrlMod", "local", "Tag" ], @@ -1827,11 +1888,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10728", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8838", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto30", - "label":"Goto30", + "name":"Goto18", + "label":"Goto18", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1840,7 +1901,40 @@ "IconDisplay" ], "values":[ - "r_nLimProtMax", + "Vd_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8837", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto17", + "label":"Goto17", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vd_max", "local", "Tag" ], @@ -1892,6 +1986,72 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10687", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto14", + "label":"Goto14", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10686", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto12", + "label":"Goto12", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iqAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10395", "className":"Simulink.Goto", @@ -1926,11 +2086,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8846", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10172", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto25", - "label":"Goto25", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -1939,40 +2099,7 @@ "IconDisplay" ], "values":[ - "iq_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10394", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vd", + "id_TgtAbs", "local", "Tag" ], @@ -2054,11 +2181,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8825", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10428", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From69", - "label":"From69", + "name":"From7", + "label":"From7", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2066,7 +2193,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "id", "Tag" ], "tabs":[ @@ -2116,11 +2243,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10438", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8817", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From62", - "label":"From62", + "name":"From61", + "label":"From61", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2128,7 +2255,7 @@ "IconDisplay" ], "values":[ - "iq_limProtErr", + "iq", "Tag" ], "tabs":[ @@ -2147,44 +2274,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11472", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto33", - "label":"Goto33", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "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":"BLDCmotor_FOC_R2017b_fixdt:8811", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10441", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From56", - "label":"From56", + "name":"From60", + "label":"From60", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2192,7 +2286,7 @@ "IconDisplay" ], "values":[ - "Vd_min", + "iq_min", "Tag" ], "tabs":[ @@ -2211,21 +2305,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8848", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8815", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto27", - "label":"Goto27", + "name":"From6", + "label":"From6", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "r_inpTgtSca", - "local", + "Vq", "Tag" ], "tabs":[ @@ -2239,7 +2331,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10433", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From57", + "label":"From57", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", "masktype":"" } }, @@ -2274,6 +2397,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8845", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto24", + "label":"Goto24", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10432", "className":"Simulink.From", @@ -2306,11 +2462,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8861", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8856", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", + "name":"Goto34", + "label":"Goto34", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2319,7 +2475,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "Vq_nLimProtMax", "local", "Tag" ], @@ -2370,11 +2526,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8806", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10362", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From50", - "label":"From50", + "name":"From5", + "label":"From5", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2382,7 +2538,38 @@ "IconDisplay" ], "values":[ - "Vq", + "task2", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10743", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From47", + "label":"From47", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtScaAbs", "Tag" ], "tabs":[ @@ -2463,77 +2650,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8850", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto29", - "label":"Goto29", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10719", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto26", - "label":"Goto26", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_iqLimProtMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8796", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8797", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From41", - "label":"From41", + "name":"From42", + "label":"From42", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2541,7 +2662,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "Vq_min", "Tag" ], "tabs":[ @@ -2560,11 +2681,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10698", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8794", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From37", - "label":"From37", + "name":"From4", + "label":"From4", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2572,7 +2693,7 @@ "IconDisplay" ], "values":[ - "iqAbs", + "Vd", "Tag" ], "tabs":[ @@ -2624,11 +2745,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8788", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10701", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From33", - "label":"From33", + "name":"From38", + "label":"From38", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2636,7 +2757,7 @@ "IconDisplay" ], "values":[ - "id_Tgt", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -2654,6 +2775,165 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8864", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto9", + "label":"Goto9", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_mot", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8790", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From35", + "label":"From35", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10697", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From34", + "label":"From34", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10438", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From62", + "label":"From62", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_limProtErr", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10171", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_Tgt", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8787", "className":"Simulink.From", @@ -2717,11 +2997,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8784", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8782", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From29", - "label":"From29", + "name":"From27", + "label":"From27", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2748,11 +3028,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9718", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8776", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", + "name":"From2", + "label":"From2", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2760,7 +3040,7 @@ "IconDisplay" ], "values":[ - "b_motEna", + "VdPrev", "Tag" ], "tabs":[ @@ -2779,11 +3059,73 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8781", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8775", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From26", - "label":"From26", + "name":"From19", + "label":"From19", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10440", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From59", + "label":"From59", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8783", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From28", + "label":"From28", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2810,11 +3152,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10441", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10436", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From60", - "label":"From60", + "name":"From16", + "label":"From16", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2822,7 +3164,7 @@ "IconDisplay" ], "values":[ - "iq_min", + "Vq_max", "Tag" ], "tabs":[ @@ -2872,11 +3214,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10428", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11515", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", + "name":"From10", + "label":"From10", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2884,7 +3226,7 @@ "IconDisplay" ], "values":[ - "id", + "b_cruiseCtrlEna", "Tag" ], "tabs":[ @@ -2903,44 +3245,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10686", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iqAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8768", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8788", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"From33", + "label":"From33", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -2948,7 +3257,7 @@ "IconDisplay" ], "values":[ - "iq", + "id_Tgt", "Tag" ], "tabs":[ @@ -2967,21 +3276,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8864", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10707", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto9", - "label":"Goto9", + "name":"From39", + "label":"From39", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "n_mot", - "local", + "r_inpTgtScaAbs", "Tag" ], "tabs":[ @@ -2995,7 +3302,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10435", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", "masktype":"" } }, @@ -3031,11 +3369,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10435", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10688", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From30", + "label":"From30", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3043,7 +3381,102 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "iq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8798", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From43", + "label":"From43", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8850", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto29", + "label":"Goto29", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8795", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From40", + "label":"From40", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq", "Tag" ], "tabs":[ @@ -3105,131 +3538,20 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9196", - "className":"Simulink.Outport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10394", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"iq", - "label":"iq", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8794", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "Vd", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8856", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto34", - "label":"Goto34", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_nLimProtMax", "local", "Tag" ], @@ -3249,11 +3571,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10429", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8796", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", + "name":"From41", + "label":"From41", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3261,7 +3583,7 @@ "IconDisplay" ], "values":[ - "id_Tgt", + "Vq_max", "Tag" ], "tabs":[ @@ -3280,42 +3602,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8790", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From35", - "label":"From35", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10171", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8846", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto25", + "label":"Goto25", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3324,7 +3615,7 @@ "IconDisplay" ], "values":[ - "id_Tgt", + "iq_max", "local", "Tag" ], @@ -3344,11 +3635,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10437", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8786", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", + "name":"From31", + "label":"From31", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3356,7 +3647,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "iq", "Tag" ], "tabs":[ @@ -3375,11 +3666,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8795", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10431", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From40", - "label":"From40", + "name":"From53", + "label":"From53", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3387,7 +3678,38 @@ "IconDisplay" ], "values":[ - "Vq", + "Vd_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10698", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From37", + "label":"From37", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iqAbs", "Tag" ], "tabs":[ @@ -3503,11 +3825,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8797", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8806", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From42", - "label":"From42", + "name":"From50", + "label":"From50", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3515,7 +3837,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "Vq", "Tag" ], "tabs":[ @@ -3534,11 +3856,153 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8726", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8811", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From56", + "label":"From56", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9718", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From21", + "label":"From21", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_motEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9196", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"iq", + "label":"iq", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8743", "className":"Simulink.SubSystem", "icon":"WebViewIcon1", - "name":"Current_Filtering", - "label":"Current_Filtering", + "name":"Sine_Cosine_Approximation", + "label":"Sine_Cosine_Approximation", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3590,7 +4054,7 @@ "void_void", "off", "off", - "off", + "on", "", "off", "", @@ -3631,19 +4095,21 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8783", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10448", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From28", - "label":"From28", + "name":"Goto11", + "label":"Goto11", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_sin", + "VdPrev", + "local", "Tag" ], "tabs":[ @@ -3657,38 +4123,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10701", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From38", - "label":"From38", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -3724,104 +4159,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10446", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlMod", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10431", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From53", - "label":"From53", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8817", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From61", - "label":"From61", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10689", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10702", "className":"Simulink.Abs", "icon":"WebViewIcon3", - "name":"Abs5", - "label":"Abs5", + "name":"Abs1", + "label":"Abs1", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3864,11 +4206,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10743", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10429", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From47", - "label":"From47", + "name":"From13", + "label":"From13", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3876,7 +4218,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtScaAbs", + "id_Tgt", "Tag" ], "tabs":[ @@ -3895,11 +4237,42 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11515", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8667", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "reset", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8784", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", + "name":"From29", + "label":"From29", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -3907,7 +4280,7 @@ "IconDisplay" ], "values":[ - "b_cruiseCtrlEna", + "r_cos", "Tag" ], "tabs":[ @@ -3926,97 +4299,99 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10729", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From46", - "label":"From46", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11023", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Clarke_Transform", + "label":"Clarke_Transform", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" ], "values":[ - "r_nLimProtMax", - "Tag" + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "on", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" ], "tabs":[ - "Parameter Attributes" + "Main", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 6 + ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10697", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From34", - "label":"From34", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8863", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", + "blocktype":"SubSystem", "masktype":"" } }, @@ -4155,73 +4530,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8798", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From43", - "label":"From43", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8782", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From27", - "label":"From27", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_cos", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10702", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10689", "className":"Simulink.Abs", "icon":"WebViewIcon3", - "name":"Abs1", - "label":"Abs1", + "name":"Abs5", + "label":"Abs5", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4264,19 +4577,21 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10362", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10703", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"Goto20", + "label":"Goto20", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "task2", + "r_inpTgtScaAbs", + "local", "Tag" ], "tabs":[ @@ -4290,104 +4605,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11023", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Clarke_Transform", - "label":"Clarke_Transform", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "on", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", + "blocktype":"Goto", "masktype":"" } }, @@ -4423,73 +4641,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8776", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "VdPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8667", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "reset", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8664", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8663", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"a_elecAngle", - "label":"a_elecAngle", + "name":"r_fieldWeak", + "label":"r_fieldWeak", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4512,7 +4668,7 @@ "OutputFunctionCall" ], "values":[ - "10", + "9", "Port number", "[]", "[]", @@ -4552,21 +4708,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11517", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8825", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto37", - "label":"Goto37", + "name":"From69", + "label":"From69", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "b_cruiseCtrlEna", - "local", + "z_ctrlMod", "Tag" ], "tabs":[ @@ -4580,56 +4734,95 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10173", - "className":"Simulink.Gain", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10729", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"toNegative", - "label":"toNegative", + "name":"From46", + "label":"From46", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ - "Gain", - "Multiplication", + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8662", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"n_mot", + "label":"n_mot", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Port", + "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ + "7", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", + "Inherit", + "-1", + "auto", "off", - "Zero", + "", + "on", "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" + "off", + "off" ], "tabs":[ "Main", "Signal Attributes", - "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, 2, - 8, 11 ] }, @@ -4639,131 +4832,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8815", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10433", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From57", - "label":"From57", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10707", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From39", - "label":"From39", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10436", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", + "blocktype":"Inport", "masktype":"" } }, @@ -4835,111 +4904,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10357", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"task2", - "label":"task2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10448", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "VdPrev", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10440", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10446", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From59", - "label":"From59", + "name":"From23", + "label":"From23", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -4947,7 +4916,7 @@ "IconDisplay" ], "values":[ - "iq_max", + "z_ctrlMod", "Tag" ], "tabs":[ @@ -5033,21 +5002,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8838", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10430", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto18", - "label":"Goto18", + "name":"From14", + "label":"From14", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "Vd_min", - "local", + "b_enaAdvCtrl", "Tag" ], "tabs":[ @@ -5061,16 +5028,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10688", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8768", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From30", - "label":"From30", + "name":"From11", + "label":"From11", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5096,6 +5063,271 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8848", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto27", + "label":"Goto27", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "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":"BLDCmotor_FOC_R2017b_fixdt:10437", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From20", + "label":"From20", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10357", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"task2", + "label":"task2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8664", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"a_elecAngle", + "label":"a_elecAngle", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "10", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8661", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8660", "className":"Simulink.Inport", @@ -5163,6 +5395,170 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8726", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Current_Filtering", + "label":"Current_Filtering", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8659", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"b_enaAdvCtrl", + "label":"b_enaAdvCtrl", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10358", "className":"Simulink.Inport", @@ -5231,11 +5627,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10687", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8853", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", + "name":"Goto31", + "label":"Goto31", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5244,7 +5640,7 @@ "IconDisplay" ], "values":[ - "n_motAbs", + "iq_limProtErr", "local", "Tag" ], @@ -5264,11 +5660,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8786", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8781", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From31", - "label":"From31", + "name":"From26", + "label":"From26", "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", "inspector":{ "params":[ @@ -5276,7 +5672,7 @@ "IconDisplay" ], "values":[ - "iq", + "r_sin", "Tag" ], "tabs":[ @@ -5294,402 +5690,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8663", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_fieldWeak", - "label":"r_fieldWeak", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "9", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8837", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vd_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10172", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_TgtAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8775", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From19", - "label":"From19", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10430", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8659", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"b_enaAdvCtrl", - "label":"b_enaAdvCtrl", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8662", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"n_mot", - "label":"n_mot", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "7", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8661", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8658", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8827#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8658_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8658_d.png index 9e5d61b..f197ccb 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8658_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8658_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8658_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8658_d.svg index ebea122..8d49ef4 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8658_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8658_d.svg @@ -259,7 +259,7 @@ - + @@ -364,15 +364,15 @@ - + - + - + sfix16_En4 @@ -385,15 +385,15 @@ - + - + - + sfix16_En4 @@ -413,7 +413,7 @@ - + @@ -762,7 +762,7 @@ - + @@ -951,11 +951,261 @@ + + + + + + + + + + + + + + + + + + -1 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + i_apha + + + + + + + + i_beta + + + + + + + + r_sin + + + + + + + + r_cos + + + + + + + + iq_Raw + + + + + + + + id_Raw + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Park_Transform + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + - + @@ -963,35 +1213,35 @@ - + - + - + - + - + - + - + - + @@ -1012,156 +1262,32 @@ - - - - - - - - - - - sfix16_En4 - - - - - + - + Ini=0 - - - - - - - - - - - - - - - - - - - - - - - - - - - - a_elecAngle - - - - - - - - r_sin - - - - - - - - r_cos - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Sine_Cosine_Approximation - - - - - - - - - - - - + + - - + + - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - sfix16_En14 + + sfix16_En4 @@ -1172,15 +1298,9 @@ - - - - - - - - - + + + @@ -1188,58 +1308,170 @@ - - + + - - + + - - i_apha + + z_ctrlMod - - + + - - i_beta + + r_inpTgtScaAbs - - + + - - r_sin + + VdPrev - - + + - - r_cos + + id_TgtAbs - - + + - - iq_Raw + + iq - - + + - - id_Raw + + iqAbs + + + + + + + + n_motAbs + + + + + + + + Vd_max + + + + + + + + Vd_min + + + + + + + + Vq_max + + + + + + + + Vq_min + + + + + + + + id_max + + + + + + + + id_min + + + + + + + + iq_max + + + + + + + + iq_min + + + + + + + + r_iqLimProtMax + + + + + + + + r_nLimProtMax + + + + + + + + iq_limProtErr + + + + + + + + Vq_nLimProtMax + + + + + + + + if { } @@ -1251,8 +1483,8 @@ - - + + @@ -1264,16 +1496,16 @@ - - + + - - + + - - Park_Transform + + Motor_Limitations @@ -1285,15 +1517,15 @@ - + - - + + - + sfix16_En4 @@ -1306,20 +1538,251 @@ - + + + + + + + + + + action + + + + + + + + + + + + - - + + - + sfix16_En4 + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + @@ -1328,7 +1791,7 @@ - + @@ -1342,11 +1805,11 @@ - + - + @@ -1364,11 +1827,11 @@ - + - + sfix16_En4 @@ -1378,11 +1841,222 @@ + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + - + @@ -1390,19 +2064,19 @@ - + - + - + - + @@ -1429,629 +2103,28 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - z_ctrlMod - - - - - - - - r_inpTgtScaAbs - - - - - - - - VdPrev - - - - - - - - id_TgtAbs - - - - - - - - iq - - - - - - - - iqAbs - - - - - - - - n_motAbs - - - - - - - - Vd_max - - - - - - - - Vd_min - - - - - - - - Vq_max - - - - - - - - Vq_min - - - - - - - - id_max - - - - - - - - id_min - - - - - - - - iq_max - - - - - - - - iq_min - - - - - - - - r_iqLimProtMax - - - - - - - - r_nLimProtMax - - - - - - - - iq_limProtErr - - - - - - - - Vq_nLimProtMax - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Motor_Limitations - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - + + - + - - + + - - [Vq_min] + + [task3] - + @@ -2063,28 +2136,28 @@ - - + + - + - - + + - - [task3] + + [b_cruiseCtrlEna] - + @@ -2106,11 +2179,11 @@ - + - + [r_cos] @@ -2139,11 +2212,11 @@ - + - + [r_sin] @@ -2162,28 +2235,28 @@ - - + + - + - + - - [iq_limProtErr] + + [VqFinPrev] - + @@ -2205,11 +2278,11 @@ - + - + [b_motEna] @@ -2228,28 +2301,28 @@ - - + + - + - - + + - - [z_ctrlMod] + + [r_nLimProtMax] - + @@ -2271,11 +2344,11 @@ - + - + [iq_min] @@ -2294,84 +2367,28 @@ - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - + + - + - - + + - - [id] + + [r_iqLimProtMax] - + @@ -2393,11 +2410,11 @@ - + - + [iq] @@ -2426,11 +2443,11 @@ - + - + [r_fieldWeak] @@ -2459,11 +2476,11 @@ - + - + [a_elecAngle] @@ -2482,28 +2499,28 @@ - - + + - + - + - - [r_inpTgtScaAbs] + + [z_ctrlMod] - + @@ -2515,28 +2532,61 @@ - - + + - + - + - - [r_nLimProtMax] + + [Vd_min] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_max] + + + + + + @@ -2558,11 +2608,11 @@ - + - + [task2] @@ -2579,6 +2629,72 @@ + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iqAbs] + + + + + + + + + + + + + + + @@ -2591,11 +2707,11 @@ - + - + [Vq] @@ -2614,61 +2730,28 @@ - - + + - + - - + + - - [iq_max] + + [id_TgtAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd] - - - - - - + @@ -2690,11 +2773,11 @@ - + - + [VqFinPrev] @@ -2712,11 +2795,11 @@ - + - + sfix16_En4 @@ -2738,11 +2821,11 @@ - + - + [id] @@ -2760,1169 +2843,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_limProtErr] - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_TgtAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_iqLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_iqLimProtMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iqAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_Tgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_cos] - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_motEna] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [r_sin] - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -3944,11 +2869,11 @@ - + - + [id] @@ -3966,11 +2891,11 @@ - + - + sfix16_En4 @@ -3982,1397 +2907,43 @@ - - - - - - - - - - - - - - - - [iqAbs] - - - - - - - - - - - - - - - - - - - + + - + - - - - - - [iq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - [task3] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - iq - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - + [Vq_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_Tgt] - - - - - - + - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [id_Tgt] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - b_enaAdvCtrl - - - - - - - - z_ctrlMod - - - - - - - - r_inpTgtSca - - - - - - - - r_inpTgtScaAbs - - - - - - - - n_mot - - - - - - - - id_Tgt - - - - - - - - id - - - - - - - - iq - - - - - - - - Vd_max - - - - - - - - Vd_min - - - - - - - - Vq_max - - - - - - - - Vq_min - - - - - - - - id_max - - - - - - - - id_min - - - - - - - - iq_max - - - - - - - - iq_min - - - - - - - - r_iqLimProtMax - - - - - - - - r_nLimProtMax - - - - - - - - iq_limProtErr - - - - - - - - Vq_nLimProtMax - - - - - - - - VqFinPrev - - - - - - - - b_cruiseCtrlEna - - - - - - - - Vd - - - - - - - - Vq - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - FOC - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - iq_raw - - - - - - - - id_raw - - - - - - - - iq - - - - - - - - id - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Current_Filtering - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_sin] - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_max] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -5394,11 +2965,11 @@ - + - + [iq] @@ -5416,11 +2987,11 @@ - + - + sfix16_En4 @@ -5432,75 +3003,43 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + [iq_min] + - - + + - + - - + + - + sfix16_En4 @@ -5510,6 +3049,360 @@ + + + + + + + + + + + + + + + + + + [Vq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [id_TgtAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [task2] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -5522,11 +3415,11 @@ - + - + [r_inpTgtScaAbs] @@ -5544,11 +3437,11 @@ - + - + sfix16_En4 @@ -5560,91 +3453,43 @@ - - + + - + - + - - [b_cruiseCtrlEna] + + [iq] - + - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [r_nLimProtMax] - - - - - - - - - - - - - + - - + + - + sfix16_En4 @@ -5654,6 +3499,312 @@ + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -5666,11 +3817,11 @@ - + - + [n_motAbs] @@ -5688,11 +3839,11 @@ - + - + sfix16_En4 @@ -5704,28 +3855,76 @@ - - - + + + - - + + - - + + - - [b_enaAdvCtrl] + + [iq_limProtErr] - + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_Tgt] + + + + + + @@ -5737,121 +3936,43 @@ - - - + + + - - + + - - + + - - 14 + + [id] - - - - - - - - - - - - - - - - - b_cruiseCtrlEna + + - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 13 - - - - - - - - - - - - - - - - - - - - - - VqFinPrev - - - - - - + - - + + - + sfix16_En4 @@ -5863,43 +3984,43 @@ - - + + - + - - + + - - [Vd] + + [r_fieldWeak] - + - + - - + + - + sfix16_En4 @@ -5921,11 +4042,11 @@ - + - + [r_cos] @@ -5943,11 +4064,11 @@ - + - + sfix16_En14 @@ -5957,6 +4078,1755 @@ + + + + + + + + + + + + + + + + + + [VdPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_sin] + + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cruiseCtrlEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [id_Tgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [task3] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + if(u1 ~= 0) + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iqAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + b_enaAdvCtrl + + + + + + + + z_ctrlMod + + + + + + + + r_inpTgtSca + + + + + + + + r_inpTgtScaAbs + + + + + + + + n_mot + + + + + + + + id_Tgt + + + + + + + + id + + + + + + + + iq + + + + + + + + Vd_max + + + + + + + + Vd_min + + + + + + + + Vq_max + + + + + + + + Vq_min + + + + + + + + id_max + + + + + + + + id_min + + + + + + + + iq_max + + + + + + + + iq_min + + + + + + + + r_iqLimProtMax + + + + + + + + r_nLimProtMax + + + + + + + + iq_limProtErr + + + + + + + + Vq_nLimProtMax + + + + + + + + VqFinPrev + + + + + + + + b_cruiseCtrlEna + + + + + + + + Vd + + + + + + + + Vq + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + FOC + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_motEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + iq + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + a_elecAngle + + + + + + + + r_sin + + + + + + + + r_cos + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Sine_Cosine_Approximation + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VdPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -5969,35 +5839,35 @@ - + - + - + - + - + - + - + - + @@ -6023,11 +5893,11 @@ - + - + sfix16_En4 @@ -6039,277 +5909,43 @@ - - + + - + - + - - [task2] + + [id_Tgt] - + - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - i_phaAB - - - - - - - - i_phaBC - - - - - - - - i_alpha - - - - - - - - i_beta - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Clarke_Transform - - - - - - - - - - - - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [VdPrev] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -6331,11 +5967,11 @@ - + - + if { } @@ -6353,11 +5989,11 @@ - + - + Action Port @@ -6369,59 +6005,44 @@ - - - + + + - - + + - - + + - - 10 + + [r_cos] - - - - - - - - - - - - - - - - - a_elecAngle + + - - + + - - + + - - sfix16_En6 + + sfix16_En14 @@ -6432,28 +6053,372 @@ - - - + + + - - + + + + + + + + - - + + - - [b_cruiseCtrlEna] + + i_phaAB + + + + + + + + i_phaBC + + + + + + + + i_alpha + + + + + + + + i_beta - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Clarke_Transform + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 14 + + + + + + + + + + + + + + + + + + + + + + b_cruiseCtrlEna + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 13 + + + + + + + + + + + + + + + + + + + + + + VqFinPrev + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaAbs] + + + + + + @@ -6465,91 +6430,106 @@ - - - + + + - - + + - - + + - - -1 + + [id_min] - - + + - + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + - + - - sfix16_En4 + + 9 - - - - - - - - - - - - + + + + + - + + + + + + + + + + + r_fieldWeak + + + + + + + + - + - - [Vq] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -6561,44 +6541,44 @@ - - + + - + + + + + + + + [z_ctrlMod] + + + + + + + + + + + + + + + - + - - [id_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 + + uint8 @@ -6609,43 +6589,43 @@ - - + + - + + + + + + + + [r_nLimProtMax] + + + + + + + + + + + + + + + - + - - [r_inpTgtScaAbs] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -6657,43 +6637,58 @@ - - - + + + - - + + - - + + - - [Vq_max] + + 7 - - + + + + + + + + + + + + + + + + + n_mot - + - + - + sfix16_En4 @@ -6768,140 +6763,44 @@ - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - task2 - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [VdPrev] - - - - - - - - - - - - - - - - - - - + + - + - + - - [iq_max] + + [z_ctrlMod] - + - - + + - - + + - - sfix16_En4 + + uint8 @@ -6922,11 +6821,11 @@ - + - + 8 @@ -6944,11 +6843,11 @@ - + - + n_motAbs @@ -6959,11 +6858,11 @@ - + - + sfix16_En4 @@ -6975,28 +6874,124 @@ - - + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + - + - + - - [Vd_min] + + [r_inpTgtSca] - + @@ -7008,43 +7003,232 @@ - - + + - + - + - - [iq] + + [Vq_min] - + - + - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + task2 + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + 10 + + + + + + + + + + + + + + + + + + + + + + a_elecAngle + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + + + + + + + sfix16_En4 @@ -7066,11 +7250,11 @@ - + - + 2 @@ -7088,11 +7272,11 @@ - + - + z_ctrlMod @@ -7103,11 +7287,11 @@ - + - + uint8 @@ -7117,6 +7301,236 @@ + + + + + + + + + + + + + + + + + + + + + + + + iq_raw + + + + + + + + id_raw + + + + + + + + iq + + + + + + + + id + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Current_Filtering + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + b_enaAdvCtrl + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -7129,11 +7543,11 @@ - + - + 5 @@ -7151,11 +7565,11 @@ - + - + task3 @@ -7166,11 +7580,11 @@ - + - + boolean @@ -7182,28 +7596,28 @@ - - + + - + - + - - [n_motAbs] + + [iq_limProtErr] - + @@ -7215,458 +7629,44 @@ - - + + - + - - - - - - - [iq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 9 - - - - - - - - - - - - - - - - - - - - - - r_fieldWeak - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_TgtAbs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - b_enaAdvCtrl - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - n_mot - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - + - - r_inpTgtSca + + [r_sin] + + + + + + + - - + + - + - - sfix16_En4 + + sfix16_En14 @@ -9243,5 +9243,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8726_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8726_d.json index 88881b7..d3a323e 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8726_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8726_d.json @@ -1,93 +1,31 @@ [ { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8739", - "className":"Simulink.Mux", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8740", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Mux2", - "label":"Mux2", + "name":"cf_currFilt", + "label":"cf_currFilt", "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "2", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8742", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"id", - "label":"id", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "Port", - "IconDisplay", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "FramePeriod" ], "values":[ - "2", - "Port number", + "cf_currFilt", + "on", + "inf", "[]", "[]", - "Inherit: auto", + "fixdt(0,16,16)", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" + "inf" ], "tabs":[ "Main", @@ -96,8 +34,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -106,133 +44,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8738", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon6", - "name":"Low_Pass_Filter", - "label":"Low_Pass_Filter", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "ShowPortLabels", - "BlockChoice", - "TemplateBlock", - "MemberBlocks", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "MinAlgLoopOccurrences", - "PropExecContextOutsideSubsystem", - "SystemSampleTime", - "RTWSystemCode", - "RTWFcnNameOpts", - "RTWFcnName", - "RTWFileNameOpts", - "RTWFileName", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "RTWMemSecFuncInitTerm", - "RTWMemSecFuncExecute", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "IsSubsystemVirtual", - "Variant", - "VariantControl", - "OverrideUsingVariant", - "GeneratePreprocessorConditionals", - "AllowZeroVariantControls", - "PropagateVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "TreatAsGroupedWhenPropagatingVariantConditions" - ], - "values":[ - "FromPortIcon", - "", - "", - "", - "ReadWrite", - "", - "All", - "on", - "off", - "off", - "-1", - "Reusable function", - "Use subsystem name", - "", - "Auto", - "", - "void_void", - "off", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "off", - "off", - "", - "", - "off", - "off", - "off", - "", - "", - "on" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8737", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", + "blocktype":"Constant", "masktype":"" } }, @@ -316,6 +128,70 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8739", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux2", + "label":"Mux2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "2", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8737", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8734", "className":"Simulink.Goto", @@ -350,11 +226,91 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8736", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8742", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"id", + "label":"id", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8735", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto2", + "label":"Goto2", "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -363,7 +319,7 @@ "IconDisplay" ], "values":[ - "id_raw", + "iq_raw", "local", "Tag" ], @@ -382,6 +338,101 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8730", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9714", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "reset", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8729", + "className":"Simulink.Demux", + "icon":"WebViewIcon3", + "name":"Demux1", + "label":"Demux1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "Outputs", + "DisplayOption", + "BusSelectionMode" + ], + "values":[ + "2", + "bar", + "off" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Demux", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8733", "className":"Simulink.From", @@ -444,134 +495,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8735", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_raw", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8729", - "className":"Simulink.Demux", - "icon":"WebViewIcon3", - "name":"Demux1", - "label":"Demux1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "Outputs", - "DisplayOption", - "BusSelectionMode" - ], - "values":[ - "2", - "bar", - "off" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Demux", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9714", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "reset", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8732", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_raw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8728", "className":"Simulink.Inport", @@ -707,11 +630,137 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8730", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8736", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_raw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8738", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon6", + "name":"Low_Pass_Filter", + "label":"Low_Pass_Filter", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", + "inspector":{ + "params":[ + "ShowPortLabels", + "BlockChoice", + "TemplateBlock", + "MemberBlocks", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "MinAlgLoopOccurrences", + "PropExecContextOutsideSubsystem", + "SystemSampleTime", + "RTWSystemCode", + "RTWFcnNameOpts", + "RTWFcnName", + "RTWFileNameOpts", + "RTWFileName", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "RTWMemSecFuncInitTerm", + "RTWMemSecFuncExecute", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "IsSubsystemVirtual", + "Variant", + "VariantControl", + "OverrideUsingVariant", + "GeneratePreprocessorConditionals", + "AllowZeroVariantControls", + "PropagateVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "TreatAsGroupedWhenPropagatingVariantConditions" + ], + "values":[ + "FromPortIcon", + "", + "", + "", + "ReadWrite", + "", + "All", + "on", + "off", + "off", + "-1", + "Reusable function", + "Use subsystem name", + "", + "Auto", + "", + "void_void", + "off", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "off", + "off", + "", + "", + "off", + "off", + "off", + "", + "", + "on" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8732", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From2", + "label":"From2", "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", "inspector":{ "params":[ @@ -719,7 +768,7 @@ "IconDisplay" ], "values":[ - "iq", + "iq_raw", "Tag" ], "tabs":[ @@ -737,55 +786,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8740", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_currFilt", - "label":"cf_currFilt", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8726", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "cf_currFilt", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8739#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8726_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8726_d.png index e61d2bc..b7c48a3 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8726_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8726_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8726_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8726_d.svg index eb2e156..0f5c40c 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8726_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8726_d.svg @@ -13,404 +13,59 @@ - - - + + + - - + + - + - - + + cf_currFilt - - + + - - - + + + - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - id - - - - - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - coef - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - coef - - - - - - - - - - - - - - - - - - - - - - Low_Pass_Filter + + cf_currFilt - - + + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id] - - - - - - - + + ufix16_En16 @@ -431,11 +86,11 @@ - + - + 1 @@ -453,11 +108,11 @@ - + - + iq @@ -467,6 +122,87 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id] + + + + + + + + + + + + + + + @@ -479,11 +215,11 @@ - + - + [iq] @@ -502,28 +238,76 @@ - - - + + + - - + + - - + + - - [id_raw] + + 2 - + + + + + + + + + + + + + + + + + id + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_raw] + + + + + + @@ -533,6 +317,165 @@ + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -545,11 +488,11 @@ - + - + [id_raw] @@ -567,11 +510,11 @@ - + - + sfix16_En4 @@ -593,11 +536,11 @@ - + - + [id] @@ -615,203 +558,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_raw] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_raw] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -833,11 +584,11 @@ - + - + 2 @@ -855,11 +606,11 @@ - + - + id_raw @@ -870,11 +621,11 @@ - + - + sfix16_En4 @@ -896,11 +647,11 @@ - + - + 1 @@ -918,11 +669,11 @@ - + - + iq_raw @@ -933,11 +684,11 @@ - + - + sfix16_En4 @@ -949,107 +700,356 @@ - - - + + + - - + + - - + + - - [iq] + + [id_raw] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + coef + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + coef + + + + + + + + + + + + + + + + + + + + + + Low_Pass_Filter + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_raw] + + + + + + - + - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - cf_currFilt - - - - - - - - - - - - - - - - - - - - - - cf_currFilt - - - - - - - - - + - - ufix16_En16 + + sfix16_En4 @@ -1214,5 +1214,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8738_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8738_d.json index 91330ce..81162b0 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8738_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8738_d.json @@ -1,42 +1,72 @@ [ { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8738:2903", - "className":"Simulink.UnitDelay", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8738:2904", + "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"UnitDelay1", - "label":"UnitDelay1", + "name":"y", + "label":"y", "parent":"BLDCmotor_FOC_R2017b_fixdt:8738", "inspector":{ "params":[ - "InitialCondition", - "InputProcessing", + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "0", - "Elements as channels (sample based)", - "-1", - "", - "", + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", [ ], - "Auto" + "Dialog", + "Auto", + "off" ], "tabs":[ "Main", - "State Attributes", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 3, - 4 + 2, + 11 ] }, "viewer":{ @@ -45,7 +75,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"UnitDelay", + "blocktype":"Outport", "masktype":"" } }, @@ -168,73 +198,43 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8738:2904", - "className":"Simulink.Outport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8738:2903", + "className":"Simulink.UnitDelay", "icon":"WebViewIcon3", - "name":"y", - "label":"y", + "name":"UnitDelay1", + "label":"UnitDelay1", "parent":"BLDCmotor_FOC_R2017b_fixdt:8738", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", + "InitialCondition", + "InputProcessing", "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" ], "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", "0", + "Elements as channels (sample based)", + "-1", "", + "", + "off", [ ], - "Dialog", - "Auto", - "off" + "Auto" ], "tabs":[ "Main", - "Signal Attributes", + "State Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 3, + 4 ] }, "viewer":{ @@ -243,7 +243,54 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8738:2899", + "className":"Simulink.DataTypeConversion", + "icon":"WebViewIcon3", + "name":"Data Type Conversion", + "label":"Data Type Conversion", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8738", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" + ], + "values":[ + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Real World Value (RWV)", + "Floor", + "off", + "-1" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"DataTypeConversion", "masktype":"" } }, @@ -305,58 +352,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8738:2899", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion", - "label":"Data Type Conversion", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8738", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8738:2898", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8738:2897", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"coef", - "label":"coef", + "name":"u", + "label":"u", "parent":"BLDCmotor_FOC_R2017b_fixdt:8738", "inspector":{ "params":[ @@ -379,7 +379,7 @@ "OutputFunctionCall" ], "values":[ - "2", + "1", "Port number", "[]", "[]", @@ -419,11 +419,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8738:2897", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8738:2898", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"u", - "label":"u", + "name":"coef", + "label":"coef", "parent":"BLDCmotor_FOC_R2017b_fixdt:8738", "inspector":{ "params":[ @@ -446,7 +446,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "2", "Port number", "[]", "[]", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8738_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8738_d.svg index 1d87427..60221be 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8738_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8738_d.svg @@ -10,6 +10,190 @@ + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + @@ -23,35 +207,35 @@ - + - + - + - + - + - + - + - + @@ -77,251 +261,11 @@ - + - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + sfix32_En20 @@ -343,19 +287,19 @@ - + - + - + - + @@ -381,11 +325,130 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + + + + + + + sfix16_En4 @@ -407,11 +470,11 @@ - + - + 2 @@ -429,11 +492,11 @@ - + - + coef @@ -444,11 +507,11 @@ - + - + ufix16_En16 @@ -458,69 +521,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - u - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -661,5 +661,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8743_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8743_d.json index 48461ca..a4a2d41 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8743_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8743_d.json @@ -97,86 +97,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8758", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_cos", - "label":"r_cos", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8754", "className":"Simulink.Interpolation_nD", @@ -258,6 +178,456 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9646", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_cos", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8755", + "className":"Simulink.Interpolation_nD", + "icon":"WebViewIcon3", + "name":"r_sin_M1", + "label":"r_sin_M1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "NumberOfTableDimensions", + "RequireIndexFractionAsBus", + "TableSpecification", + "TableSource", + "Table", + "InterpMethod", + "DiagnosticForOutOfRangeInput", + "ValidIndexMayReachLast", + "NumSelectionDims", + "RemoveProtectionIndex", + "TableDataTypeStr", + "TableMin", + "TableMax", + "OutDataTypeStr", + "OutMin", + "OutMax", + "InternalRulePriority", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ExtrapMethod", + "IntermediateResultsDataTypeStr", + "LookupTableObject", + "SampleTime" + ], + "values":[ + "1", + "off", + "Explicit values", + "Dialog", + "r_sin_M1", + "Flat", + "Error", + "on", + "0", + "on", + "Inherit: Same as output", + "[]", + "[]", + "fixdt(1,16,14)", + "[]", + "[]", + "Speed", + "off", + "Simplest", + "off", + "Clip", + "Inherit: Same as output", + "", + "-1" + ], + "tabs":[ + "Main", + "Data Types", + "-Other" + ], + "tabs_idx":[ + 0, + 10, + 20 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Interpolation_n-D", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9644", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_sin", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8748", + "className":"Simulink.PreLookup", + "icon":"WebViewIcon3", + "name":"a_elecAngle_XA", + "label":"a_elecAngle_XA", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "BreakpointsSpecification", + "BreakpointsDataSource", + "BreakpointsData", + "OutputSelection", + "IndexSearchMethod", + "ExtrapMethod", + "DiagnosticForOutOfRangeInput", + "RemoveProtectionInput", + "BreakpointDataTypeStr", + "BreakpointMin", + "BreakpointMax", + "IndexDataTypeStr", + "LockScale", + "BeginIndexSearchUsingPreviousIndexResult", + "BreakpointObject", + "BreakpointsFirstPoint", + "BreakpointsNumPoints", + "BreakpointsSpacing", + "FractionDataTypeStr", + "OutputBusDataTypeStr", + "RndMeth", + "SampleTime", + "UseLastBreakpoint" + ], + "values":[ + "Explicit values", + "Dialog", + "a_elecAngle_XA", + "Index only", + "Evenly spaced points", + "Clip", + "None", + "off", + "Inherit: Same as input", + "[]", + "[]", + "uint8", + "off", + "on", + "", + "10", + "11", + "10", + "fixdt(0,16,14)", + "Inherit: auto", + "Simplest", + "-1", + "off" + ], + "tabs":[ + "Main", + "Data Types", + "-Other" + ], + "tabs_idx":[ + 0, + 8, + 13 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"PreLookup", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9645", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_cos", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9643", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_sin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10676", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant", + "label":"Constant", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "uint8", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9639", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto8", + "label":"Goto8", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8758", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_cos", + "label":"r_cos", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8757", "className":"Simulink.Outport", @@ -338,182 +708,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8748", - "className":"Simulink.PreLookup", - "icon":"WebViewIcon3", - "name":"a_elecAngle_XA", - "label":"a_elecAngle_XA", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "BreakpointsSpecification", - "BreakpointsDataSource", - "BreakpointsData", - "OutputSelection", - "IndexSearchMethod", - "ExtrapMethod", - "DiagnosticForOutOfRangeInput", - "RemoveProtectionInput", - "BreakpointDataTypeStr", - "BreakpointMin", - "BreakpointMax", - "IndexDataTypeStr", - "LockScale", - "BeginIndexSearchUsingPreviousIndexResult", - "BreakpointObject", - "BreakpointsFirstPoint", - "BreakpointsNumPoints", - "BreakpointsSpacing", - "FractionDataTypeStr", - "OutputBusDataTypeStr", - "RndMeth", - "SampleTime", - "UseLastBreakpoint" - ], - "values":[ - "Explicit values", - "Dialog", - "a_elecAngle_XA", - "Index only", - "Evenly spaced points", - "Clip", - "None", - "off", - "Inherit: Same as input", - "[]", - "[]", - "uint8", - "off", - "on", - "", - "10", - "11", - "10", - "fixdt(0,16,14)", - "Inherit: auto", - "Simplest", - "-1", - "off" - ], - "tabs":[ - "Main", - "Data Types", - "-Other" - ], - "tabs_idx":[ - 0, - 8, - 13 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"PreLookup", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9644", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_sin", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9639", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9645", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_cos", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9640", "className":"Simulink.From", @@ -545,119 +739,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10676", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Constant", - "label":"Constant", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "uint8", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9643", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_sin", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9646", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_cos", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8744", "className":"Simulink.Inport", @@ -725,87 +806,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8755", - "className":"Simulink.Interpolation_nD", - "icon":"WebViewIcon3", - "name":"r_sin_M1", - "label":"r_sin_M1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8743", - "inspector":{ - "params":[ - "NumberOfTableDimensions", - "RequireIndexFractionAsBus", - "TableSpecification", - "TableSource", - "Table", - "InterpMethod", - "DiagnosticForOutOfRangeInput", - "ValidIndexMayReachLast", - "NumSelectionDims", - "RemoveProtectionIndex", - "TableDataTypeStr", - "TableMin", - "TableMax", - "OutDataTypeStr", - "OutMin", - "OutMax", - "InternalRulePriority", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ExtrapMethod", - "IntermediateResultsDataTypeStr", - "LookupTableObject", - "SampleTime" - ], - "values":[ - "1", - "off", - "Explicit values", - "Dialog", - "r_sin_M1", - "Flat", - "Error", - "on", - "0", - "on", - "Inherit: Same as output", - "[]", - "[]", - "fixdt(1,16,14)", - "[]", - "[]", - "Speed", - "off", - "Simplest", - "off", - "Clip", - "Inherit: Same as output", - "", - "-1" - ], - "tabs":[ - "Main", - "Data Types", - "-Other" - ], - "tabs_idx":[ - 0, - 10, - 20 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Interpolation_n-D", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8748#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8743_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8743_d.png index d49957a..43e60f0 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8743_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8743_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8743_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8743_d.svg index 3788b7d..56577f6 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8743_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8743_d.svg @@ -57,80 +57,56 @@ - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - r_cos - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - + + @@ -138,7 +114,7 @@ - + @@ -154,7 +130,7 @@ - + @@ -162,7 +138,7 @@ - + @@ -170,7 +146,7 @@ - + @@ -178,7 +154,7 @@ - + @@ -186,7 +162,7 @@ - + @@ -194,7 +170,7 @@ - + @@ -202,7 +178,7 @@ - + @@ -210,7 +186,7 @@ - + @@ -218,7 +194,7 @@ - + @@ -226,7 +202,7 @@ - + @@ -234,7 +210,7 @@ - + @@ -242,7 +218,7 @@ - + @@ -250,7 +226,7 @@ - + @@ -258,7 +234,7 @@ - + @@ -266,7 +242,7 @@ - + @@ -274,7 +250,7 @@ - + @@ -282,7 +258,7 @@ - + @@ -290,7 +266,7 @@ - + @@ -298,7 +274,7 @@ - + @@ -306,7 +282,7 @@ - + @@ -314,7 +290,7 @@ - + @@ -322,7 +298,7 @@ - + @@ -330,7 +306,7 @@ - + @@ -338,7 +314,7 @@ - + @@ -346,7 +322,7 @@ - + @@ -354,7 +330,7 @@ - + @@ -362,7 +338,7 @@ - + @@ -370,7 +346,7 @@ - + @@ -378,54 +354,30 @@ - - - - - - - - - - - - - - - - - - - - - - - - - + - + 1-D T(k,f) - + - + k1 - + - + f1 @@ -443,11 +395,11 @@ - + - + r_cos_M1 @@ -458,11 +410,11 @@ - + - + sfix16_En14 @@ -474,44 +426,429 @@ - - - + + + - - + + - - + + - - 1 + + [r_cos] - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1-D T(k,f) + + + + + + + + k1 + + + + + + + + f1 + + + + + + + - - + + - - + + - - r_sin + + r_sin_M1 + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_sin] + + + + + + + @@ -524,7 +861,7 @@ - + @@ -532,83 +869,83 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -634,11 +971,11 @@ - + - + a_elecAngle_XA @@ -649,11 +986,11 @@ - + - + uint8 @@ -663,72 +1000,6 @@ - - - - - - - - - - - - - - - - - - [r_sin] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - @@ -741,11 +1012,11 @@ - + - + [r_cos] @@ -763,11 +1034,11 @@ - + - + sfix16_En14 @@ -777,102 +1048,6 @@ - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - @@ -885,11 +1060,11 @@ - + - + [r_sin] @@ -907,11 +1082,11 @@ - + - + sfix16_En14 @@ -923,28 +1098,76 @@ - - - + + + - - + + - - + + - - [r_cos] + + 0 - + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + @@ -954,6 +1177,150 @@ + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + r_cos + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_sin + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + @@ -966,11 +1333,11 @@ - + - + 1 @@ -988,11 +1355,11 @@ - + - + a_elecAngle @@ -1003,11 +1370,11 @@ - + - + sfix16_En6 @@ -1017,373 +1384,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1-D T(k,f) - - - - - - - - k1 - - - - - - - - f1 - - - - - - - - - - - - - - - - - - - - - - r_sin_M1 - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - @@ -1538,5 +1538,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8866_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8866_d.json index 3ca23a1..e107374 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8866_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8866_d.json @@ -429,59 +429,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8876", - "className":"Simulink.MinMax", - "icon":"WebViewIcon3", - "name":"MinMax1", - "label":"MinMax1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8866", - "inspector":{ - "params":[ - "OutDataTypeStr", - "Function", - "InputSameDT", - "Inputs", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" - ], - "values":[ - "Inherit: Inherit via internal rule", - "min", - "on", - "1", - "off", - "[]", - "[]", - "Floor", - "-1", - "off", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"MinMax", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8877", "className":"Simulink.MinMax", @@ -535,6 +482,65 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8875", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain4", + "label":"Gain4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8866", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "2/sqrt(3)", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Floor", + "off", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8874", "className":"Simulink.Gain", @@ -654,111 +660,46 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8875", - "className":"Simulink.Gain", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8876", + "className":"Simulink.MinMax", "icon":"WebViewIcon3", - "name":"Gain4", - "label":"Gain4", + "name":"MinMax1", + "label":"MinMax1", "parent":"BLDCmotor_FOC_R2017b_fixdt:8866", "inspector":{ "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "2/sqrt(3)", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Floor", - "off", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8869", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Add", - "label":"Add", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8866", - "inspector":{ - "params":[ - "IconShape", - "Inputs", + "Function", "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", + "Inputs", "LockScale", + "OutMax", + "OutMin", "RndMeth", + "SampleTime", "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "ZeroCross" ], "values":[ - "rectangular", - "++", - "off", "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Floor", + "min", "on", "1", - "All dimensions", - "-1" + "off", + "[]", + "[]", + "Floor", + "-1", + "off", + "on" ], "tabs":[ - "Main", "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 10 + 1 ] }, "viewer":{ @@ -767,38 +708,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8878", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux4", - "label":"Mux4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8866", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "3", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", + "blocktype":"MinMax", "masktype":"" } }, @@ -861,6 +771,96 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8878", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux4", + "label":"Mux4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8866", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "3", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8869", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Add", + "label":"Add", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8866", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "rectangular", + "++", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Floor", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8870", "className":"Simulink.Sum", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8866_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8866_d.svg index 27d86e0..c5518ca 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8866_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8866_d.svg @@ -383,70 +383,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -459,19 +395,19 @@ - + - + - + - + @@ -497,107 +433,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1/2 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 0.5 - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -619,11 +459,11 @@ - + - + 2/sqrt(3) @@ -641,11 +481,11 @@ - + - + sfix16_En4 @@ -657,67 +497,43 @@ - - - + + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + 1/2 - - + + - + - - + + - + sfix16_En4 @@ -729,43 +545,107 @@ - - - + + + - - + + - - + + - - + + 0.5 - - + + - + - - + + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -787,11 +667,11 @@ - + - + sqrt(3)/2 @@ -809,11 +689,131 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1193,5 +1193,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8886_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8886_d.json index b63f5b9..dae2504 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8886_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8886_d.json @@ -569,166 +569,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8902", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8900", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8899", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_cos", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8896", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_cos", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8897", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8905", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8904", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -737,7 +582,7 @@ "IconDisplay" ], "values":[ - "r_sin", + "Vd", "local", "Tag" ], @@ -789,6 +634,99 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8902", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From8", + "label":"From8", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8901", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_sin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8900", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8895", "className":"Simulink.From", @@ -821,11 +759,42 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8891", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8899", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_cos", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8894", "className":"Simulink.Product", "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", + "name":"Divide4", + "label":"Divide4", "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", "inspector":{ "params":[ @@ -877,6 +846,101 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8905", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_sin", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8898", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8896", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_cos", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8892", "className":"Simulink.Product", @@ -934,6 +998,151 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8897", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8893", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide3", + "label":"Divide3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8891", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide1", + "label":"Divide1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8908", "className":"Simulink.Sum", @@ -993,215 +1202,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8893", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide3", - "label":"Divide3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8901", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_sin", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8904", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vd", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8898", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8894", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8886", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8889#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8886_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8886_d.svg index 9036aa2..fb7dba4 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8886_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8886_d.svg @@ -517,268 +517,28 @@ - - - + + + - - + + - + - + [Vd] - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_cos] - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_cos] - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_sin] - - - - - - + @@ -800,11 +560,11 @@ - + - + [Vq] @@ -823,275 +583,43 @@ - - + + - + - + - - [r_sin] + + [Vd] - + - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -1113,11 +641,11 @@ - + - + [r_sin] @@ -1135,11 +663,11 @@ - + - + sfix16_En14 @@ -1151,28 +679,228 @@ - - - + + + - - + + - - + + - - [Vd] + + [Vq] - + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_sin] + + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_cos] + + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_sin] + + + + + + @@ -1194,11 +922,11 @@ - + - + [Vd] @@ -1216,11 +944,11 @@ - + - + sfix16_En4 @@ -1232,51 +960,323 @@ - - - + + + - - + + - - + + - - - - - - - - - - + + [r_cos] - + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + sfix16_En4 @@ -1540,5 +1540,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8913_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8913_d.json index 02088f1..b353faa 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8913_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8913_d.json @@ -245,11 +245,11 @@ ] }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9014", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9013", "className":"Simulink.Outport", "icon":"WebViewIcon3", - "name":"iq_limProtErr", - "label":"iq_limProtErr", + "name":"iq_min", + "label":"iq_min", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -278,7 +278,7 @@ "VectorParamsAs1DForOutWhenUnconnected" ], "values":[ - "11", + "8", "Port number", "[]", "[]", @@ -291,87 +291,7 @@ "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":"BLDCmotor_FOC_R2017b_fixdt:10711", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_iqLimProtMax", - "label":"r_iqLimProtMax", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "9", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", + "-750", "off", "held", "off", @@ -484,86 +404,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9011", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"id_min", - "label":"id_min", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "-750", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9010", "className":"Simulink.Outport", @@ -644,6 +484,166 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10711", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_iqLimProtMax", + "label":"r_iqLimProtMax", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "9", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9011", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"id_min", + "label":"id_min", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "-750", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9007", "className":"Simulink.Outport", @@ -724,6 +724,183 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9005", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"n_max1", + "label":"n_max1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "n_max", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9002", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"i_max", + "label":"i_max", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "i_max", + "on", + "inf", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8999", + "className":"Simulink.PreLookup", + "icon":"WebViewIcon3", + "name":"Vq_max_XA", + "label":"Vq_max_XA", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "BreakpointsSpecification", + "BreakpointsDataSource", + "BreakpointsData", + "OutputSelection", + "IndexSearchMethod", + "ExtrapMethod", + "DiagnosticForOutOfRangeInput", + "RemoveProtectionInput", + "BreakpointDataTypeStr", + "BreakpointMin", + "BreakpointMax", + "IndexDataTypeStr", + "LockScale", + "BeginIndexSearchUsingPreviousIndexResult", + "BreakpointObject", + "BreakpointsFirstPoint", + "BreakpointsNumPoints", + "BreakpointsSpacing", + "FractionDataTypeStr", + "OutputBusDataTypeStr", + "RndMeth", + "SampleTime", + "UseLastBreakpoint" + ], + "values":[ + "Explicit values", + "Dialog", + "Vq_max_XA", + "Index only", + "Evenly spaced points", + "Clip", + "None", + "off", + "Inherit: Same as input", + "[]", + "[]", + "uint8", + "off", + "on", + "", + "10", + "11", + "10", + "fixdt(0,8,6)", + "Inherit: auto", + "Simplest", + "-1", + "off" + ], + "tabs":[ + "Main", + "Data Types", + "-Other" + ], + "tabs_idx":[ + 0, + 8, + 13 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"PreLookup", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8998", "className":"Simulink.Interpolation_nD", @@ -854,403 +1031,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9008", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"Vq_max", - "label":"Vq_max", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "900", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10565", - "className":"Simulink.SwitchCase", - "icon":"WebViewIcon3", - "name":"Switch Case", - "label":"Switch Case", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "CaseConditions", - "ShowDefaultCase", - "SampleTime", - "ZeroCross" - ], - "values":[ - "{VLT_MODE, SPD_MODE, TRQ_MODE}", - "off", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SwitchCase", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8975", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8974", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8972", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8976", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9006", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"Vd_max", - "label":"Vd_max", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "900", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10715", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto21", - "label":"Goto21", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_nLimProtMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10696", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto18", - "label":"Goto18", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iqAbs", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9009", "className":"Simulink.Outport", @@ -1332,11 +1112,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10713", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8976", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto20", - "label":"Goto20", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1345,7 +1125,40 @@ "IconDisplay" ], "values":[ - "iq_limProtErr", + "iq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8973", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_max", "local", "Tag" ], @@ -1398,11 +1211,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8962", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10727", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Goto23", + "label":"Goto23", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1411,7 +1224,7 @@ "IconDisplay" ], "values":[ - "VdPrev", + "r_nLimProtMax", "local", "Tag" ], @@ -1431,171 +1244,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9013", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"iq_min", - "label":"iq_min", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "8", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "-750", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10712", - "className":"Simulink.Outport", - "icon":"WebViewIcon3", - "name":"r_nLimProtMax", - "label":"r_nLimProtMax", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "10", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8969", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10715", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto16", - "label":"Goto16", + "name":"Goto21", + "label":"Goto21", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1604,7 +1257,7 @@ "IconDisplay" ], "values":[ - "z_ctrlMod", + "Vq_nLimProtMax", "local", "Tag" ], @@ -1624,11 +1277,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8967", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10713", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto14", - "label":"Goto14", + "name":"Goto20", + "label":"Goto20", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -1637,7 +1290,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "iq_limProtErr", "local", "Tag" ], @@ -1656,98 +1309,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10718", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto22", - "label":"Goto22", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_iqLimProtMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8958", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain4", - "label":"Gain4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8970", "className":"Simulink.Goto", @@ -1781,6 +1342,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10694", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto17", + "label":"Goto17", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:8968", "className":"Simulink.Goto", @@ -1815,137 +1409,21 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8957", - "className":"Simulink.Gain", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8963", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Gain3", - "label":"Gain3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8956", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain1", - "label":"Gain1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8955", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From9", - "label":"From9", + "name":"Goto10", + "label":"Goto10", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "iq_min", + "n_max", + "local", "Tag" ], "tabs":[ @@ -1959,273 +1437,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8954", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8953", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8951", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8950", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10709", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From30", - "label":"From30", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_iqLimProtMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9002", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"i_max", - "label":"i_max", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "i_max", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10708", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From29", - "label":"From29", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8944", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_nLimProtMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -2263,428 +1475,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10780", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10564", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From23", - "label":"From23", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlMod", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8959", - "className":"Simulink.Gain", - "icon":"WebViewIcon3", - "name":"Gain5", - "label":"Gain5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Gain", - "Multiplication", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "ParamMin", - "ParamMax", - "ParamDataTypeStr", - "SampleTime" - ], - "values":[ - "-1", - "Element-wise(K.*u)", - "[]", - "[]", - "Inherit: Same as input", - "off", - "Zero", - "off", - "[]", - "[]", - "Inherit: Same as input", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 8, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Gain", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10602", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"Torque_Mode_Protection", - "label":"Torque_Mode_Protection", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10700", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From28", - "label":"From28", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10681", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From21", - "label":"From21", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9733", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8935", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10675", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Constant1", - "label":"Constant1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "uint8", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10727", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8961", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto23", - "label":"Goto23", + "name":"Goto", + "label":"Goto", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -2693,729 +1488,7 @@ "IconDisplay" ], "values":[ - "r_nLimProtMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8939", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_limProtErr", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8919", - "className":"Simulink.Abs", - "icon":"WebViewIcon3", - "name":"Abs5", - "label":"Abs5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime", - "ZeroCross" - ], - "values":[ - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "-1", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Abs", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9005", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"n_max1", - "label":"n_max1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "n_max", - "on", - "inf", - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10680", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10816", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10684", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From25", - "label":"From25", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10693", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"n_motAbs", - "label":"n_motAbs", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "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":"BLDCmotor_FOC_R2017b_fixdt:9732", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "*/", - "Element-wise(.*)", - "off", - "[]", - "[]", - "fixdt(0,16,16)", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8917", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"iq", - "label":"iq", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10685", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From26", - "label":"From26", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8952", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_TgtAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10695", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"iqAbs", - "label":"iqAbs", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8963", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto10", - "label":"Goto10", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8916", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"id_TgtAbs", - "label":"id_TgtAbs", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10674", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"Constant", - "label":"Constant", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "uint8", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10694", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_motAbs", + "Vd_max", "local", "Tag" ], @@ -3532,11 +1605,44 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10682", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8969", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto16", + "label":"Goto16", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8954", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From22", - "label":"From22", + "name":"From8", + "label":"From8", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3544,7 +1650,7 @@ "IconDisplay" ], "values":[ - "iq_min", + "iq_max", "Tag" ], "tabs":[ @@ -3563,109 +1669,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8946", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8915", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"VdPrev", - "label":"VdPrev", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8999", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9004", "className":"Simulink.PreLookup", "icon":"WebViewIcon3", - "name":"Vq_max_XA", - "label":"Vq_max_XA", + "name":"iq_maxSca_XA", + "label":"iq_maxSca_XA", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3696,7 +1704,7 @@ "values":[ "Explicit values", "Dialog", - "Vq_max_XA", + "iq_maxSca_XA", "Index only", "Evenly spaced points", "Clip", @@ -3740,11 +1748,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8934", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8953", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From7", + "label":"From7", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -3752,7 +1760,340 @@ "IconDisplay" ], "values":[ - "VdPrev", + "id_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8955", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From9", + "label":"From9", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10565", + "className":"Simulink.SwitchCase", + "icon":"WebViewIcon3", + "name":"Switch Case", + "label":"Switch Case", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "CaseConditions", + "ShowDefaultCase", + "SampleTime", + "ZeroCross" + ], + "values":[ + "{VLT_MODE, SPD_MODE, TRQ_MODE}", + "off", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SwitchCase", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8952", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_TgtAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8958", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain4", + "label":"Gain4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "-1", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Same as input", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8951", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8950", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9006", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vd_max", + "label":"Vd_max", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "900", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10710", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From31", + "label":"From31", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", "Tag" ], "tabs":[ @@ -3801,6 +2142,1409 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10684", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From25", + "label":"From25", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10700", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From28", + "label":"From28", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8957", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain3", + "label":"Gain3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "-1", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Same as input", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8975", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10602", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"Torque_Mode_Protection", + "label":"Torque_Mode_Protection", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10681", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From21", + "label":"From21", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10680", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From20", + "label":"From20", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9014", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"iq_limProtErr", + "label":"iq_limProtErr", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "11", + "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":"BLDCmotor_FOC_R2017b_fixdt:8946", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10718", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto22", + "label":"Goto22", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_iqLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10699", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From27", + "label":"From27", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iqAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10816", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10780", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_motAbs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10682", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From22", + "label":"From22", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10712", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"r_nLimProtMax", + "label":"r_nLimProtMax", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "10", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8944", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From18", + "label":"From18", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8956", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain1", + "label":"Gain1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "-1", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Same as input", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8972", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8934", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "VdPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8974", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9733", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide1", + "label":"Divide1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(1,16,4)", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10675", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant1", + "label":"Constant1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "uint8", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9017", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vq_nLimProtMax", + "label":"Vq_nLimProtMax", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "12", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9732", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide4", + "label":"Divide4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "*/", + "Element-wise(.*)", + "off", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10693", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"n_motAbs", + "label":"n_motAbs", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "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":"BLDCmotor_FOC_R2017b_fixdt:8935", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8962", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "VdPrev", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8917", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq", + "label":"iq", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8919", + "className":"Simulink.Abs", + "icon":"WebViewIcon3", + "name":"Abs5", + "label":"Abs5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime", + "ZeroCross" + ], + "values":[ + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "-1", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Abs", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8916", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"id_TgtAbs", + "label":"id_TgtAbs", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10683", "className":"Simulink.From", @@ -3832,37 +3576,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10361", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9003", "className":"Simulink.Interpolation_nD", @@ -3945,19 +3658,21 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10710", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10696", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"From31", - "label":"From31", + "name":"Goto18", + "label":"Goto18", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "r_nLimProtMax", + "iqAbs", + "local", "Tag" ], "tabs":[ @@ -3971,16 +3686,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8914", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8915", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"z_ctrlMod", - "label":"z_ctrlMod", + "name":"VdPrev", + "label":"VdPrev", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -4003,7 +3718,7 @@ "OutputFunctionCall" ], "values":[ - "1", + "3", "Port number", "[]", "[]", @@ -4043,209 +3758,32 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9017", - "className":"Simulink.Outport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10674", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Vq_nLimProtMax", - "label":"Vq_nLimProtMax", + "name":"Constant", + "label":"Constant", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ - "Port", - "IconDisplay", + "Value", + "VectorParams1D", + "SampleTime", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" + "FramePeriod" ], "values":[ - "12", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9004", - "className":"Simulink.PreLookup", - "icon":"WebViewIcon3", - "name":"iq_maxSca_XA", - "label":"iq_maxSca_XA", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "BreakpointsSpecification", - "BreakpointsDataSource", - "BreakpointsData", - "OutputSelection", - "IndexSearchMethod", - "ExtrapMethod", - "DiagnosticForOutOfRangeInput", - "RemoveProtectionInput", - "BreakpointDataTypeStr", - "BreakpointMin", - "BreakpointMax", - "IndexDataTypeStr", - "LockScale", - "BeginIndexSearchUsingPreviousIndexResult", - "BreakpointObject", - "BreakpointsFirstPoint", - "BreakpointsNumPoints", - "BreakpointsSpacing", - "FractionDataTypeStr", - "OutputBusDataTypeStr", - "RndMeth", - "SampleTime", - "UseLastBreakpoint" - ], - "values":[ - "Explicit values", - "Dialog", - "iq_maxSca_XA", - "Index only", - "Evenly spaced points", - "Clip", - "None", - "off", - "Inherit: Same as input", + "on", + "inf", "[]", "[]", "uint8", "off", - "on", - "", - "10", - "11", - "10", - "fixdt(0,8,6)", - "Inherit: auto", - "Simplest", - "-1", - "off" - ], - "tabs":[ - "Main", - "Data Types", - "-Other" - ], - "tabs_idx":[ - 0, - 8, - 13 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"PreLookup", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10704", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_inpTgtScaAbs", - "label":"r_inpTgtScaAbs", - "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "inf" ], "tabs":[ "Main", @@ -4254,8 +3792,8 @@ ], "tabs_idx":[ 0, - 2, - 11 + 3, + 7 ] }, "viewer":{ @@ -4264,7 +3802,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"Constant", "masktype":"" } }, @@ -4366,11 +3904,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10699", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10708", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From27", - "label":"From27", + "name":"From29", + "label":"From29", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -4378,7 +3916,7 @@ "IconDisplay" ], "values":[ - "iqAbs", + "r_inpTgtScaAbs", "Tag" ], "tabs":[ @@ -4397,11 +3935,475 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8961", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10695", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iqAbs", + "label":"iqAbs", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10704", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtScaAbs", + "label":"r_inpTgtScaAbs", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10361", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10564", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From23", + "label":"From23", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlMod", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8959", + "className":"Simulink.Gain", + "icon":"WebViewIcon3", + "name":"Gain5", + "label":"Gain5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Gain", + "Multiplication", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "ParamMin", + "ParamMax", + "ParamDataTypeStr", + "SampleTime" + ], + "values":[ + "-1", + "Element-wise(K.*u)", + "[]", + "[]", + "Inherit: Same as input", + "off", + "Zero", + "off", + "[]", + "[]", + "Inherit: Same as input", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 8, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Gain", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8939", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_limProtErr", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9008", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vq_max", + "label":"Vq_max", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "900", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10685", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From26", + "label":"From26", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "iq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8914", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlMod", + "label":"z_ctrlMod", + "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:8967", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", + "name":"Goto14", + "label":"Goto14", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ @@ -4410,7 +4412,7 @@ "IconDisplay" ], "values":[ - "Vd_max", + "Vq_max", "local", "Tag" ], @@ -4430,21 +4432,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8973", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10709", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"From30", + "label":"From30", "parent":"BLDCmotor_FOC_R2017b_fixdt:8913", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "iq_max", - "local", + "r_iqLimProtMax", "Tag" ], "tabs":[ @@ -4458,7 +4458,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8913_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8913_d.png index 7ca5b7c..1aaf116 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8913_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8913_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8913_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8913_d.svg index 9c41cb3..db5ca64 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8913_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8913_d.svg @@ -236,11 +236,11 @@ - - + + - + @@ -250,78 +250,30 @@ - - 11 + + 8 - + - - + + - + - - iq_limProtErr - - - - - - - - - - - - - - - - - - - - - - - - - - 9 - - - - - - - - - - - - - - - - - - - - - - r_iqLimProtMax + + iq_min @@ -342,11 +294,11 @@ - + - + 7 @@ -364,11 +316,11 @@ - + - + iq_max @@ -378,54 +330,6 @@ - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - id_min - - - - - - - - @@ -438,11 +342,11 @@ - + - + 5 @@ -460,11 +364,11 @@ - + - + id_max @@ -474,6 +378,102 @@ + + + + + + + + + + + + + + + + + + 9 + + + + + + + + + + + + + + + + + + + + + + r_iqLimProtMax + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + id_min + + + + + + + + @@ -522,296 +522,271 @@ + + + + + + + + + + + + + + + + + + n_max + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + i_max + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Vq_max_XA + + + + + + + + + + + + + + + uint8 + + + + + + + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - + + @@ -819,30 +794,294 @@ - + - + - - 1-D T(k,f) + + - + - - k1 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1-D T(k,f) + + + + + + + + k1 + + + - + f1 @@ -860,11 +1099,11 @@ - + - + Vq_max_M1 @@ -875,11 +1114,11 @@ - + - + sfix16_En4 @@ -901,11 +1140,11 @@ - + - + Vd_max @@ -923,11 +1162,11 @@ - + - + sfix16_En4 @@ -937,402 +1176,6 @@ - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - Vq_max - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - case [ 1 ]: - - - - - - - - case [ 2 ]: - - - - - - - - case [ 3 ]: - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - [id_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [id_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - Vd_max - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iqAbs] - - - - - - - - - - - - - - - @@ -1345,11 +1188,11 @@ - + - + 4 @@ -1367,11 +1210,11 @@ - + - + Vq_min @@ -1383,28 +1226,61 @@ - - + + - + - - + + - - [iq_limProtErr] + + [iq] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + @@ -1426,11 +1302,11 @@ - + - + [Vd_min] @@ -1449,190 +1325,28 @@ - - + + - + - - - - - - [VdPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8 - - - - - - - - - - - - - - - - - - - - - - iq_min - - - - - - - - - - - - - - - - - - - - - - - - - - 10 - - - - - - - - - - - - - - - - - - - - - - r_nLimProtMax - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - [Vq_max] + + [r_nLimProtMax] - + @@ -1644,28 +1358,28 @@ - - + + - + - + - - [r_iqLimProtMax] + + [Vq_nLimProtMax] - + @@ -1677,44 +1391,29 @@ - - - + + + - - + + - - + + - - -1 + + [iq_limProtErr] - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -1735,11 +1434,11 @@ - + - + [id_TgtAbs] @@ -1756,6 +1455,39 @@ + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + @@ -1791,524 +1523,29 @@ - - - + + + - - + + - + - - -1 + + [n_max] - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_iqLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - i_max - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtScaAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -2329,11 +1566,11 @@ - + - + [r_inpTgtScaAbs] @@ -2352,1421 +1589,28 @@ - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlMod] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - -1 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - n_motAbs - - - - - - - - n_max - - - - - - - - Vq_max - - - - - - - - Vq_nLimProtMax - - - - - - - - case: { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Torque_Mode_Protection - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - + + - + - + - - [r_nLimProtMax] + + [Vd_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_limProtErr] - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - n_max - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - n_motAbs - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - iq - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_TgtAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - iqAbs - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - id_TgtAbs - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motAbs] - - - - - - + @@ -3780,81 +1624,81 @@ - + - + - + - + - + r_inpTgtScaAbs - + - + iqAbs - + - + iq_max - + - + n_motAbs - + - + n_max - + - + r_iqLimProtMax - + - + r_nLimProtMax - + - + case: { } @@ -3862,7 +1706,7 @@ - + @@ -3875,7 +1719,7 @@ - + @@ -3884,11 +1728,11 @@ - + - + Voltage_Mode_Protection @@ -3896,7 +1740,7 @@ - + @@ -3905,11 +1749,11 @@ - + - + action @@ -3917,7 +1761,7 @@ - + @@ -3926,11 +1770,11 @@ - + - + sfix16_En4 @@ -3938,7 +1782,7 @@ - + @@ -3947,11 +1791,11 @@ - + - + sfix16_En4 @@ -3963,49 +1807,82 @@ - + - + - - + + - - + + - - + + - - [iq_min] + + [z_ctrlMod] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + - + - - + + - + sfix16_En4 @@ -4015,983 +1892,11 @@ - - - - - - - - - - - - - - - - - - [Vd_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - VdPrev - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Vq_max_XA - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [VdPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1-D T(k,f) - - - - - - - - k1 - - - - - - - - f1 - - - - - - - - - - - - - - - - - - - - - - iq_maxSca_M1 - - - - - - - - - - - - - - - ufix16_En16 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - z_ctrlMod - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 12 - - - - - - - - - - - - - - - - - - - - - - Vq_nLimProtMax - - - - - - - - - + @@ -4999,83 +1904,83 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -5101,11 +2006,11 @@ - + - + iq_maxSca_XA @@ -5116,11 +2021,11 @@ - + - + uint8 @@ -5132,58 +2037,481 @@ - - - + + + - - + + - - + + - - 2 + + [id_min] - + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + u1 + + + + + + + + case [ 1 ]: + + + + + + + + case [ 2 ]: + + + + + + + + case [ 3 ]: + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [id_TgtAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + -1 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + - - + + - - + + - - r_inpTgtScaAbs + + Vd_max + + + + + + + + + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + + - + - - + + - + sfix16_En4 @@ -5193,11 +2521,2191 @@ + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + -1 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + n_motAbs + + + + + + + + n_max + + + + + + + + Vq_max + + + + + + + + Vq_nLimProtMax + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Torque_Mode_Protection + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 11 + + + + + + + + + + + + + + + + + + + + + + iq_limProtErr + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iqAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 10 + + + + + + + + + + + + + + + + + + + + + + r_nLimProtMax + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + -1 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VdPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 12 + + + + + + + + + + + + + + + + + + + + + + Vq_nLimProtMax + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + n_motAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [VdPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + iq + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + id_TgtAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 1-D T(k,f) + + + + + + + + k1 + + + + + + + + f1 + + + + + + + + + + + + + + + + + + + + + + iq_maxSca_M1 + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + [iqAbs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + VdPrev + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + - + @@ -5211,43 +4719,43 @@ - + - + iq - + - + iq_max - + - + iq_min - + - + iq_limProtErr - + - + case: { } @@ -5277,11 +4785,11 @@ - + - + Speed_Mode_Protection @@ -5298,11 +4806,11 @@ - + - + action @@ -5319,11 +4827,11 @@ - + - + sfix32_En20 @@ -5335,49 +4843,49 @@ - + - + - + - + - - [iqAbs] + + [r_inpTgtScaAbs] - + - + - - + + - + sfix16_En4 @@ -5389,28 +4897,505 @@ - - - + + + - - + + - - + + - - [Vd_max] + + 6 - + + + + + + + + + + + + + + + + + iqAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtScaAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlMod] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + -1 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_limProtErr] + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + Vq_max + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + z_ctrlMod + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + @@ -5422,29 +5407,44 @@ - - - + + + - - + + - - + + - - [iq_max] + + [r_iqLimProtMax] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -5706,10 +5706,10 @@ - + - + @@ -6359,5 +6359,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9029_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9029_d.json index d3bc21c..fe07140 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9029_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9029_d.json @@ -128,6 +128,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9031", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9029", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "reset", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9030", "className":"Simulink.Inport", @@ -195,37 +226,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9031", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9029", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "reset", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9030#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9029_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9029_d.svg index 274b207..79434c9 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9029_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9029_d.svg @@ -86,69 +86,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - r_inpTgtSca - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -161,11 +98,11 @@ - + - + default: { } @@ -183,11 +120,11 @@ - + - + Action Port @@ -197,6 +134,69 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -213,5 +213,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9045_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9045_d.json index 8d1b48b..999b070 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9045_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9045_d.json @@ -476,317 +476,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9064", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto26", - "label":"Goto26", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_sin", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9062", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_cos", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9061", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_sin", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9058", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_apha", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9055", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_cos", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9054", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_sin", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9065", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "i_beta", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9053", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide4", - "label":"Divide4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9060", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_beta", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9066", "className":"Simulink.Sum", @@ -847,51 +536,27 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9051", - "className":"Simulink.Product", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9065", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" + "i_beta", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 9 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -899,7 +564,40 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Product", + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9063", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "i_apha", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", "masktype":"" } }, @@ -962,6 +660,70 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9064", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto26", + "label":"Goto26", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_sin", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9061", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_sin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9059", "className":"Simulink.From", @@ -993,6 +755,220 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9060", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_beta", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9057", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_beta", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9058", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_apha", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9053", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide4", + "label":"Divide4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9062", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_cos", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9056", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "i_apha", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9052", "className":"Simulink.Product", @@ -1050,68 +1026,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9057", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_beta", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9056", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "i_apha", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9050", "className":"Simulink.Product", @@ -1170,21 +1084,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9063", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9055", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", + "name":"From1", + "label":"From1", "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "i_apha", - "local", + "r_cos", "Tag" ], "tabs":[ @@ -1198,7 +1110,95 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9054", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_sin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9051", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9045", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", "masktype":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9045_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9045_d.svg index 07ac22b..42b5079 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9045_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9045_d.svg @@ -412,28 +412,100 @@ - - - + + + - - + + - + - - [r_sin] + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [i_beta] + + + + + + @@ -445,28 +517,125 @@ - - + + - + - + - - [r_cos] + + [i_apha] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_sin] + + + + + + @@ -488,11 +657,11 @@ - + - + [r_sin] @@ -510,11 +679,11 @@ - + - + sfix16_En14 @@ -524,479 +693,6 @@ - - - - - - - - - - - - - - - - - - [i_apha] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_cos] - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_sin] - - - - - - - - - - - - - - - - - - - - - - sfix16_En14 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_beta] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [i_beta] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -1009,11 +705,11 @@ - + - + [r_cos] @@ -1031,11 +727,11 @@ - + - + sfix16_En14 @@ -1047,51 +743,43 @@ - - - + + + - - + + - - + + - - - - - - - - - - + + [i_beta] - - + + - + - - + + - + sfix16_En4 @@ -1113,11 +801,11 @@ - + - + [i_beta] @@ -1135,11 +823,11 @@ - + - + sfix16_En4 @@ -1149,6 +837,143 @@ + + + + + + + + + + + + + + + + + + [i_apha] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_cos] + + + + + + + + + + + + + + + @@ -1161,11 +986,11 @@ - + - + [i_apha] @@ -1183,11 +1008,67 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1209,19 +1090,19 @@ - + - + - + - + @@ -1239,11 +1120,11 @@ - + - + sfix16_En4 @@ -1255,29 +1136,148 @@ - - - + + + - - + + - - + + - - [i_apha] + + [r_cos] - - + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_sin] + + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1540,5 +1540,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9074_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9074_d.json index 91238d0..12cfd19 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9074_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9074_d.json @@ -97,6 +97,104 @@ "finder":[ ] }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11534", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"n_cruiseMotTgt", + "label":"n_cruiseMotTgt", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "n_cruiseMotTgt", + "on", + "inf", + "[]", + "[]", + "int16", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9105", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_nKp", + "label":"cf_nKp", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_nKp", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,12)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9106", "className":"Simulink.Outport", @@ -178,81 +276,40 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11534", - "className":"Simulink.Constant", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11676", + "className":"Simulink.Switch", "icon":"WebViewIcon3", - "name":"n_cruiseMotTgt", - "label":"n_cruiseMotTgt", + "name":"Switch4", + "label":"Switch4", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", + "Criteria", + "InputSameDT", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "FramePeriod" + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" ], "values":[ - "n_cruiseMotTgt", - "on", - "inf", - "[]", - "[]", - "int16", + "u2 ~= 0", "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11677", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant3", - "label":"constant3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", "[]", "[]", "Inherit: Inherit via back propagation", "off", - "inf" + "Zero", + "off", + "off", + "-1", + "0", + "on" ], "tabs":[ "Main", @@ -261,8 +318,8 @@ ], "tabs_idx":[ 0, - 3, - 7 + 1, + 9 ] }, "viewer":{ @@ -271,105 +328,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9105", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_nKp", - "label":"cf_nKp", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "cf_nKp", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,12)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9104", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_nKi", - "label":"cf_nKi", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "cf_nKi", - "off", - "inf", - "[]", - "[]", - "fixdt(0,16,16)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", + "blocktype":"Switch", "masktype":"" } }, @@ -431,115 +390,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9101", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum3", - "label":"Sum3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "round", - "|+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11674", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator3", - "label":"Relational Operator3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "~=", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11672", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11671", "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"Mux1", - "label":"Mux1", + "name":"Mux", + "label":"Mux", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -712,22 +567,20 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11680", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11673", + "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", + "name":"Mux2", + "label":"Mux2", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Inputs", + "DisplayOption" ], "values":[ - "Vq_minSpd", - "local", - "Tag" + "2", + "bar" ], "tabs":[ "Parameter Attributes" @@ -740,27 +593,25 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"Mux", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11564", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11672", + "className":"Simulink.Mux", "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", + "name":"Mux1", + "label":"Mux1", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Inputs", + "DisplayOption" ], "values":[ - "n_cruiseMotTgt", - "local", - "Tag" + "2", + "bar" ], "tabs":[ "Parameter Attributes" @@ -773,40 +624,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11511", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "b_cruiseCtrlEna", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", + "blocktype":"Mux", "masktype":"" } }, @@ -843,39 +661,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9094", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_mot", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9093", "className":"Simulink.Goto", @@ -943,47 +728,25 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11669", - "className":"Simulink.MinMax", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11500", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"MinMax3", - "label":"MinMax3", + "name":"From42", + "label":"From42", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "OutDataTypeStr", - "Function", - "InputSameDT", - "Inputs", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" + "GotoTag", + "IconDisplay" ], "values":[ - "Inherit: Inherit via internal rule", - "max", - "off", - "2", - "off", - "[]", - "[]", - "Floor", - "-1", - "off", - "on" + "b_cruiseCtrlEna", + "Tag" ], "tabs":[ - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 1 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -991,45 +754,47 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"MinMax", + "blocktype":"From", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11676", - "className":"Simulink.Switch", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9101", + "className":"Simulink.Sum", "icon":"WebViewIcon3", - "name":"Switch4", - "label":"Switch4", + "name":"Sum3", + "label":"Sum3", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "Criteria", + "IconShape", + "Inputs", "InputSameDT", + "AccumDataTypeStr", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", "RndMeth", "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" + "CollapseDim", + "CollapseMode", + "SampleTime" ], "values":[ - "u2 ~= 0", + "round", + "|+-", "off", + "Inherit: Inherit via internal rule", "[]", "[]", - "Inherit: Inherit via back propagation", + "Inherit: Inherit via internal rule", "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" + "Simplest", + "on", + "1", + "All dimensions", + "-1" ], "tabs":[ "Main", @@ -1038,8 +803,8 @@ ], "tabs_idx":[ 0, - 1, - 9 + 2, + 10 ] }, "viewer":{ @@ -1048,16 +813,47 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Switch", + "blocktype":"Sum", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9091", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11667", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From18", + "label":"From18", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11511", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -1066,7 +862,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "b_cruiseCtrlEna", "local", "Tag" ], @@ -1085,6 +881,132 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11665", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_cruiseMotTgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11480", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto12", + "label":"Goto12", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "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":"BLDCmotor_FOC_R2017b_fixdt:11659", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9088", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From37", + "label":"From37", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "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":"BLDCmotor_FOC_R2017b_fixdt:11679", "className":"Simulink.Goto", @@ -1119,11 +1041,135 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11665", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11481", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "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":"BLDCmotor_FOC_R2017b_fixdt:11658", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11657", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11664", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From17", + "label":"From17", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_cruiseCtrlEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11663", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From16", + "label":"From16", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -1181,11 +1227,42 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11565", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9082", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "reset", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9089", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", + "name":"From38", + "label":"From38", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -1193,7 +1270,7 @@ "IconDisplay" ], "values":[ - "n_cruiseMotTgt", + "Vq_maxSpd", "Tag" ], "tabs":[ @@ -1211,256 +1288,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11673", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux2", - "label":"Mux2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "2", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9088", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From37", - "label":"From37", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "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":"BLDCmotor_FOC_R2017b_fixdt:11658", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11500", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From42", - "label":"From42", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_cruiseCtrlEna", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11671", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux", - "label":"Mux", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "2", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11660", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "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":"BLDCmotor_FOC_R2017b_fixdt:9087", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From36", - "label":"From36", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_mot", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11678", - "className":"Simulink.Demux", - "icon":"WebViewIcon3", - "name":"Demux", - "label":"Demux", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "Outputs", - "DisplayOption", - "BusSelectionMode" - ], - "values":[ - "2", - "bar", - "off" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Demux", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11501", "className":"Simulink.Switch", @@ -1519,11 +1346,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11659", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11662", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", + "name":"From15", + "label":"From15", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -1531,71 +1358,7 @@ "IconDisplay" ], "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11480", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "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":"BLDCmotor_FOC_R2017b_fixdt:11481", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "VqFinPrev", + "Vq_min", "Tag" ], "tabs":[ @@ -1681,25 +1444,43 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9082", - "className":"Simulink.ActionPort", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9104", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"cf_nKi", + "label":"cf_nKi", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "reset", - "Only when execution is resumed" + "cf_nKi", + "off", + "inf", + "[]", + "[]", + "fixdt(0,16,16)", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1707,30 +1488,48 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11666", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11677", + "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", + "name":"constant3", + "label":"constant3", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" ], "values":[ - "r_inpTgtSca", - "Tag" + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 3, + 7 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1738,16 +1537,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Constant", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11657", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9087", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", + "name":"From36", + "label":"From36", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -1755,7 +1554,7 @@ "IconDisplay" ], "values":[ - "Vq_min", + "n_mot", "Tag" ], "tabs":[ @@ -1841,11 +1640,130 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11663", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11669", + "className":"Simulink.MinMax", + "icon":"WebViewIcon3", + "name":"MinMax3", + "label":"MinMax3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" + ], + "values":[ + "Inherit: Inherit via internal rule", + "max", + "off", + "2", + "off", + "[]", + "[]", + "Floor", + "-1", + "off", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"MinMax", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9091", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9094", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_mot", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11565", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", + "name":"From4", + "label":"From4", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -1871,6 +1789,182 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11674", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator3", + "label":"Relational Operator3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "~=", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11660", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From12", + "label":"From12", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "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":"BLDCmotor_FOC_R2017b_fixdt:9081", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq_limProtErr", + "label":"iq_limProtErr", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11678", + "className":"Simulink.Demux", + "icon":"WebViewIcon3", + "name":"Demux", + "label":"Demux", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "Outputs", + "DisplayOption", + "BusSelectionMode" + ], + "values":[ + "2", + "bar", + "off" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Demux", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11661", "className":"Simulink.From", @@ -1970,66 +2064,21 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11535", - "className":"Simulink.DataTypeConversion", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11680", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Data Type Conversion2", - "label":"Data Type Conversion2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "fixdt(1,16,4)", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11667", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From18", - "label":"From18", + "name":"Goto8", + "label":"Goto8", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "Vq_min", + "Vq_minSpd", + "local", "Tag" ], "tabs":[ @@ -2043,16 +2092,183 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11664", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9077", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vq_min", + "label":"Vq_min", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9075", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11564", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_cruiseMotTgt", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10714", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From17", - "label":"From17", + "name":"From", + "label":"From", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -2060,7 +2276,7 @@ "IconDisplay" ], "values":[ - "b_cruiseCtrlEna", + "iq_limProtErr", "Tag" ], "tabs":[ @@ -2146,145 +2362,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9081", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"iq_limProtErr", - "label":"iq_limProtErr", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9077", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Vq_min", - "label":"Vq_min", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10714", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11666", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From", - "label":"From", + "name":"From13", + "label":"From13", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ @@ -2292,7 +2374,7 @@ "IconDisplay" ], "values":[ - "iq_limProtErr", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -2311,122 +2393,40 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11662", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11535", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", + "name":"Data Type Conversion2", + "label":"Data Type Conversion2", "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9089", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From38", - "label":"From38", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_maxSpd", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9075", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9074", - "inspector":{ - "params":[ - "Port", - "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "1", - "Port number", "[]", "[]", - "Inherit: auto", + "fixdt(1,16,4)", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "Real World Value (RWV)", + "Floor", "off", - "", - "on", - "off", - "off", - "off" + "-1" ], "tabs":[ - "Main", - "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 7 ] }, "viewer":{ @@ -2435,7 +2435,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"DataTypeConversion", "masktype":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9074_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9074_d.svg index 4defd79..3193f0d 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9074_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9074_d.svg @@ -65,54 +65,6 @@ - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - Vq_Spd - - - - - - - - @@ -125,11 +77,11 @@ - + - + n_cruiseMotTgt @@ -147,11 +99,11 @@ - + - + n_cruiseMotTgt @@ -162,11 +114,11 @@ - + - + int16 @@ -176,54 +128,6 @@ - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -236,11 +140,11 @@ - + - + cf_nKp @@ -258,11 +162,11 @@ - + - + ufix16_En12 @@ -274,44 +178,236 @@ - - - + + + - - + + - - + + - - cf_nKi + + 1 - - + + + + + + + + + + + + + + + + + Vq_Spd + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + - - + + - - + + - - ufix16_En16 + + sfix16_En4 @@ -324,140 +420,20 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -465,14 +441,134 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + > 0 @@ -490,11 +586,11 @@ - + - + sfix16_En4 @@ -506,171 +602,43 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - + + - + - - + + - - + + - + - + - - + + - + sfix16_En4 @@ -684,7 +652,7 @@ - + @@ -692,75 +660,75 @@ - + - + err - + - + P - + - + I - + - + init - + - + satMax - + - + satMin - + - + ext_limProt - + - + out - + - + PI(z) @@ -778,11 +746,11 @@ - + - + PI_clamp_fixdt @@ -793,11 +761,11 @@ - + - + sfix16_En4 @@ -805,29 +773,29 @@ - + - + - + - + - + - + @@ -843,7 +811,7 @@ - + @@ -851,19 +819,19 @@ - + - + - + - + @@ -889,11 +857,11 @@ - + - + sfix16_En4 @@ -905,29 +873,44 @@ - - - + + + - - + + - - + + - - [Vq_minSpd] + + - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -938,62 +921,44 @@ - - - + + + - - + + - - + + - - [n_cruiseMotTgt] + + - - + + - - - - - - - - - - - - - - - + + + + - - + + - - [b_cruiseCtrlEna] - - - - - - - + + sfix16_En4 @@ -1014,11 +979,11 @@ - + - + [iq_limProtErr] @@ -1035,39 +1000,6 @@ - - - - - - - - - - - - - - - - - - [n_mot] - - - - - - - - - - - - - - - @@ -1080,11 +1012,11 @@ - + - + [Vq_min] @@ -1113,11 +1045,11 @@ - + - + [r_inpTgtSca] @@ -1134,11 +1066,1308 @@ + + + + + + + + + + + + + + + + + + [b_cruiseCtrlEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cruiseCtrlEna] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_cruiseMotTgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_maxSpd] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_cruiseCtrlEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [n_cruiseMotTgt] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_minSpd] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + case: { } + + + + + + + + + + + + + + + + + + + + + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_maxSpd] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + b_cruiseCtrlEna + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + cf_nKi + + + + + + + + + + + + + + + + + + + + + + ufix16_En16 + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + VqFinPrev + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + - + @@ -1146,19 +2375,19 @@ - + - + - + - + @@ -1184,203 +2413,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -1402,11 +2439,11 @@ - + - + [Vq_max] @@ -1425,28 +2462,28 @@ - - + + - + - + - - [Vq_maxSpd] + + [n_mot] - + @@ -1456,102 +2493,6 @@ - - - - - - - - - - - - - - - - - - [n_cruiseMotTgt] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_minSpd] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -1564,11 +2505,11 @@ - + - + [n_cruiseMotTgt] @@ -1586,11 +2527,11 @@ - + - + sfix16_En4 @@ -1602,187 +2543,59 @@ - - - + + + - - + + - + - - + + - - + + + + + + + + + + + + + + + + + + - - + + - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_cruiseCtrlEna] - - - - - - - - - - - - - + - - + + - + boolean @@ -1792,54 +2605,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -1852,11 +2617,11 @@ - + - + [r_inpTgtSca] @@ -1874,11 +2639,11 @@ - + - + sfix16_En4 @@ -1890,44 +2655,59 @@ - - - + + + - - + + - - + + - - [n_mot] + + 5 - - + + + + + + + + + + + + + + + + + iq_limProtErr - - + + - - + + - - sfix16_En4 + + sfix32_En20 @@ -1948,11 +2728,11 @@ - + - + @@ -1965,670 +2745,31 @@ - - - - - - - - - - - sfix16_En4 - - - - - + - + sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - b_cruiseCtrlEna - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - case: { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - VqFinPrev - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_cruiseMotTgt] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -2650,11 +2791,11 @@ - + - + [Vq_max] @@ -2672,11 +2813,11 @@ - + - + sfix16_En4 @@ -2698,11 +2839,11 @@ - + - + 4 @@ -2720,11 +2861,11 @@ - + - + n_mot @@ -2735,11 +2876,362 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_minSpd] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + Vq_min + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_cruiseMotTgt] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_limProtErr] + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + Vq_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -2761,19 +3253,19 @@ - + - + - + - + @@ -2799,503 +3291,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_cruiseCtrlEna] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - Vq_max - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - iq_limProtErr - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - Vq_min - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_limProtErr] - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_maxSpd] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - r_inpTgtSca - - - - - - - - - - - - - - + sfix16_En4 @@ -4001,5 +4001,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9109_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9109_d.json index e68d49d..2984a83 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9109_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9109_d.json @@ -1,4 +1,344 @@ [ + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9141", + "className":"Simulink.Outport", + "icon":"WebViewIcon3", + "name":"Vq_Trq", + "label":"Vq_Trq", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10831", + "className":"Simulink.Sum", + "icon":"WebViewIcon3", + "name":"Sum2", + "label":"Sum2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "IconShape", + "Inputs", + "InputSameDT", + "AccumDataTypeStr", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "round", + "|+-", + "off", + "Inherit: Inherit via internal rule", + "[]", + "[]", + "Inherit: Inherit via internal rule", + "off", + "Simplest", + "on", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 10 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9139", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_iqKp", + "label":"cf_iqKp", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_iqKp", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,12)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10841", + "className":"Simulink.MinMax", + "icon":"WebViewIcon3", + "name":"MinMax2", + "label":"MinMax2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "OutDataTypeStr", + "Function", + "InputSameDT", + "Inputs", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" + ], + "values":[ + "Inherit: Inherit via internal rule", + "max", + "off", + "2", + "off", + "[]", + "[]", + "Floor", + "-1", + "off", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"MinMax", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10844", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_minTrq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9129", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto29", + "label":"Goto29", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9128", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10828", "className":"Simulink.SubSystem", @@ -92,59 +432,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10841", - "className":"Simulink.MinMax", - "icon":"WebViewIcon3", - "name":"MinMax2", - "label":"MinMax2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "OutDataTypeStr", - "Function", - "InputSameDT", - "Inputs", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" - ], - "values":[ - "Inherit: Inherit via internal rule", - "max", - "off", - "2", - "off", - "[]", - "[]", - "Floor", - "-1", - "off", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"MinMax", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10842", "className":"Simulink.MinMax", @@ -199,11 +486,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9127", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9126", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", + "name":"Goto13", + "label":"Goto13", "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -212,122 +499,7 @@ "IconDisplay" ], "values":[ - "iq_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9139", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"cf_iqKp", - "label":"cf_iqKp", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "cf_iqKp", - "on", - "inf", - "[]", - "[]", - "fixdt(0,16,12)", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9125", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11474", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "VqFinPrev", + "r_inpTgtSca", "local", "Tag" ], @@ -379,98 +551,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9130", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10831", - "className":"Simulink.Sum", - "icon":"WebViewIcon3", - "name":"Sum2", - "label":"Sum2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "IconShape", - "Inputs", - "InputSameDT", - "AccumDataTypeStr", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "round", - "|+-", - "off", - "Inherit: Inherit via internal rule", - "[]", - "[]", - "Inherit: Inherit via internal rule", - "off", - "Simplest", - "on", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 10 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10840", "className":"Simulink.Gain", @@ -530,6 +610,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11474", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto12", + "label":"Goto12", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "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":"BLDCmotor_FOC_R2017b_fixdt:10821", "className":"Simulink.From", @@ -561,161 +674,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10836", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10846", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_minTrq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10823", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10820", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "iq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10822", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From10", - "label":"From10", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10819", "className":"Simulink.From", @@ -747,220 +705,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11475", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "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":"BLDCmotor_FOC_R2017b_fixdt:10834", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant2", - "label":"constant2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10829", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10845", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vq_maxTrq", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9117", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "reset", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9126", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9131", "className":"Simulink.Goto", @@ -995,61 +739,25 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11473", - "className":"Simulink.Inport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10838", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"VqFinPrev", - "label":"VqFinPrev", + "name":"From12", + "label":"From12", "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "GotoTag", + "IconDisplay" ], "values":[ - "8", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" + "Vq_nLimProtMax", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 2, - 11 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1057,7 +765,133 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10822", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From10", + "label":"From10", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11475", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "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":"BLDCmotor_FOC_R2017b_fixdt:9125", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto1", + "label":"Goto1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10845", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_maxTrq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", "masktype":"" } }, @@ -1111,11 +945,104 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9113", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10836", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From15", + "label":"From15", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9117", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "reset", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10823", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9116", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"iq", - "label":"iq", + "name":"Vq_nLimProtMax", + "label":"Vq_nLimProtMax", "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -1138,7 +1065,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "7", "Port number", "[]", "[]", @@ -1177,6 +1104,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9130", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9114", "className":"Simulink.Inport", @@ -1245,91 +1205,50 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9141", - "className":"Simulink.Outport", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10829", + "className":"Saturation Dynamic", "icon":"WebViewIcon3", - "name":"Vq_Trq", - "label":"Vq_Trq", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", "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" + "RndMeth", + "DoSatur" ], "values":[ - "1", - "Port number", "[]", "[]", - "Inherit: auto", + "Inherit: Same as second input", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", + "Floor", "off" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" ], "tabs_idx":[ - 0, - 2, - 11 ] }, "viewer":{ - "jshandler":"webview/handlers/ElementHandler" + "jshandler":"webview/handlers/ContainerHandler" }, "obj_viewer":[ ], "finder":{ - "blocktype":"Outport", - "masktype":"" + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9116", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9112", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vq_nLimProtMax", - "label":"Vq_nLimProtMax", + "name":"Vq_min", + "label":"Vq_min", "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -1352,7 +1271,7 @@ "OutputFunctionCall" ], "values":[ - "7", + "3", "Port number", "[]", "[]", @@ -1459,11 +1378,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9112", + "sid":"BLDCmotor_FOC_R2017b_fixdt:11473", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Vq_min", - "label":"Vq_min", + "name":"VqFinPrev", + "label":"VqFinPrev", "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -1486,7 +1405,172 @@ "OutputFunctionCall" ], "values":[ - "3", + "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":"BLDCmotor_FOC_R2017b_fixdt:9110", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10846", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_minTrq", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9113", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"iq", + "label":"iq", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", "Port number", "[]", "[]", @@ -1593,177 +1677,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9128", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9129", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto29", - "label":"Goto29", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "iq_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10844", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vq_minTrq", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9110", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10838", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10820", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", + "name":"From5", + "label":"From5", "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", "inspector":{ "params":[ @@ -1771,7 +1689,7 @@ "IconDisplay" ], "values":[ - "Vq_nLimProtMax", + "iq_max", "Tag" ], "tabs":[ @@ -1789,6 +1707,88 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9127", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto19", + "label":"Goto19", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "iq_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10834", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"constant2", + "label":"constant2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9109", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9111#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9109_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9109_d.svg index a309b31..a036556 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9109_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9109_d.svg @@ -13,155 +13,156 @@ - - - + + + - - + + - + - - err - - - - - - - - P - - - - - - - - I - - - - - - - - init - - - - - - - - satMax - - - - - - - - satMin - - - - - - - - ext_limProt - - - - - - - - out - - - - - - - - PI(z) + + 1 - - + + - - + + - - + + - - PI_clamp_fixdt + + Vq_Trq + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - - + + - + sfix16_En4 - + + + + + + + + + + + + + + + - - + + - - + + cf_iqKp - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + ufix16_En12 @@ -174,7 +175,7 @@ - + @@ -182,19 +183,19 @@ - + - + - + - + @@ -220,11 +221,11 @@ - + - + sfix16_En4 @@ -234,11 +235,269 @@ + + + + + + + + + + + + + + + + + + [Vq_minTrq] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [iq_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + err + + + + + + + + P + + + + + + + + I + + + + + + + + init + + + + + + + + satMax + + + + + + + + satMin + + + + + + + + ext_limProt + + + + + + + + out + + + + + + + + PI(z) + + + + + + + + + + + + + + + + + + + + + + PI_clamp_fixdt + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -246,19 +505,19 @@ - + - + - + - + @@ -284,11 +543,11 @@ - + - + sfix16_En4 @@ -300,142 +559,28 @@ - - + + - + - + - - [iq_max] + + [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - - - - - - - cf_iqKp - - - - - - - - - - - - - - - - - - - - - - ufix16_En12 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - + @@ -457,11 +602,11 @@ - + - + [Vq_maxTrq] @@ -478,103 +623,6 @@ - - - - - - - - - - - - - - - - - - [iq] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -587,11 +635,11 @@ - + - + -1 @@ -609,11 +657,11 @@ - + - + sfix16_En4 @@ -623,6 +671,39 @@ + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + @@ -635,11 +716,11 @@ - + - + [iq_min] @@ -657,251 +738,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_minTrq] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -923,11 +764,11 @@ - + - + [iq] @@ -945,11 +786,140 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -971,11 +941,11 @@ - + - + [VqFinPrev] @@ -993,11 +963,11 @@ - + - + sfix16_En4 @@ -1009,156 +979,29 @@ - - - + + + - - + + - - + + - - 0 + + [Vq_max] - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 + + @@ -1179,11 +1022,11 @@ - + - + [Vq_maxTrq] @@ -1201,188 +1044,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - case: { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 8 - - - - - - - - - - - - - - - - - - - - - - VqFinPrev - - - - - - - - - - - - - - + sfix16_En4 @@ -1404,11 +1070,11 @@ - + - + cf_iqKi @@ -1426,11 +1092,11 @@ - + - + ufix16_En16 @@ -1442,58 +1108,43 @@ - - - + + + - - + + - - + + - - 4 + + [r_inpTgtSca] - - - - - - - - - - - - - - - - - iq + + - + - - + + - + sfix16_En4 @@ -1505,59 +1156,44 @@ - - - + + + - - + + - - + + - - 5 + + case: { } - - + + - - + + - - + + - - iq_max - - - - - - - - - - - - - - - sfix16_En4 + + Action Port @@ -1568,44 +1204,44 @@ - - - + + + - - + + - - + + - - 1 + + [Vq_min] - - + + - - - + + + - - + + - - Vq_Trq + + sfix16_En4 @@ -1626,11 +1262,11 @@ - + - + 7 @@ -1648,11 +1284,11 @@ - + - + Vq_nLimProtMax @@ -1663,11 +1299,11 @@ - + - + sfix16_En4 @@ -1679,58 +1315,203 @@ - - - + + + - - + + - - + + - - 6 + + [iq] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + - - + + - - + + - - iq_min + + iq_max - + - - + + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1752,11 +1533,11 @@ - + - + 3 @@ -1774,11 +1555,11 @@ - + - + Vq_min @@ -1789,11 +1570,311 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + iq_min + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 8 + + + + + + + + + + + + + + + + + + + + + + VqFinPrev + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_minTrq] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + iq + + + + + + + + + + + + + + sfix16_En4 @@ -1815,11 +1896,11 @@ - + - + 2 @@ -1837,11 +1918,11 @@ - + - + Vq_max @@ -1852,11 +1933,11 @@ - + - + sfix16_En4 @@ -1868,205 +1949,43 @@ - - - - - - - - - - - - - - - - [Vq_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [iq_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vq_minTrq] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - r_inpTgtSca - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - + + - + - + - - [Vq_nLimProtMax] + + [iq_max] - + - + - - + + - + sfix16_En4 @@ -2076,6 +1995,87 @@ + + + + + + + + + + + + + + + + + + [iq_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + @@ -2476,5 +2476,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9143_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9143_d.json index ce55d7c..cb498eb 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9143_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9143_d.json @@ -139,11 +139,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9725", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9726", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"cf_idKp1", - "label":"cf_idKp1", + "name":"constant1", + "label":"constant1", "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", "inspector":{ "params":[ @@ -157,12 +157,12 @@ "FramePeriod" ], "values":[ - "cf_idKp", + "0", "on", "inf", "[]", "[]", - "fixdt(0,16,12)", + "Inherit: Inherit via back propagation", "off", "inf" ], @@ -236,615 +236,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9161", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9159", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto18", - "label":"Goto18", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vd_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9158", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto17", - "label":"Goto17", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "Vd_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9723", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From8", - "label":"From8", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9164", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic", - "label":"Saturation Dynamic", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9160", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto19", - "label":"Goto19", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_max", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9722", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "Vd_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9156", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_min", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9155", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_max", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9150", - "className":"Simulink.ActionPort", - "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "InitializeStates", - "PropagateVarSize" - ], - "values":[ - "held", - "Only when execution is resumed" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"ActionPort", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9726", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"constant1", - "label":"constant1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9149", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"id_min", - "label":"id_min", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "6", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9148", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"id_max", - "label":"id_max", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9147", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Vd_min", - "label":"Vd_min", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9162", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto29", - "label":"Goto29", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_min", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:11483", "className":"Simulink.Constant", @@ -894,168 +285,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9157", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "id_Tgt", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9151", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id_Tgt", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9146", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"Vd_max", - "label":"Vd_max", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9152", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "id", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10454", "className":"Simulink.SubSystem", @@ -1149,6 +378,715 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9161", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9160", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto19", + "label":"Goto19", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9162", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto29", + "label":"Goto29", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9164", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic", + "label":"Saturation Dynamic", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9723", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From8", + "label":"From8", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9157", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "id_Tgt", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9156", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9152", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9150", + "className":"Simulink.ActionPort", + "icon":"WebViewIcon3", + "name":"Action Port", + "label":"Action Port", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "InitializeStates", + "PropagateVarSize" + ], + "values":[ + "held", + "Only when execution is resumed" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"ActionPort", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9159", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto18", + "label":"Goto18", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vd_min", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9147", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vd_min", + "label":"Vd_min", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9151", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_Tgt", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9149", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"id_min", + "label":"id_min", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9158", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto17", + "label":"Goto17", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "Vd_max", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9146", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"Vd_max", + "label":"Vd_max", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9725", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"cf_idKp1", + "label":"cf_idKp1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "cf_idKp", + "on", + "inf", + "[]", + "[]", + "fixdt(0,16,12)", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9148", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"id_max", + "label":"id_max", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9145", "className":"Simulink.Inport", @@ -1216,6 +1154,68 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9155", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "id_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9722", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9143", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vd_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9144", "className":"Simulink.Inport", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9143_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9143_d.png index ec57fbe..1b4eee3 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9143_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9143_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9143_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9143_d.svg index a3a037d..3cd89fa 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9143_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9143_d.svg @@ -125,44 +125,44 @@ - - - + + + - - + + - + - - cf_idKp + + 0 - - + + - - + + - + - - ufix16_En12 + + sfix32_En20 @@ -219,6 +219,213 @@ + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + sfix32_En20 + + + + + + + + + + + + + + + + + + + + + + + + + + err + + + + + + + + P + + + + + + + + I + + + + + + + + init + + + + + + + + satMax + + + + + + + + satMin + + + + + + + + ext_limProt + + + + + + + + out + + + + + + + + PI(z) + + + + + + + + + + + + + + + + + + + + + + PI_clamp_fixdt + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -231,11 +438,11 @@ - + - + [id] @@ -252,232 +459,6 @@ - - - - - - - - - - - - - - - - - - [Vd_min] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_max] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [Vd_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -490,11 +471,11 @@ - + - + [id_max] @@ -511,435 +492,6 @@ - - - - - - - - - - - - - - - - - - [Vd_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_min] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [id_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - Action Port - - - - - - - - - - - - - - - - - - - - - - - - - - 0 - - - - - - - - - - - - - - - - - - - - - - sfix32_En20 - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - id_min - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - id_max - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - Vd_min - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -952,11 +504,11 @@ - + - + [id_min] @@ -975,44 +527,156 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - 0 + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y - - + + - - + + - - + + - - sfix32_En20 + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_min] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1033,11 +697,11 @@ - + - + [id_Tgt] @@ -1056,106 +720,43 @@ - - + + - + - + - - [id_Tgt] + + [id_min] - + - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - Vd_max - - - - - - - - - - - - - - + sfix16_En4 @@ -1177,11 +778,11 @@ - + - + [id] @@ -1199,11 +800,11 @@ - + - + sfix16_En4 @@ -1215,155 +816,458 @@ - - - + + + - - + + - - + + - - err - - - - - - - - P - - - - - - - - I - - - - - - - - init - - - - - - - - satMax - - - - - - - - satMin - - - - - - - - ext_limProt - - - - - - - - out - - - - - - - - PI(z) + + if { } - - + + - - + + - - + + - - PI_clamp_fixdt + + Action Port + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_min] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + Vd_min - + - - + + - + sfix16_En4 - + + + + + + + + + + + + + + + - - + + - - + + [id_Tgt] - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + id_min + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_max] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + Vd_max + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + cf_idKp + + + + + + + + + + + + + + + + + + + + + + ufix16_En12 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + id_max + + + + + + + + + + + + + + + sfix16_En4 @@ -1384,11 +1288,11 @@ - + - + 2 @@ -1406,11 +1310,11 @@ - + - + id @@ -1421,11 +1325,107 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [id_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vd_max] + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1766,5 +1766,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9164_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9164_d.svg index a82fb81..bf7f3f0 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9164_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9164_d.svg @@ -1009,6 +1009,9 @@ + + + @@ -1018,9 +1021,6 @@ - - - @@ -1176,5 +1176,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9171_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9171_d.json index a296859..7384e0c 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9171_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9171_d.json @@ -79,78 +79,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9189", - "className":"Simulink.SignalConversion", - "icon":"WebViewIcon3", - "name":"Signal Conversion2", - "label":"Signal Conversion2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "ConversionOutput", - "OutDataTypeStr", - "OverrideOpt" - ], - "values":[ - "Signal copy", - "Inherit: auto", - "off" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SignalConversion", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9188", - "className":"Saturation Dynamic", - "icon":"WebViewIcon3", - "name":"Saturation Dynamic1", - "label":"Saturation Dynamic1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "DoSatur" - ], - "values":[ - "[]", - "[]", - "Inherit: Same as second input", - "off", - "Floor", - "off" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"Saturation Dynamic" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10732", "className":"Simulink.MinMax", @@ -205,11 +133,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9186", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10737", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Goto4", + "label":"Goto4", "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ @@ -218,7 +146,7 @@ "IconDisplay" ], "values":[ - "r_nLimProtMax", + "r_inpTgtScaAbs", "local", "Tag" ], @@ -238,11 +166,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10737", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9186", "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", + "name":"Goto3", + "label":"Goto3", "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ @@ -251,7 +179,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtScaAbs", + "r_nLimProtMax", "local", "Tag" ], @@ -303,39 +231,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9184", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9183", "className":"Simulink.Goto", @@ -369,68 +264,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10738", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtScaAbs", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10731", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_nLimProtMax", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10740", "className":"Simulink.Signum", @@ -463,11 +296,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9179", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10733", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", + "name":"From5", + "label":"From5", "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ @@ -475,7 +308,7 @@ "IconDisplay" ], "values":[ - "Vq_max", + "r_inpTgtSca", "Tag" ], "tabs":[ @@ -493,6 +326,70 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9181", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From20", + "label":"From20", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_min", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9184", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10725", "className":"Simulink.From", @@ -525,11 +422,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10733", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10738", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", + "name":"From6", + "label":"From6", "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ @@ -537,7 +434,7 @@ "IconDisplay" ], "values":[ - "r_inpTgtSca", + "r_inpTgtScaAbs", "Tag" ], "tabs":[ @@ -555,6 +452,94 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9179", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From16", + "label":"From16", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "Vq_max", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10741", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide1", + "label":"Divide1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9176", "className":"Simulink.Inport", @@ -622,63 +607,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10741", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide1", - "label":"Divide1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9175", "className":"Simulink.Inport", @@ -746,6 +674,70 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10731", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_nLimProtMax", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9189", + "className":"Simulink.SignalConversion", + "icon":"WebViewIcon3", + "name":"Signal Conversion2", + "label":"Signal Conversion2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "ConversionOutput", + "OutDataTypeStr", + "OverrideOpt" + ], + "values":[ + "Signal copy", + "Inherit: auto", + "off" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SignalConversion", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9174", "className":"Simulink.Inport", @@ -813,6 +805,78 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9188", + "className":"Saturation Dynamic", + "icon":"WebViewIcon3", + "name":"Saturation Dynamic1", + "label":"Saturation Dynamic1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "DoSatur" + ], + "values":[ + "[]", + "[]", + "Inherit: Same as second input", + "off", + "Floor", + "off" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"Saturation Dynamic" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9187", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto31", + "label":"Goto31", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_iqLimProtMax", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9173", "className":"Simulink.Inport", @@ -881,20 +945,20 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9181", - "className":"Simulink.From", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9177", + "className":"Simulink.ActionPort", "icon":"WebViewIcon3", - "name":"From20", - "label":"From20", + "name":"Action Port", + "label":"Action Port", "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "GotoTag", - "IconDisplay" + "InitializeStates", + "PropagateVarSize" ], "values":[ - "Vq_min", - "Tag" + "reset", + "Only when execution is resumed" ], "tabs":[ "Parameter Attributes" @@ -907,107 +971,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9187", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto31", - "label":"Goto31", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_iqLimProtMax", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10736", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_inpTgtScaAbs", - "label":"r_inpTgtScaAbs", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", + "blocktype":"ActionPort", "masktype":"" } }, @@ -1079,25 +1043,61 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9177", - "className":"Simulink.ActionPort", + "sid":"BLDCmotor_FOC_R2017b_fixdt:10736", + "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"Action Port", - "label":"Action Port", + "name":"r_inpTgtScaAbs", + "label":"r_inpTgtScaAbs", "parent":"BLDCmotor_FOC_R2017b_fixdt:9171", "inspector":{ "params":[ - "InitializeStates", - "PropagateVarSize" + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" ], "values":[ - "reset", - "Only when execution is resumed" + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" ], "tabs":[ - "Parameter Attributes" + "Main", + "Signal Attributes", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 2, + 11 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1105,7 +1105,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"ActionPort", + "blocktype":"Inport", "masktype":"" } }, diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9171_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9171_d.png index 2da4136..1dd1515 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9171_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9171_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9171_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9171_d.svg index 00232f5..9712c9b 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9171_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9171_d.svg @@ -59,299 +59,11 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - up - - - - - - - - u - - - - - - - - lo - - - - - - - - y - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - + @@ -359,19 +71,19 @@ - + - + - + - + @@ -397,11 +109,11 @@ - + - + sfix16_En4 @@ -411,39 +123,6 @@ - - - - - - - - - - - - - - - - - - [r_nLimProtMax] - - - - - - - - - - - - - - - @@ -456,11 +135,11 @@ - + - + [r_inpTgtScaAbs] @@ -477,6 +156,39 @@ + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + + + + + + + + + + @@ -489,11 +201,11 @@ - + - + [Vq_min] @@ -510,39 +222,6 @@ - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - @@ -555,11 +234,11 @@ - + - + [Vq_max] @@ -576,107 +255,11 @@ - - - - - - - - - - - - - - - - - - [r_inpTgtScaAbs] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_nLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - + @@ -684,35 +267,35 @@ - + - + - + - + - + - + - + - + @@ -738,11 +321,11 @@ - + - + int16 @@ -752,102 +335,6 @@ - - - - - - - - - - - - - - - - - - [Vq_max] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_iqLimProtMax] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -860,11 +347,11 @@ - + - + [r_inpTgtSca] @@ -882,319 +369,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - r_nLimProtMax - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - r_iqLimProtMax - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - Vq_min - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - Vq_max - - - - - - - - - - - - - - + sfix16_En4 @@ -1216,11 +395,11 @@ - + - + [Vq_min] @@ -1238,11 +417,769 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_iqLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtScaAbs] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [Vq_max] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + r_nLimProtMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + r_iqLimProtMax + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_nLimProtMax] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + Vq_min + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + up + + + + + + + + u + + + + + + + + lo + + + + + + + + y + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -1264,11 +1201,11 @@ - + - + [r_iqLimProtMax] @@ -1287,121 +1224,58 @@ - - + + - + - + - - 2 + + 3 - + - - + + - - + + - - r_inpTgtScaAbs + + Vq_max - + - - + + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 1 - - - - - - - - - - - - - - - - - - - - - - r_inpTgtSca - - - - - - - - - - - - - - + sfix16_En4 @@ -1423,11 +1297,11 @@ - + - + case: { } @@ -1445,11 +1319,11 @@ - + - + Action Port @@ -1459,6 +1333,132 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtScaAbs + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -1699,5 +1699,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9188_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9188_d.svg index 7b55ae2..54128cd 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9188_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9188_d.svg @@ -142,7 +142,7 @@ - + @@ -334,7 +334,7 @@ - + @@ -1012,10 +1012,10 @@ - + - + @@ -1103,10 +1103,10 @@ - + - + @@ -1176,5 +1176,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9198_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9198_d.json index a2b6f58..762c3c5 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9198_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9198_d.json @@ -895,1109 +895,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9449", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon3", - "name":"UnitDelay4", - "label":"UnitDelay4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "StateName", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "0", - "Inherited", - "-1", - "", - "", - "off", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "State Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9741", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"SIN_Method", - "label":"SIN_Method", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9233", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator6", - "label":"Relational Operator6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9840", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator2", - "label":"Relational Operator2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9835", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon3", - "name":"Relational Operator1", - "label":"Relational Operator1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "Operator", - "InputSameDT", - "OutDataTypeStr", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "==", - "off", - "boolean", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Main", - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9914", - "className":"Simulink.Merge", - "icon":"WebViewIcon3", - "name":"Merge", - "label":"Merge", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "Inputs", - "InitialOutput", - "AllowUnequalInputPortWidths", - "InputPortOffsets" - ], - "values":[ - "3", - "[]", - "off", - "[]" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Merge", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9833", - "className":"Simulink.If", - "icon":"WebViewIcon3", - "name":"If", - "label":"If", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "SampleTime", - "ZeroCross" - ], - "values":[ - "2", - "u1 ~= 0", - "u2 ~= 0", - "on", - "-1", - "on" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9924", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_dir", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9451", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto11", - "label":"Goto11", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "VqFin", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9920", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From6", - "label":"From6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:11470", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "VqFin", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9215", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9928", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From14", - "label":"From14", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dir", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9839", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From13", - "label":"From13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlTypSel", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9454", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From5", - "label":"From5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "VqFinPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9916", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From1", - "label":"From1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "VqFin", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9915", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_pos", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9927", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From7", - "label":"From7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "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":"BLDCmotor_FOC_R2017b_fixdt:9452", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto12", - "label":"Goto12", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "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":"BLDCmotor_FOC_R2017b_fixdt:9838", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM3", - "label":"CTRL_COMM3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "CTRL_SIN", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9908", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From15", - "label":"From15", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "V_phaABC_FOC", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9831", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From11", - "label":"From11", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_enaAdvCtrl", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9834", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"CTRL_COMM2", - "label":"CTRL_COMM2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "CTRL_FOC", - "on", - "inf", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9904", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon1", - "name":"COM_Method", - "label":"COM_Method", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "ShowPortLabels", - "Permissions", - "ErrorFcn", - "PermitHierarchicalResolution", - "TreatAsAtomicUnit", - "TreatAsGroupedWhenPropagatingVariantConditions", - "ActiveVariant", - "ActiveVariantBlock", - "AllowZeroVariantControls", - "BlockChoice", - "FunctionInterfaceSpec", - "FunctionWithSeparateData", - "GeneratePreprocessorConditionals", - "IsSubsystemVirtual", - "MemberBlocks", - "MinAlgLoopOccurrences", - "OverrideUsingVariant", - "PropExecContextOutsideSubsystem", - "PropagateVariantConditions", - "RTWFcnName", - "RTWFcnNameOpts", - "RTWFileName", - "RTWFileNameOpts", - "RTWMemSecDataConstants", - "RTWMemSecDataInternal", - "RTWMemSecDataParameters", - "RTWMemSecFuncExecute", - "RTWMemSecFuncInitTerm", - "RTWSystemCode", - "SystemSampleTime", - "TemplateBlock", - "Variant", - "VariantControl" - ], - "values":[ - "FromPortIcon", - "ReadWrite", - "", - "All", - "off", - "on", - "", - "", - "off", - "", - "void_void", - "off", - "off", - "off", - "", - "off", - "", - "off", - "off", - "", - "Auto", - "", - "Auto", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Inherit from model", - "Auto", - "-1", - "", - "off", - "" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 6 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9235", - "className":"Simulink.Switch", - "icon":"WebViewIcon3", - "name":"Switch2", - "label":"Switch2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "Criteria", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "AllowDiffInputSizes", - "SampleTime", - "Threshold", - "ZeroCross" - ], - "values":[ - "u2 ~= 0", - "off", - "[]", - "[]", - "Inherit: Inherit via back propagation", - "off", - "Zero", - "off", - "off", - "-1", - "0", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:8216", - "className":"Simulink.DataTypeConversion", - "icon":"WebViewIcon3", - "name":"Data Type Conversion6", - "label":"Data Type Conversion6", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "ConvertRealWorld", - "RndMeth", - "SaturateOnIntegerOverflow", - "SampleTime" - ], - "values":[ - "[]", - "[]", - "int16", - "off", - "Real World Value (RWV)", - "Floor", - "off", - "-1" - ], - "tabs":[ - "Parameter Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"DataTypeConversion", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9455", "className":"Simulink.Outport", @@ -2078,6 +975,517 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9449", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon3", + "name":"UnitDelay4", + "label":"UnitDelay4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "StateName", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "0", + "Inherited", + "-1", + "", + "", + "off", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "State Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9235", + "className":"Simulink.Switch", + "icon":"WebViewIcon3", + "name":"Switch2", + "label":"Switch2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Criteria", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "AllowDiffInputSizes", + "SampleTime", + "Threshold", + "ZeroCross" + ], + "values":[ + "u2 ~= 0", + "off", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "Zero", + "off", + "off", + "-1", + "0", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9233", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator6", + "label":"Relational Operator6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9452", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto12", + "label":"Goto12", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "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":"BLDCmotor_FOC_R2017b_fixdt:9920", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From6", + "label":"From6", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9927", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From7", + "label":"From7", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "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":"BLDCmotor_FOC_R2017b_fixdt:9451", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto11", + "label":"Goto11", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "VqFin", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9214", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From25", + "label":"From25", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlTypSel", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9908", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From15", + "label":"From15", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "V_phaABC_FOC", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9839", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From13", + "label":"From13", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlTypSel", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9832", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From12", + "label":"From12", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlTypSel", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9831", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From11", + "label":"From11", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_enaAdvCtrl", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9915", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_pos", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9835", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon3", + "name":"Relational Operator1", + "label":"Relational Operator1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Main", + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9842", "className":"Simulink.SubSystem", @@ -2176,11 +1584,384 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9207", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9225", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_inpTgtSca", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9227", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto5", + "label":"Goto5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlTypSel", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9924", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_dir", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9916", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From1", + "label":"From1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "VqFin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9926", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto13", + "label":"Goto13", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9914", + "className":"Simulink.Merge", + "icon":"WebViewIcon3", + "name":"Merge", + "label":"Merge", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Inputs", + "InitialOutput", + "AllowUnequalInputPortWidths", + "InputPortOffsets" + ], + "values":[ + "3", + "[]", + "off", + "[]" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Merge", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9904", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"COM_Method", + "label":"COM_Method", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:11470", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "VqFin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9833", + "className":"Simulink.If", + "icon":"WebViewIcon3", + "name":"If", + "label":"If", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "SampleTime", + "ZeroCross" + ], + "values":[ + "2", + "u1 ~= 0", + "u2 ~= 0", + "on", + "-1", + "on" + ], + "tabs":[ + "Parameter Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"If", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9834", "className":"Simulink.Constant", "icon":"WebViewIcon3", - "name":"CTRL_COMM1", - "label":"CTRL_COMM1", + "name":"CTRL_COMM2", + "label":"CTRL_COMM2", "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -2225,78 +2006,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9923", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"r_fieldWeak", - "label":"r_fieldWeak", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "9", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9832", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9215", "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"From12", - "label":"From12", + "name":"From3", + "label":"From3", "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -2304,7 +2018,38 @@ "IconDisplay" ], "values":[ - "z_ctrlTypSel", + "r_inpTgtSca", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9928", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From14", + "label":"From14", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", "Tag" ], "tabs":[ @@ -2390,157 +2135,40 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9225", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:8216", + "className":"Simulink.DataTypeConversion", "icon":"WebViewIcon3", - "name":"Goto3", - "label":"Goto3", + "name":"Data Type Conversion6", + "label":"Data Type Conversion6", "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_inpTgtSca", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9926", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto13", - "label":"Goto13", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "a_elecAngle", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9929", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From16", - "label":"From16", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_fieldWeak", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9201", - "className":"Simulink.Inport", - "icon":"WebViewIcon3", - "name":"z_ctrlTypSel", - "label":"z_ctrlTypSel", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "Port", - "IconDisplay", "OutMin", "OutMax", "OutDataTypeStr", "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" + "ConvertRealWorld", + "RndMeth", + "SaturateOnIntegerOverflow", + "SampleTime" ], "values":[ - "2", - "Port number", "[]", "[]", - "Inherit: auto", + "int16", "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", + "Real World Value (RWV)", + "Floor", "off", - "", - "on", - "off", - "off", - "off" + "-1" ], "tabs":[ - "Main", - "Signal Attributes", + "Parameter Attributes", "-Other" ], "tabs_idx":[ 0, - 2, - 11 + 7 ] }, "viewer":{ @@ -2549,32 +2177,44 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Inport", + "blocktype":"DataTypeConversion", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9925", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9840", + "className":"Simulink.RelationalOperator", "icon":"WebViewIcon3", - "name":"Goto8", - "label":"Goto8", + "name":"Relational Operator2", + "label":"Relational Operator2", "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "Operator", + "InputSameDT", + "OutDataTypeStr", + "RndMeth", + "SampleTime", + "ZeroCross" ], "values":[ - "r_fieldWeak", - "local", - "Tag" + "==", + "off", + "boolean", + "Simplest", + "-1", + "on" ], "tabs":[ - "Parameter Attributes" + "Main", + "Data Type", + "-Other" ], - "tabs_idx":0 + "tabs_idx":[ + 0, + 1, + 4 + ] }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -2582,80 +2222,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"RelationalOperator", "masktype":"" } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9214", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From25", - "label":"From25", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlTypSel", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9227", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlTypSel", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9206", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9923", "className":"Simulink.Inport", "icon":"WebViewIcon3", - "name":"r_inpTgtSca", - "label":"r_inpTgtSca", + "name":"r_fieldWeak", + "label":"r_fieldWeak", "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -2678,7 +2254,7 @@ "OutputFunctionCall" ], "values":[ - "6", + "9", "Port number", "[]", "[]", @@ -2785,11 +2361,435 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9919", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9207", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM1", + "label":"CTRL_COMM1", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "CTRL_FOC", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9454", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From5", + "label":"From5", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "VqFinPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9925", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto8", + "label":"Goto8", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9929", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From16", + "label":"From16", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9838", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"CTRL_COMM3", + "label":"CTRL_COMM3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "CTRL_SIN", + "on", + "inf", + "[]", + "[]", + "Inherit: Inherit via back propagation", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9201", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"z_ctrlTypSel", + "label":"z_ctrlTypSel", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9206", + "className":"Simulink.Inport", + "icon":"WebViewIcon3", + "name":"r_inpTgtSca", + "label":"r_inpTgtSca", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "6", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9741", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon1", + "name":"SIN_Method", + "label":"SIN_Method", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", + "inspector":{ + "params":[ + "ShowPortLabels", + "Permissions", + "ErrorFcn", + "PermitHierarchicalResolution", + "TreatAsAtomicUnit", + "TreatAsGroupedWhenPropagatingVariantConditions", + "ActiveVariant", + "ActiveVariantBlock", + "AllowZeroVariantControls", + "BlockChoice", + "FunctionInterfaceSpec", + "FunctionWithSeparateData", + "GeneratePreprocessorConditionals", + "IsSubsystemVirtual", + "MemberBlocks", + "MinAlgLoopOccurrences", + "OverrideUsingVariant", + "PropExecContextOutsideSubsystem", + "PropagateVariantConditions", + "RTWFcnName", + "RTWFcnNameOpts", + "RTWFileName", + "RTWFileNameOpts", + "RTWMemSecDataConstants", + "RTWMemSecDataInternal", + "RTWMemSecDataParameters", + "RTWMemSecFuncExecute", + "RTWMemSecFuncInitTerm", + "RTWSystemCode", + "SystemSampleTime", + "TemplateBlock", + "Variant", + "VariantControl" + ], + "values":[ + "FromPortIcon", + "ReadWrite", + "", + "All", + "off", + "on", + "", + "", + "off", + "", + "void_void", + "off", + "off", + "off", + "", + "off", + "", + "off", + "off", + "", + "Auto", + "", + "Auto", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Inherit from model", + "Auto", + "-1", + "", + "off", + "" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 6 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9836", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator2", - "label":"Logical Operator2", + "name":"Logical Operator1", + "label":"Logical Operator1", "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ @@ -2830,11 +2830,11 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9836", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9919", "className":"Simulink.Logic", "icon":"WebViewIcon3", - "name":"Logical Operator1", - "label":"Logical Operator1", + "name":"Logical Operator2", + "label":"Logical Operator2", "parent":"BLDCmotor_FOC_R2017b_fixdt:9198", "inspector":{ "params":[ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9198_d.png b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9198_d.png index 0272631..0dc7e70 100644 Binary files a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9198_d.png and b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9198_d.png differ diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9198_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9198_d.svg index a773497..1fd7caa 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9198_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9198_d.svg @@ -524,15 +524,15 @@ - + - + - + int16 @@ -554,15 +554,15 @@ - + - + - + int16 @@ -908,11 +908,59 @@ + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + VqFinPrev + + + + + + + + - + @@ -920,35 +968,35 @@ - + - + - + - + - + - + - + - + @@ -974,11 +1022,11 @@ - + - + sfix16_En4 @@ -989,11 +1037,11 @@ - + - + Ini=0 @@ -1005,143 +1053,187 @@ - - - + + + - - - - - - - - + + - - - - - - - VqFin - - - - - - - - a_elecAngle - - - - - - - - z_dir - - + - - r_fieldWeak + + - + - - V_phaABC_SIN + + - + - - elseif { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - - - - - - - - - - - - - - - - - - - - - - - - - - - - SIN_Method + + - - - - - - - - - - - - - - - - action - - - - - - - - - - - - + - - + + - + sfix16_En4 @@ -1154,12 +1246,6 @@ - - - - - - @@ -1169,27 +1255,27 @@ - + - + - + - + - + - + @@ -1215,11 +1301,11 @@ - + - + boolean @@ -1231,67 +1317,76 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + [VqFinPrev] + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + - + - - + + - + boolean @@ -1301,6 +1396,375 @@ + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFin] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [V_phaABC_FOC] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_enaAdvCtrl] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_pos] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + @@ -1313,27 +1777,27 @@ - + - + - + - + - + - + @@ -1359,11 +1823,11 @@ - + - + boolean @@ -1373,6 +1837,316 @@ + + + + + + + + + + + + + + + + + + + + + + + + V_phaABC_FOC_in + + + + + + + + V_phaABC_FOC + + + + + + + + if { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + FOC_Method + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFin] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [a_elecAngle] + + + + + + + + + + + + + + + @@ -1385,19 +2159,19 @@ - + - + - + - + @@ -1423,11 +2197,11 @@ - + - + sfix16_En4 @@ -1437,839 +2211,6 @@ - - - - - - - - - - - - - - - - - - u1 - - - - - - - - u2 - - - - - - - - if(u1 ~= 0) - - - - - - - - elseif(u2 ~= 0) - - - - - - - - else - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - action - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFin] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFin] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFin] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_pos] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - [VqFinPrev] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CTRL_SIN - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [V_phaABC_FOC] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [b_enaAdvCtrl] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - CTRL_FOC - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - @@ -2288,35 +2229,35 @@ - + - + VqFin - + - + z_pos - + - + V_phaABC_COM - + - + else { } @@ -2346,11 +2287,11 @@ - + - + COM_Method @@ -2367,11 +2308,11 @@ - + - + sfix16_En4 @@ -2388,11 +2329,11 @@ - + - + action @@ -2404,193 +2345,49 @@ - + - - + + - - + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F + + [VqFin] - - + + - + - - + + - + sfix16_En4 @@ -2600,6 +2397,323 @@ + + + + + + + + + + + + + + + + + + u1 + + + + + + + + u2 + + + + + + + + if(u1 ~= 0) + + + + + + + + elseif(u2 ~= 0) + + + + + + + + else + + + + + + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + CTRL_FOC + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_inpTgtSca] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + 7 + + + + + + + + + + + + + + + + + + + + + + a_elecAngle + + + + + + + + + + + + + + + sfix16_En6 + + + + + + + + @@ -2612,19 +2726,19 @@ - + - + - + - + @@ -2650,11 +2764,11 @@ - + - + int16 @@ -2666,222 +2780,68 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - 4 - - - - - - - - - - - - - - - - - - VqFinPrev - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - V_phaABC_FOC_in - - - - - - - - V_phaABC_FOC - - - - - - - - if { } - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - FOC_Method + + - - - - - - - - - - - - - - - - action - - - - - - - - - - - - - + + - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CTRL_FOC - - - - - - - - - - - - - - - - - - - - - - uint8 + + boolean @@ -2902,11 +2862,11 @@ - + - + 9 @@ -2924,11 +2884,11 @@ - + - + r_fieldWeak @@ -2939,476 +2899,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 7 - - - - - - - - - - - - - - - - - - - - - - a_elecAngle - - - - - - - - - - - - - - - sfix16_En6 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_inpTgtSca] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [a_elecAngle] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - z_ctrlTypSel - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 6 - - - - - - - - - - - - - - - - - - - - - - r_inpTgtSca - - - - - - - - - - - - - - + sfix16_En4 @@ -3430,11 +2925,11 @@ - + - + 8 @@ -3452,11 +2947,11 @@ - + - + z_dir @@ -3467,11 +2962,11 @@ - + - + int8 @@ -3483,60 +2978,495 @@ - - - + + + - - + + - + - - + + - - + + CTRL_FOC - - - - - - - - - - - - - - + + - - - - - - + + - - + + - - boolean + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFinPrev] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + CTRL_SIN + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_ctrlTypSel + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + 6 + + + + + + + + + + + + + + + + + + + + + + r_inpTgtSca + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + VqFin + + + + + + + + a_elecAngle + + + + + + + + z_dir + + + + + + + + r_fieldWeak + + + + + + + + V_phaABC_SIN + + + + + + + + elseif { } + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + SIN_Method + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + action @@ -3548,6 +3478,12 @@ + + + + + + @@ -3557,19 +3493,19 @@ - + - + - + - + @@ -3595,11 +3531,75 @@ - + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean @@ -4303,5 +4303,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9292_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9292_d.svg index 579bfae..788dc68 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9292_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9292_d.svg @@ -10,5 +10,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9293_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9293_d.svg index e7746a4..e1aad8c 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9293_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9293_d.svg @@ -10,5 +10,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9741_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9741_d.json index 2f1983f..83156c6 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9741_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9741_d.json @@ -578,37 +578,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9819", - "className":"Simulink.Mux", - "icon":"WebViewIcon3", - "name":"Mux2", - "label":"Mux2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9741", - "inspector":{ - "params":[ - "Inputs", - "DisplayOption" - ], - "values":[ - "3", - "bar" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Mux", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9802", "className":"Simulink.Goto", @@ -642,6 +611,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9801", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "a_elecAngle", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9800", "className":"Simulink.Goto", @@ -675,70 +677,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9799", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto1", - "label":"Goto1", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9741", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_dir", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9806", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From3", - "label":"From3", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9741", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_fieldWeak", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9818", "className":"Simulink.From", @@ -801,6 +739,68 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9819", + "className":"Simulink.Mux", + "icon":"WebViewIcon3", + "name":"Mux2", + "label":"Mux2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "Inputs", + "DisplayOption" + ], + "values":[ + "3", + "bar" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Mux", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9805", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From2", + "label":"From2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9820", "className":"Simulink.Goto", @@ -835,21 +835,19 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9801", - "className":"Simulink.Goto", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9810", + "className":"Simulink.From", "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", + "name":"From4", + "label":"From4", "parent":"BLDCmotor_FOC_R2017b_fixdt:9741", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "a_elecAngle", - "local", + "V_phaABC_SIN", "Tag" ], "tabs":[ @@ -863,7 +861,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", "masktype":"" } }, @@ -924,68 +922,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9805", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From2", - "label":"From2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9741", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dir", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9810", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9741", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "V_phaABC_SIN", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9798", "className":"Simulink.Inport", @@ -1121,43 +1057,27 @@ } }, { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10677", - "className":"Simulink.Constant", + "sid":"BLDCmotor_FOC_R2017b_fixdt:9799", + "className":"Simulink.Goto", "icon":"WebViewIcon3", - "name":"Constant", - "label":"Constant", + "name":"Goto1", + "label":"Goto1", "parent":"BLDCmotor_FOC_R2017b_fixdt:9741", "inspector":{ "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" + "GotoTag", + "TagVisibility", + "IconDisplay" ], "values":[ - "0", - "on", - "inf", - "[]", - "[]", - "uint8", - "off", - "inf" + "z_dir", + "local", + "Tag" ], "tabs":[ - "Main", - "Signal Attributes", - "-Other" + "Parameter Attributes" ], - "tabs_idx":[ - 0, - 3, - 7 - ] + "tabs_idx":0 }, "viewer":{ "jshandler":"webview/handlers/ElementHandler" @@ -1165,7 +1085,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Constant", + "blocktype":"Goto", "masktype":"" } }, @@ -1236,6 +1156,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9806", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From3", + "label":"From3", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9796", "className":"Simulink.Inport", @@ -1303,6 +1254,55 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10677", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"Constant", + "label":"Constant", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9741", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "0", + "on", + "inf", + "[]", + "[]", + "uint8", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9779#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9741_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9741_d.svg index eee94b2..4718c4c 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9741_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9741_d.svg @@ -82,7 +82,7 @@ - + @@ -553,7 +553,7 @@ - + @@ -1024,7 +1024,7 @@ - + @@ -1495,7 +1495,7 @@ - + @@ -1638,7 +1638,7 @@ - + @@ -1780,50 +1780,35 @@ - + - - + + - - + + - + - - + + [VqFin] - - - - - - - - - - - - - - - - - sfix16_En14 + + @@ -1834,28 +1819,28 @@ - - + + - + - + - - [VqFin] + + [a_elecAngle] - + @@ -1877,11 +1862,11 @@ - + - + [r_fieldWeak] @@ -1898,87 +1883,6 @@ - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -1991,11 +1895,11 @@ - + - + [VqFin] @@ -2013,11 +1917,11 @@ - + - + sfix16_En4 @@ -2039,11 +1943,11 @@ - + - + [a_elecAngle] @@ -2061,11 +1965,11 @@ - + - + sfix16_En6 @@ -2075,6 +1979,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En14 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + @@ -2110,29 +2110,44 @@ - - - + + + - - + + - + - - [a_elecAngle] + + [V_phaABC_SIN] - - + + + + + + + + + + + + + + + + + sfix16_En4 @@ -2152,20 +2167,20 @@ - - - - - - - - + + + + + + + + @@ -2183,107 +2198,11 @@ - + - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [V_phaABC_SIN] - - - - - - - - - - - - - - - - - - - - - + sfix16_En4 @@ -2305,11 +2224,11 @@ - + - + 4 @@ -2327,11 +2246,11 @@ - + - + r_fieldWeak @@ -2342,11 +2261,11 @@ - + - + sfix16_En4 @@ -2368,11 +2287,11 @@ - + - + 3 @@ -2390,11 +2309,11 @@ - + - + z_dir @@ -2405,11 +2324,11 @@ - + - + int8 @@ -2421,44 +2340,29 @@ - - - + + + - - + + - - + + - - 0 + + [z_dir] - - - - - - - - - - - - - - - - - uint8 + + @@ -2479,11 +2383,11 @@ - + - + 2 @@ -2501,11 +2405,11 @@ - + - + a_elecAngle @@ -2516,11 +2420,11 @@ - + - + sfix16_En6 @@ -2530,6 +2434,54 @@ + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -2542,11 +2494,11 @@ - + - + 1 @@ -2564,11 +2516,11 @@ - + - + VqFin @@ -2579,11 +2531,11 @@ - + - + sfix16_En4 @@ -2593,6 +2545,54 @@ + + + + + + + + + + + + + + + + + + 0 + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + @@ -2638,10 +2638,10 @@ - + - + @@ -2913,5 +2913,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9743_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9743_d.json index cc4d007..51ef8c9 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9743_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9743_d.json @@ -752,6 +752,119 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9791", + "className":"Simulink.Constant", + "icon":"WebViewIcon3", + "name":"b_fieldWeakEna", + "label":"b_fieldWeakEna", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "Value", + "VectorParams1D", + "SampleTime", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "FramePeriod" + ], + "values":[ + "b_fieldWeakEna", + "on", + "inf", + "[]", + "[]", + "boolean", + "off", + "inf" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 3, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9758", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto4", + "label":"Goto4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:10175", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9743", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_fieldWeak", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:10035", "className":"Simulink.SubSystem", @@ -849,119 +962,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9791", - "className":"Simulink.Constant", - "icon":"WebViewIcon3", - "name":"b_fieldWeakEna", - "label":"b_fieldWeakEna", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9743", - "inspector":{ - "params":[ - "Value", - "VectorParams1D", - "SampleTime", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "FramePeriod" - ], - "values":[ - "b_fieldWeakEna", - "on", - "inf", - "[]", - "[]", - "boolean", - "off", - "inf" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 3, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:10175", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9743", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_fieldWeak", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9758", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto4", - "label":"Goto4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9743", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_fieldWeak", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9794", "className":"Simulink.From", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9743_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9743_d.svg index ff27dd3..043fdcb 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9743_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9743_d.svg @@ -993,6 +993,150 @@ + + + + + + + + + + + + + + + + + + b_fieldWeakEna + + + + + + + + + + + + + + + + + + + + + + b_fieldWeakEna + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_fieldWeak] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -1011,27 +1155,27 @@ - + - + num - + - + div - + - + rem @@ -1061,11 +1205,11 @@ - + - + sfix16_En6 @@ -1077,29 +1221,29 @@ - + - + - + - + - + - + @@ -1113,157 +1257,13 @@ - + - - - - - - - - - - - - - - - b_fieldWeakEna - - - - - - - - - - - - - - - - - - - - - - b_fieldWeakEna - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_fieldWeak] - - - - - - - - - - - - - - - - - - @@ -1689,5 +1689,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9842_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9842_d.svg index 463e588..02c17b7 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9842_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9842_d.svg @@ -63,7 +63,7 @@ - + @@ -171,5 +171,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9904_d.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9904_d.json index d07e971..9f4adbf 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9904_d.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9904_d.json @@ -110,6 +110,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9823", + "className":"Simulink.Goto", + "icon":"WebViewIcon3", + "name":"Goto7", + "label":"Goto7", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9904", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "V_phaABC_COM", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9912", "className":"Simulink.Goto", @@ -176,68 +209,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9453", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From4", - "label":"From4", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9904", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "VqFin", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9913", - "className":"Simulink.From", - "icon":"WebViewIcon3", - "name":"From", - "label":"From", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9904", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "V_phaABC_COM", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9211", "className":"Simulink.From", @@ -269,96 +240,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9209", - "className":"Simulink.Product", - "icon":"WebViewIcon3", - "name":"Divide2", - "label":"Divide2", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9904", - "inspector":{ - "params":[ - "Inputs", - "Multiplication", - "InputSameDT", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "RndMeth", - "SaturateOnIntegerOverflow", - "CollapseDim", - "CollapseMode", - "SampleTime" - ], - "values":[ - "**", - "Element-wise(.*)", - "off", - "[]", - "[]", - "Inherit: Same as first input", - "off", - "Simplest", - "off", - "1", - "All dimensions", - "-1" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 9 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotor_FOC_R2017b_fixdt:9823", - "className":"Simulink.Goto", - "icon":"WebViewIcon3", - "name":"Goto7", - "label":"Goto7", - "parent":"BLDCmotor_FOC_R2017b_fixdt:9904", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "V_phaABC_COM", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9236", "className":"Simulink.LookupNDDirect", @@ -479,6 +360,37 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9913", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From", + "label":"From", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9904", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "V_phaABC_COM", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9909", "className":"Simulink.Inport", @@ -546,6 +458,94 @@ "masktype":"" } }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9453", + "className":"Simulink.From", + "icon":"WebViewIcon3", + "name":"From4", + "label":"From4", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9904", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "VqFin", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotor_FOC_R2017b_fixdt:9209", + "className":"Simulink.Product", + "icon":"WebViewIcon3", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotor_FOC_R2017b_fixdt:9904", + "inspector":{ + "params":[ + "Inputs", + "Multiplication", + "InputSameDT", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "RndMeth", + "SaturateOnIntegerOverflow", + "CollapseDim", + "CollapseMode", + "SampleTime" + ], + "values":[ + "**", + "Element-wise(.*)", + "off", + "[]", + "[]", + "Inherit: Same as first input", + "off", + "Simplest", + "off", + "1", + "All dimensions", + "-1" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 9 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, { "sid":"BLDCmotor_FOC_R2017b_fixdt:9209#out:1", "className":"Simulink.Line", diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9904_d.svg b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9904_d.svg index 08e3d9a..43a2b77 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9904_d.svg +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9904_d.svg @@ -92,6 +92,39 @@ + + + + + + + + + + + + + + + + + + [V_phaABC_COM] + + + + + + + + + + + + + + + @@ -104,11 +137,11 @@ - + - + [VqFin] @@ -137,11 +170,11 @@ - + - + [z_pos] @@ -158,102 +191,6 @@ - - - - - - - - - - - - - - - - - - [VqFin] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [V_phaABC_COM] - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - @@ -266,11 +203,11 @@ - + - + [z_pos] @@ -288,11 +225,11 @@ - + - + int8 @@ -302,113 +239,104 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - sfix16_En4 - - - - - - - - - - - - - - - - - - - - - - - - - - [V_phaABC_COM] - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + @@ -416,7 +344,7 @@ - + @@ -424,7 +352,7 @@ - + @@ -432,7 +360,7 @@ - + @@ -440,7 +368,7 @@ - + @@ -448,7 +376,7 @@ - + @@ -456,102 +384,22 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + 2-D T[k] @@ -569,11 +417,11 @@ - + - + z_commutMap_M1 @@ -584,11 +432,11 @@ - + - + int8 @@ -610,11 +458,11 @@ - + - + 2 @@ -632,11 +480,11 @@ - + - + z_pos @@ -647,11 +495,11 @@ - + - + int8 @@ -661,6 +509,54 @@ + + + + + + + + + + + + + + + + + + [V_phaABC_COM] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + @@ -673,11 +569,11 @@ - + - + 1 @@ -695,11 +591,11 @@ - + - + VqFin @@ -710,11 +606,115 @@ - + - + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + [VqFin] + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sfix16_En4 @@ -824,5 +824,5 @@ - + diff --git a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_h_1.json b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_h_1.json index fff5e7a..46d8644 100644 --- a/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_h_1.json +++ b/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_h_1.json @@ -39,126 +39,126 @@ "elements":[ ":9309", ":9308", - ":9307", ":10192", - ":9305", + ":9307", + ":9304", + ":9303", ":9302", ":9299", - ":9298", ":10064", ":11487", - ":10164", - ":10751", - ":10749", - ":10156", + ":9441", + ":9298", ":9293", - ":9306", - ":9304", - ":9292", - ":10158", - ":9288", - ":9287", - ":9286", - ":11488", + ":10258", + ":9291", + ":9301", + ":9284", + ":9282", + ":9934", + ":9281", ":11349", ":10189", ":9272", - ":10188", - ":10187", ":9278", - ":9277", - ":9303", + ":9276", + ":9275", ":9456", - ":9271", + ":9252", + ":9280", + ":9251", ":9241", ":9263", - ":9262", - ":11489", + ":9286", + ":11518", ":11019", - ":10258", - ":10259", + ":10355", + ":9297", + ":11488", + ":9300", ":9268", - ":9285", + ":9289", ":9267", - ":9265", - ":9264", + ":9287", + ":10259", ":9260", + ":9277", ":9930", ":9261", - ":9284", + ":9258", ":9259", ":10257", - ":10160", - ":10159", - ":11305", - ":9274", - ":11304", - ":9266", - ":9935", - ":9249", - ":9280", - ":9289", - ":9297", - ":9244", - ":11303", - ":9252", - ":9275", - ":10191", - ":9448", - ":9437", - ":9418", - ":9276", - ":9441", - ":11351", - ":9269", - ":9198", - ":9301", - ":9290", - ":11518", - ":8658", - ":9931", - ":10066", - ":9291", + ":10187", ":11306", - ":11302", - ":9282", - ":9240", - ":10155", - ":11151", - ":9720", - ":11485", - ":9251", - ":8220", - ":8469", - ":10161", - ":10065", - ":9270", - ":8210", - ":10154", - ":10139", - ":11556", - ":8208", - ":10355", - ":10692", - ":9245", - ":9283", - ":8207", - ":8209", ":9253", - ":10356", + ":9264", + ":11489", + ":10749", + ":11304", + ":9305", + ":9935", + ":9245", + ":9274", + ":9279", + ":9720", + ":10191", + ":10159", + ":9198", + ":11305", + ":9437", + ":11485", + ":10751", + ":9266", + ":9931", + ":9270", + ":11302", + ":8658", + ":9262", + ":11303", + ":9283", + ":9269", + ":10155", + ":9244", + ":9240", + ":9271", ":9250", + ":9306", + ":10356", + ":10066", + ":9418", + ":9290", + ":9292", + ":8220", + ":9249", + ":9265", + ":11151", + ":10065", + ":10158", + ":10156", + ":11351", + ":9288", + ":8209", + ":9448", + ":8469", + ":8207", + ":10160", + ":8210", + ":8206", + ":10164", ":8205", ":11348", - ":9281", + ":10188", + ":11700", + ":10161", ":8204", - ":9934", - ":8202", - ":8201", - ":9279", - ":8206", - ":9300", - ":9258", ":8203", + ":10154", + ":9285", + ":10139", + ":8202", + ":8208", + ":10692", + ":8201", ":10157", ":10255", ":9268#out:1", @@ -256,7 +256,8 @@ ":11485#out:1", ":11489#out:1", ":11518#out:1", - ":11487#out:1" + ":11487#out:1", + ":11700#out:1" ], "sameAsElement":true }, @@ -309,41 +310,41 @@ ":8464", ":8426", ":8428", - ":8468", + ":9433", + ":8467", + ":8466", + ":9933", + ":8463", + ":11413", ":11402", + ":8462", ":11355", ":8460", + ":8458", ":11353", - ":11413", - ":8451", - ":8450", - ":8449", - ":8463", - ":9433", - ":8457", + ":8468", + ":9432", + ":8446", + ":9932", + ":9431", + ":8437", ":8436", ":8435", ":8434", - ":8427", - ":8458", - ":11414", - ":8384", - ":9432", - ":9932", - ":8462", - ":9933", - ":8431", ":8429", - ":9431", - ":8461", - ":8430", - ":11352", - ":8437", - ":8466", - ":8467", - ":11357", - ":8446", ":8432", + ":11357", + ":8457", + ":8384", + ":11414", + ":8427", + ":8449", + ":8430", + ":8451", + ":8450", + ":8461", + ":8431", + ":11352", ":8462#out:1", ":8440#out:1", ":8439#out:1", @@ -413,9 +414,9 @@ ":8227", ":8228", ":8234", - ":8233", ":8232", ":8231", + ":8233", ":9634", ":8226#out:1", ":8228#out:1", @@ -492,8 +493,8 @@ ":8252", ":8262", ":8260", - ":8259", ":8249", + ":8259", ":8259#out:1", ":8255#out:1", ":8253#out:1", @@ -545,58 +546,58 @@ ":8296", ":8379", ":9430", - ":8378", - ":8377", - ":8373", - ":9429", - ":8372", - ":11461", - ":8369", - ":8366", - ":8312", - ":8311", + ":8374", + ":8371", + ":8370", ":9428", ":8314", - ":8308", - ":8300", - ":8297", - ":8294", - ":8289", - ":8291", - ":8305", - ":8285", - ":8371", - ":9477", - ":8292", - ":8283", - ":8370", - ":8284", - ":8280", - ":8293", - ":9427", - ":8376", - ":8278", - ":8277", - ":8276", - ":8281", - ":8275", - ":8303", - ":8286", - ":8282", - ":8298", - ":8374", - ":8306", - ":8272", - ":8299", - ":9425", - ":8268", - ":9426", - ":8267", - ":8301", - ":8270", + ":8312", ":8313", - ":11462", + ":8308", + ":8369", + ":8303", + ":8300", + ":8298", + ":8297", + ":8301", + ":8293", + ":8366", + ":8292", + ":8376", + ":8373", + ":8305", + ":8289", + ":9429", + ":8286", + ":8284", + ":9477", + ":8283", + ":8282", + ":8294", + ":8378", + ":11461", + ":9425", + ":8377", + ":8285", + ":8311", + ":8281", + ":8280", + ":8277", + ":9426", + ":8299", + ":8275", + ":9427", + ":8270", + ":8278", + ":8268", + ":8306", + ":8267", + ":8272", + ":8276", + ":8372", + ":8291", ":8309", + ":11462", ":8310", ":8293#out:1", ":8312#out:1", @@ -667,12 +668,12 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8272_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8272_d.json", "elements":[ - ":8272:2515", + ":8272:2418", ":8272:2416", ":8272:2415", ":8272:2414", + ":8272:2515", ":8272:2413", - ":8272:2418", ":8272:2412", ":8272:2515#out:1", ":8272:2415#out:1", @@ -732,51 +733,51 @@ ":8363", ":8364", ":8365", - ":8357", - ":8355", - ":8351", - ":8353", - ":8347", - ":8346", - ":8348", - ":8344", - ":8341", - ":8340", - ":8331", - ":8330", - ":8329", - ":8328", - ":8332", - ":8342", - ":8345", - ":8335", - ":8325", ":8360", - ":8327", - ":8336", - ":8323", - ":8352", + ":8358", + ":8357", + ":8356", + ":8355", + ":8354", + ":8351", ":8349", ":8350", - ":8333", - ":8322", - ":8354", - ":8320", - ":8356", - ":8319", - ":8318", - ":8326", - ":8317", - ":8321", - ":8334", - ":8337", - ":8316", - ":8338", + ":8348", + ":8346", + ":8345", + ":8344", + ":8342", + ":8341", ":8339", - ":8359", - ":8315", - ":8358", + ":8347", + ":8340", + ":8336", + ":8335", + ":8352", + ":8331", + ":8330", + ":8327", + ":8326", + ":8353", + ":8337", + ":8321", + ":8322", + ":8325", ":8324", + ":8332", + ":8338", + ":8318", + ":8333", + ":8359", + ":8317", + ":8319", + ":8316", + ":8334", + ":8328", + ":8320", + ":8323", + ":8315", + ":8329", ":8343", ":8315#out:1", ":8316#out:1", @@ -853,6 +854,7 @@ ":8416", ":8391", ":8421", + ":8420", ":8418", ":8417", ":11415", @@ -860,22 +862,21 @@ ":9660", ":8412", ":8405", - ":8403", - ":8397", - ":8394", + ":8411", + ":8404", + ":8400", + ":8398", + ":8396", + ":8393", ":8392", ":8395", - ":8393", - ":8404", - ":8396", - ":9665", - ":8389", ":11459", - ":8400", - ":8420", - ":8398", + ":8397", + ":8389", ":8410", - ":8411", + ":9665", + ":8403", + ":8394", ":8385#out:1", ":8386#out:1", ":8399#out:1", @@ -930,18 +931,18 @@ ":11437", ":11358", ":11381", + ":11410", + ":11409", ":11408", ":11412", ":11419", - ":11375", ":11411", ":11438", - ":11409", - ":11418", ":11460", - ":11406", + ":11418", ":11398", - ":11410", + ":11406", + ":11375", ":11375#out:1", ":11358#out:1", ":11410#out:1", @@ -1014,52 +1015,52 @@ ":8526", ":8499", ":8497", - ":8521", - ":8520", - ":8519", - ":9405", - ":8515", - ":8514", - ":9404", - ":8510", - ":8524", - ":8508", + ":8527", ":8525", + ":9398", + ":8524", + ":8521", + ":8515", + ":9404", + ":8520", + ":8509", + ":8519", + ":11021", ":8504", ":9395", - ":8503", - ":11022", - ":9398", - ":8527", - ":9406", - ":8492", - ":11021", - ":9407", + ":8514", ":9397", + ":8503", ":8500", - ":9402", - ":9400", - ":8486", - ":8493", - ":8487", - ":8482", - ":8509", - ":8480", - ":9412", - ":8479", - ":9410", - ":8474", - ":8483", - ":8484", - ":9403", - ":9396", - ":9408", - ":8494", + ":11022", ":8491", + ":9402", + ":8493", + ":9400", + ":9408", + ":8510", + ":8492", + ":8482", + ":8480", + ":8479", ":8478", + ":8484", + ":8494", ":8517", - ":11020", + ":8508", ":9394", + ":9412", + ":9396", + ":9410", + ":8483", + ":8486", + ":8474", + ":9406", + ":9405", + ":11020", + ":9407", + ":8487", + ":9403", ":9401", ":8497#out:1", ":8470#out:1", @@ -1124,39 +1125,39 @@ "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_d.json", "elements":[ ":8486:2496", - ":8486:2472", - ":8486:2463", - ":8486:2461", - ":8486:2460", - ":8486:2459", - ":8486:2458", - ":8486:2507", - ":8486:2466", - ":8486:2473", - ":8486:2453", - ":8486:2451", - ":8486:2462", - ":8486:2452", - ":8486:2450", - ":8486:2455", - ":8486:2465", - ":8486:2428", - ":8486:2457", - ":8486:2421", - ":8486:2464", - ":8486:2449", - ":8486:2456", - ":8486:2423", - ":8486:2448", - ":8486:2454", ":8486:2509", - ":8486:2422", ":8486:2467", + ":8486:2472", + ":8486:2466", + ":8486:2464", + ":8486:2461", + ":8486:2462", + ":8486:2459", + ":8486:2507", + ":8486:2460", + ":8486:2449", + ":8486:2450", + ":8486:2454", + ":8486:2448", + ":8486:2456", + ":8486:2463", + ":8486:2451", + ":8486:2473", + ":8486:2452", + ":8486:2455", + ":8486:2428", + ":8486:2458", + ":8486:2423", + ":8486:2422", + ":8486:2457", ":8486:2420", + ":8486:2421", + ":8486:2453", + ":8486:2465", ":8486:2470", + ":8486:2468", ":8486:2471", ":8486:2469", - ":8486:2468", ":8486:2507#out:1", ":8486:2422#out:1", ":8486:2421#out:1", @@ -1205,9 +1206,9 @@ "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2423_d.json", "elements":[ ":8486:2427", + ":8486:2426", ":8486:2425", ":8486:2424", - ":8486:2426", ":8486:2424#out:1" ], "sameAsElement":true @@ -1228,24 +1229,24 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2428_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2428_d.json", "elements":[ + ":8486:2447", ":8486:2446", ":8486:2445", - ":8486:2444", - ":8486:2442", - ":8486:2441", - ":8486:2447", ":8486:2440", + ":8486:2442", ":8486:2439", - ":8486:2443", - ":8486:2438", ":8486:2437", + ":8486:2436", + ":8486:2444", + ":8486:2435", ":8486:2434", + ":8486:2443", ":8486:2433", ":8486:2432", + ":8486:2441", + ":8486:2438", ":8486:2431", - ":8486:2436", ":8486:2430", - ":8486:2435", ":8486:2429", ":8486:2438#out:1", ":8486:2429#out:1", @@ -1280,12 +1281,12 @@ "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2435_d.json", "elements":[ ":8486:2435:2418", - ":8486:2435:2515", ":8486:2435:2416", - ":8486:2435:2413", - ":8486:2435:2414", ":8486:2435:2415", + ":8486:2435:2515", + ":8486:2435:2414", ":8486:2435:2412", + ":8486:2435:2413", ":8486:2435:2515#out:1", ":8486:2435:2415#out:1", ":8486:2435:2413#out:1", @@ -1341,24 +1342,24 @@ "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2473_d.json", "elements":[ ":8486:2492", - ":8486:2490", + ":8486:2489", ":8486:2488", ":8486:2485", - ":8486:2483", ":8486:2482", - ":8486:2491", + ":8486:2490", ":8486:2481", - ":8486:2480", - ":8486:2478", - ":8486:2477", - ":8486:2479", - ":8486:2476", - ":8486:2484", - ":8486:2475", - ":8486:2489", - ":8486:2474", - ":8486:2487", + ":8486:2491", ":8486:2486", + ":8486:2484", + ":8486:2479", + ":8486:2478", + ":8486:2480", + ":8486:2476", + ":8486:2487", + ":8486:2477", + ":8486:2483", + ":8486:2475", + ":8486:2474", ":8486:2480#out:1", ":8486:2491#out:1", ":8486:2481#out:1", @@ -1391,13 +1392,13 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2480_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8486_2480_d.json", "elements":[ - ":8486:2480:2515", ":8486:2480:2418", - ":8486:2480:2415", + ":8486:2480:2515", ":8486:2480:2414", ":8486:2480:2413", - ":8486:2480:2416", ":8486:2480:2412", + ":8486:2480:2416", + ":8486:2480:2415", ":8486:2480:2515#out:1", ":8486:2480:2415#out:1", ":8486:2480:2413#out:1", @@ -1508,43 +1509,43 @@ ":11283", ":11301", ":11299", - ":11298", ":11499", + ":11297", ":11296", ":11295", ":11293", - ":11294", + ":11292", ":11290", + ":11289", ":11287", ":11286", + ":11285", + ":11284", + ":11298", + ":11288", + ":11498", ":11282", + ":11280", + ":11279", + ":11278", ":11277", + ":11294", ":11275", ":11281", - ":11285", - ":11276", - ":11274", - ":11288", - ":11201", - ":11200", - ":11280", - ":11297", - ":11284", - ":11157", ":11291", - ":11292", - ":11158", - ":11278", - ":11156", - ":11497", - ":11154", - ":11153", - ":11279", - ":11498", ":11159", - ":11152", + ":11156", + ":11201", + ":11276", + ":11158", ":11155", - ":11289", + ":11200", + ":11274", + ":11154", + ":11497", + ":11153", + ":11152", + ":11157", ":11283#out:1", ":11153#out:1", ":11275#out:1", @@ -1591,53 +1592,53 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11159_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11159_d.json", "elements":[ - ":11198", - ":11193", - ":11192", - ":11197", - ":11188", - ":11195", - ":11191", ":11196", - ":11181", + ":11195", + ":11190", + ":11189", + ":11188", ":11180", ":11179", - ":11178", ":11177", - ":11176", - ":11175", - ":11174", - ":11182", - ":11172", - ":11171", - ":11493", - ":11189", - ":11169", - ":11168", + ":11181", ":11496", + ":11176", + ":11493", ":11491", - ":11167", - ":11495", - ":11199", - ":11165", - ":11170", - ":11163", - ":11160", + ":11175", + ":11169", + ":11182", ":11173", - ":11162", - ":11190", + ":11168", ":11166", - ":11161", - ":11164", + ":11191", + ":11178", ":11194", - ":11184", - ":11183", - ":11486", - ":11185", - ":11492", + ":11172", + ":11167", + ":11164", + ":11174", + ":11163", + ":11198", + ":11192", + ":11162", + ":11171", + ":11193", + ":11495", + ":11160", + ":11199", + ":11170", + ":11161", + ":11165", + ":11197", ":11187", + ":11486", + ":11184", + ":11185", + ":11183", ":11494", ":11186", + ":11492", ":11183#out:1", ":11168#out:1", ":11194#out:1", @@ -1695,19 +1696,19 @@ ":11200:28", ":11200:6", ":11200:4", - ":11200:32", + ":11200:12", + ":11200:71", ":11200:72", + ":11200:9", + ":11200:31", + ":11200:33", + ":11200:32", ":11200:73", ":11200:30", - ":11200:9", - ":11200:71", - ":11200:33", - ":11200:12", - ":11200:31", ":11200:1", - ":11200:14", + ":11200:13", ":11200:2", - ":11200:13" + ":11200:14" ], "sameAsElement":false }, @@ -1732,36 +1733,36 @@ "elements":[ ":11272", ":11273", - ":11254", - ":11253", - ":11270", - ":11251", - ":11249", - ":11248", - ":11243", - ":11241", - ":11245", - ":11240", - ":11252", - ":11244", - ":11215", - ":11242", ":11271", - ":11238", + ":11270", + ":11254", ":11250", - ":11211", - ":11207", + ":11252", + ":11249", ":11247", - ":11205", - ":11206", - ":11204", + ":11246", + ":11253", + ":11244", + ":11243", + ":11240", + ":11239", + ":11245", ":11236", ":11237", ":11235", - ":11239", + ":11215", + ":11251", + ":11242", + ":11207", + ":11206", + ":11205", + ":11241", + ":11204", ":11203", + ":11248", ":11202", - ":11246", + ":11238", + ":11211", ":11215#out:1", ":11241#out:1", ":11238#out:1", @@ -1826,8 +1827,8 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11211_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11211_d.json", "elements":[ - ":11214", ":11213", + ":11214", ":11212", ":11212#out:1" ], @@ -1849,23 +1850,23 @@ "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11215_d.json", "elements":[ ":11234", - ":11232", - ":11230", + ":11233", ":11229", + ":11227", + ":11230", + ":11222", ":11231", ":11228", - ":11226", - ":11224", - ":11222", ":11221", - ":11223", - ":11227", - ":11233", + ":11226", ":11220", - ":11219", - ":11218", - ":11217", ":11225", + ":11218", + ":11223", + ":11219", + ":11224", + ":11217", + ":11232", ":11216", ":11216#out:1", ":11221#out:1", @@ -1902,20 +1903,20 @@ "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11254_d.json", "elements":[ ":11269", - ":11267", - ":11264", - ":11263", - ":11266", ":11268", - ":11259", - ":11258", - ":11262", - ":11260", - ":11256", + ":11267", + ":11266", ":11265", + ":11263", + ":11262", + ":11264", + ":11260", ":11261", - ":11255", + ":11258", ":11257", + ":11259", + ":11256", + ":11255", ":11255#out:1", ":11257#out:1", ":11267#out:1", @@ -1948,15 +1949,15 @@ "elements":[ ":11265:2353", ":11265:2343", - ":11265:2346", - ":11265:2395", ":11265:2360", ":11265:2358", + ":11265:2395", ":11265:2357", - ":11265:2355", - ":11265:2356", ":11265:2342", + ":11265:2355", + ":11265:2346", ":11265:2359", + ":11265:2356", ":11265:2356#out:1", ":11265:2342#out:1", ":11265:2359#out:1", @@ -2079,40 +2080,40 @@ ":10522", ":10521", ":10519", - ":10517", - ":10516", + ":10518", ":10514", - ":10520", ":10513", - ":10511", + ":10516", ":10510", - ":10508", ":10506", ":10504", - ":10515", - ":10502", + ":10520", + ":10503", ":10501", + ":10502", + ":10512", ":10499", ":10498", - ":10503", - ":10495", - ":10494", + ":10515", + ":10505", + ":10517", ":10497", + ":10495", + ":10508", + ":10493", ":10492", - ":10509", + ":10507", + ":10491", ":10490", ":10496", - ":10505", - ":10489", - ":10507", - ":10518", - ":10493", - ":10500", ":10488", + ":10511", + ":10509", + ":10494", ":10487", - ":10491", ":10486", - ":10512", + ":10500", + ":10489", ":10514#out:1", ":10500#out:1", ":10513#out:1", @@ -2254,127 +2255,127 @@ ":9025", ":9197", ":9195", - ":10447", - ":8743", + ":10173", ":9045", - ":9028", - ":9072", ":9027", + ":10447", ":8913", + ":9028", + ":10363", ":10365", + ":8863", ":8862", + ":8861", + ":9072", ":10359", + ":11517", ":8858", ":8857", - ":8853", + ":11472", ":9717", - ":8851", + ":10728", ":8849", - ":10363", - ":8845", + ":10719", ":8844", ":8843", ":8842", - ":10703", - ":10728", + ":8851", + ":8838", + ":8837", ":10360", + ":10687", + ":10686", ":10395", - ":8846", - ":10394", + ":10172", ":11484", ":8826", - ":8825", - ":10439", - ":10438", - ":11472", - ":8811", - ":8848", - ":8810", - ":10432", - ":8861", - ":8807", - ":8806", - ":10444", - ":10726", - ":8850", - ":10719", - ":8796", - ":10698", - ":8839", - ":8788", - ":8787", - ":10174", - ":8784", - ":9718", - ":8781", - ":10441", - ":8772", ":10428", - ":10686", - ":8768", - ":8864", - ":10393", - ":10435", - ":9713", - ":9196", - ":8794", - ":8856", - ":10429", - ":8790", - ":10171", - ":10437", - ":8795", - ":10364", - ":8797", - ":8726", - ":8783", - ":10701", - ":10445", - ":10446", - ":10431", + ":10439", ":8817", - ":10689", - ":10743", - ":11515", - ":10729", - ":10697", - ":8863", - ":11516", - ":11471", - ":8798", - ":8782", - ":10702", - ":10362", - ":11023", - ":10434", - ":8776", - ":8667", - ":8664", - ":11517", - ":10173", + ":10441", ":8815", ":10433", - ":10707", - ":10436", - ":9716", - ":10357", - ":10448", - ":10440", - ":10691", - ":8838", - ":10688", - ":8660", - ":10358", - ":10687", - ":8786", - ":8663", - ":8837", - ":10172", + ":8810", + ":8845", + ":10432", + ":8856", + ":8807", + ":10362", + ":10743", + ":10444", + ":10726", + ":8797", + ":8794", + ":8839", + ":10701", + ":8864", + ":8790", + ":10697", + ":10438", + ":10171", + ":8787", + ":10174", + ":8782", + ":8776", ":8775", - ":10430", - ":8659", + ":10440", + ":8783", + ":10436", + ":8772", + ":11515", + ":8788", + ":10707", + ":10435", + ":10393", + ":10688", + ":8798", + ":8850", + ":8795", + ":9713", + ":10394", + ":8796", + ":8846", + ":8786", + ":10431", + ":10698", + ":10364", + ":8806", + ":8811", + ":9718", + ":9196", + ":8743", + ":10448", + ":10445", + ":10702", + ":10429", + ":8667", + ":8784", + ":11023", + ":11516", + ":11471", + ":10689", + ":10703", + ":10434", + ":8663", + ":8825", + ":10729", ":8662", + ":9716", + ":10446", + ":10691", + ":10430", + ":8768", + ":8848", + ":10437", + ":10357", + ":8664", ":8661", + ":8660", + ":8726", + ":8659", + ":10358", + ":8853", + ":8781", ":8827#out:1", ":8886#out:1", ":8886#out:2", @@ -2505,41 +2506,41 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11023_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11023_d.json", "elements":[ - ":11101", ":11100", - ":11099", ":11098", - ":11094", - ":11092", - ":11091", + ":11097", + ":11096", + ":11093", ":11090", ":11095", + ":11088", + ":11091", + ":11087", + ":11086", ":11085", + ":11094", ":11083", - ":11082", - ":11093", ":11080", - ":11089", - ":11097", + ":11079", ":11077", ":11076", - ":11075", ":11074", - ":11079", - ":11086", - ":11087", - ":11096", - ":11073", - ":11026", - ":11081", - ":11088", - ":11041", + ":11072", + ":11089", + ":11101", ":11056", + ":11082", + ":11092", + ":11073", + ":11099", + ":11026", + ":11075", + ":11081", ":11025", ":11084", - ":11072", - ":11024", ":11078", + ":11041", + ":11024", ":11056#out:1", ":11079#out:1", ":11078#out:1", @@ -2588,18 +2589,18 @@ "elements":[ ":11040", ":11039", - ":11037", - ":11036", - ":11033", ":11038", + ":11036", + ":11037", + ":11034", + ":11032", + ":11033", + ":11031", + ":11030", + ":11029", ":11035", ":11028", - ":11029", - ":11030", ":11027", - ":11034", - ":11031", - ":11032", ":11028#out:1", ":11027#out:1", ":11030#out:1", @@ -2627,18 +2628,18 @@ "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_11041_d.json", "elements":[ ":11055", - ":11053", ":11051", ":11050", ":11049", - ":11048", - ":11044", ":11047", - ":11045", ":11046", - ":11052", - ":11043", + ":11045", ":11054", + ":11053", + ":11044", + ":11043", + ":11048", + ":11052", ":11042", ":11051#out:1", ":11052#out:1", @@ -2669,18 +2670,18 @@ ":11071", ":11070", ":11069", - ":11065", - ":11062", - ":11067", - ":11066", - ":11061", - ":11059", - ":11064", - ":11058", - ":11057", - ":11063", ":11068", + ":11066", + ":11064", + ":11062", ":11060", + ":11059", + ":11058", + ":11063", + ":11067", + ":11065", + ":11061", + ":11057", ":11061#out:1", ":11060#out:1", ":11063#out:1", @@ -2709,23 +2710,23 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8726_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8726_d.json", "elements":[ - ":8739", - ":8742", - ":8738", - ":8737", + ":8740", ":8741", + ":8739", + ":8737", ":8734", - ":8736", + ":8742", + ":8735", + ":8730", + ":9714", + ":8729", ":8733", ":8731", - ":8735", - ":8729", - ":9714", - ":8732", ":8728", ":8727", - ":8730", - ":8740", + ":8736", + ":8738", + ":8732", ":8739#out:1", ":8729#out:2", ":8740#out:1", @@ -2755,14 +2756,14 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8738_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_8738_d.json", "elements":[ - ":8738:2903", + ":8738:2904", ":8738:2902", ":8738:2901", - ":8738:2904", - ":8738:2900", + ":8738:2903", ":8738:2899", - ":8738:2898", + ":8738:2900", ":8738:2897", + ":8738:2898", ":8738:2898#out:1", ":8738:2900#out:1", ":8738:2897#out:1", @@ -2793,103 +2794,103 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10364_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10364_d.json", "elements":[ - ":10368", - ":9171", + ":9143", ":9108", - ":9074", ":8912", - ":9715", - ":10391", + ":10425", + ":10420", ":10419", - ":10421", + ":10370", ":8852", ":10388", - ":10387", + ":11514", + ":10368", ":11477", + ":10735", + ":8841", + ":10412", + ":9074", ":10409", ":10723", - ":10418", - ":8831", - ":10420", - ":10398", - ":10408", - ":10030", - ":8834", - ":10427", ":10722", - ":8816", - ":8814", - ":8824", - ":8802", - ":8813", - ":10742", - ":8799", - ":8801", - ":10411", - ":10730", - ":8812", - ":10413", - ":8793", - ":10367", - ":8791", - ":8792", + ":8831", + ":10398", ":11482", - ":8780", - ":8841", - ":10724", - ":8823", - ":8779", - ":10369", - ":8771", - ":8766", - ":10366", - ":8777", - ":11476", - ":8789", - ":10370", - ":10416", - ":10721", - ":8809", - ":10720", - ":10423", - ":8800", - ":10422", - ":11512", - ":10407", - ":8770", - ":8773", - ":9143", - ":8830", - ":8832", - ":10406", - ":10417", - ":9029", - ":8804", - ":10415", - ":10403", - ":10405", - ":10402", - ":10426", - ":10410", - ":10425", - ":9109", - ":10734", ":10424", - ":8774", - ":10404", - ":10735", - ":8765", - ":8803", - ":10412", - ":10397", - ":10372", ":11478", - ":10414", - ":11514", + ":8823", + ":10367", + ":8814", + ":8813", + ":10030", + ":9109", + ":8812", + ":8816", + ":8809", ":8808", - ":10371", - ":10373", + ":10742", + ":8803", + ":10391", + ":8802", + ":8801", + ":8799", + ":10730", + ":10408", + ":8793", + ":9029", + ":8789", + ":10724", + ":10413", + ":8780", + ":10369", + ":8774", + ":8773", + ":8792", + ":8832", + ":10421", + ":11512", + ":8791", + ":8766", + ":8771", + ":8765", + ":10366", + ":8830", + ":10411", ":11513", + ":10418", + ":10427", + ":10720", + ":10406", + ":10415", + ":9171", + ":10721", + ":11476", + ":10414", + ":10422", + ":10405", + ":9715", + ":10417", + ":10410", + ":8800", + ":8770", + ":10403", + ":10397", + ":10423", + ":8777", + ":10402", + ":10387", + ":8779", + ":10734", + ":10373", + ":10426", + ":10416", + ":10372", + ":8804", + ":8824", + ":10371", + ":8834", + ":10404", + ":10407", ":8766#out:1", ":8770#out:1", ":8779#out:1", @@ -2979,8 +2980,8 @@ "elements":[ ":9044", ":9043", - ":9030", ":9031", + ":9030", ":9030#out:1" ], "sameAsElement":true @@ -3003,61 +3004,61 @@ "elements":[ ":9709", ":11681", - ":9106", ":11534", - ":11677", ":9105", - ":9104", + ":9106", + ":11676", ":11675", - ":9101", - ":11674", - ":11672", + ":11671", ":10455", ":11670", - ":11680", - ":11564", - ":11511", + ":11673", + ":11672", ":9095", - ":9094", ":9093", ":9092", - ":11669", - ":11676", - ":9091", - ":11679", - ":11665", - ":9090", - ":11565", - ":11673", - ":9088", - ":11658", ":11500", - ":11671", - ":11660", - ":9087", - ":11678", - ":11501", - ":11659", + ":9101", + ":11667", + ":11511", + ":11665", ":11480", + ":11659", + ":9088", + ":11679", ":11481", - ":11510", - ":9082", - ":11666", + ":11658", ":11657", - ":11479", + ":11664", ":11663", + ":9090", + ":9082", + ":9089", + ":11501", + ":11662", + ":11510", + ":9104", + ":11677", + ":9087", + ":11479", + ":11669", + ":9091", + ":9094", + ":11565", + ":11674", + ":11660", + ":9081", + ":11678", ":11661", ":9078", - ":11535", - ":11667", - ":11664", - ":9076", - ":9081", + ":11680", ":9077", - ":10714", - ":11662", - ":9089", ":9075", + ":11564", + ":10714", + ":9076", + ":11666", + ":11535", ":11668", ":9087#out:1", ":9075#out:1", @@ -3127,28 +3128,28 @@ "elements":[ ":10455:2817", ":10455:2814", - ":10455:2785", ":10455:2781", ":10455:2783", ":10455:2791", - ":10455:2845", - ":10455:2795", - ":10455:2833", - ":10455:2832", - ":10455:2776", - ":10455:2815", ":10455:2846", - ":10455:2794", - ":10455:2816", - ":10455:2778", - ":10455:2733", - ":10455:2910", - ":10455:2771", - ":10455:2770", - ":10455:2769", ":10455:2779", + ":10455:2794", + ":10455:2832", + ":10455:2785", + ":10455:2778", + ":10455:2833", + ":10455:2776", ":10455:2773", + ":10455:2815", ":10455:2732", + ":10455:2816", + ":10455:2910", + ":10455:2845", + ":10455:2771", + ":10455:2733", + ":10455:2770", + ":10455:2795", + ":10455:2769", ":10455:2844", ":10455:2910#out:1", ":10455:2791#out:2", @@ -3228,11 +3229,11 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2779_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2779_d.json", "elements":[ - ":10455:2790", - ":10455:2787", ":10455:2788", - ":10455:2909", + ":10455:2787", + ":10455:2790", ":10455:2908", + ":10455:2909", ":10455:2786", ":10455:2909#out:1", ":10455:2787#out:1", @@ -3257,16 +3258,16 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2791_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10455_2791_d.json", "elements":[ - ":10455:2791:2709", - ":10455:2791:2849", - ":10455:2791:2707", - ":10455:2791:2704", - ":10455:2791:2701", ":10455:2791:2710", + ":10455:2791:2709", + ":10455:2791:2707", + ":10455:2791:2849", ":10455:2791:2848", + ":10455:2791:2701", ":10455:2791:2700", ":10455:2791:2377", ":10455:2791:2699", + ":10455:2791:2704", ":10455:2791:2849#out:1", ":10455:2791:2701#out:1", ":10455:2791:2704#out:1", @@ -3294,45 +3295,45 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9109_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9109_d.json", "elements":[ - ":10828", - ":10841", - ":10842", - ":9127", - ":9139", - ":9125", - ":11474", - ":10843", - ":9130", - ":10831", - ":10840", - ":10821", - ":10836", - ":10846", - ":10823", - ":10820", - ":10822", - ":10819", - ":11475", - ":10834", - ":10829", - ":10845", - ":9117", - ":9126", - ":9131", - ":11473", - ":9138", - ":9113", - ":9114", ":9141", - ":9116", - ":9115", - ":9112", - ":9111", - ":9128", - ":9129", + ":10831", + ":9139", + ":10841", ":10844", - ":9110", + ":9129", + ":9128", + ":10828", + ":10842", + ":9126", + ":10843", + ":10840", + ":11474", + ":10821", + ":10819", + ":9131", ":10838", + ":10822", + ":11475", + ":9125", + ":10845", + ":9138", + ":10836", + ":9117", + ":10823", + ":9116", + ":9130", + ":9114", + ":10829", + ":9112", + ":9115", + ":11473", + ":9110", + ":10846", + ":9113", + ":9111", + ":10820", + ":9127", + ":10834", ":9111#out:1", ":9110#out:1", ":9112#out:1", @@ -3381,29 +3382,29 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_d.json", "elements":[ - ":10828:2785", ":10828:2817", ":10828:2814", ":10828:2781", + ":10828:2785", ":10828:2783", + ":10828:2791", ":10828:2779", + ":10828:2794", ":10828:2845", + ":10828:2795", ":10828:2846", ":10828:2833", ":10828:2832", - ":10828:2815", - ":10828:2732", - ":10828:2795", - ":10828:2791", - ":10828:2733", - ":10828:2778", ":10828:2776", - ":10828:2910", - ":10828:2771", + ":10828:2815", ":10828:2816", - ":10828:2770", + ":10828:2733", + ":10828:2732", + ":10828:2910", ":10828:2773", - ":10828:2794", + ":10828:2778", + ":10828:2771", + ":10828:2770", ":10828:2769", ":10828:2844", ":10828:2910#out:1", @@ -3450,11 +3451,11 @@ ":10828:2819", ":10828:2818", ":10828:2831", - ":10828:2840", ":10828:2839", - ":10828:2836", - ":10828:2843", + ":10828:2840", ":10828:2841", + ":10828:2843", + ":10828:2836", ":10828:2837", ":10828:2838", ":10828:2843#out:1", @@ -3484,12 +3485,12 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2779_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2779_d.json", "elements":[ - ":10828:2788", ":10828:2790", - ":10828:2909", + ":10828:2788", ":10828:2908", - ":10828:2786", ":10828:2787", + ":10828:2909", + ":10828:2786", ":10828:2909#out:1", ":10828:2787#out:1", ":10828:2908#out:1", @@ -3513,15 +3514,15 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2791_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10828_2791_d.json", "elements":[ + ":10828:2791:2710", ":10828:2791:2377", ":10828:2791:2709", - ":10828:2791:2710", ":10828:2791:2849", ":10828:2791:2707", - ":10828:2791:2848", + ":10828:2791:2700", ":10828:2791:2704", ":10828:2791:2701", - ":10828:2791:2700", + ":10828:2791:2848", ":10828:2791:2699", ":10828:2791:2849#out:1", ":10828:2791:2701#out:1", @@ -3587,30 +3588,30 @@ "elements":[ ":9165", ":9170", - ":9725", - ":9724", - ":9161", - ":9159", - ":9158", - ":9723", - ":9164", - ":9160", - ":9722", - ":9156", - ":9155", - ":9150", ":9726", - ":9149", - ":9148", - ":9147", - ":9162", + ":9724", ":11483", - ":9157", - ":9151", - ":9146", - ":9152", ":10454", + ":9161", + ":9160", + ":9162", + ":9164", + ":9723", + ":9157", + ":9156", + ":9152", + ":9150", + ":9159", + ":9147", + ":9151", + ":9149", + ":9158", + ":9146", + ":9725", + ":9148", ":9145", + ":9155", + ":9722", ":9144", ":9152#out:1", ":9151#out:1", @@ -3653,29 +3654,29 @@ "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_d.json", "elements":[ ":10454:2785", - ":10454:2781", + ":10454:2817", ":10454:2783", - ":10454:2779", - ":10454:2814", + ":10454:2791", ":10454:2794", ":10454:2845", + ":10454:2795", ":10454:2846", + ":10454:2833", ":10454:2832", + ":10454:2779", ":10454:2778", ":10454:2776", - ":10454:2833", - ":10454:2815", - ":10454:2773", - ":10454:2791", - ":10454:2733", - ":10454:2732", + ":10454:2814", ":10454:2816", - ":10454:2795", ":10454:2771", - ":10454:2910", - ":10454:2817", - ":10454:2769", + ":10454:2733", + ":10454:2781", ":10454:2770", + ":10454:2910", + ":10454:2773", + ":10454:2815", + ":10454:2769", + ":10454:2732", ":10454:2844", ":10454:2910#out:1", ":10454:2791#out:2", @@ -3721,12 +3722,12 @@ ":10454:2819", ":10454:2818", ":10454:2831", - ":10454:2839", ":10454:2837", - ":10454:2840", - ":10454:2836", - ":10454:2843", ":10454:2841", + ":10454:2840", + ":10454:2843", + ":10454:2836", + ":10454:2839", ":10454:2838", ":10454:2843#out:1", ":10454:2838#out:1", @@ -3757,10 +3758,10 @@ "elements":[ ":10454:2790", ":10454:2788", - ":10454:2909", ":10454:2787", - ":10454:2786", ":10454:2908", + ":10454:2909", + ":10454:2786", ":10454:2909#out:1", ":10454:2787#out:1", ":10454:2908#out:1", @@ -3784,15 +3785,15 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2791_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10454_2791_d.json", "elements":[ + ":10454:2791:2710", ":10454:2791:2377", ":10454:2791:2709", - ":10454:2791:2710", - ":10454:2791:2848", - ":10454:2791:2704", ":10454:2791:2707", ":10454:2791:2849", - ":10454:2791:2701", + ":10454:2791:2704", ":10454:2791:2700", + ":10454:2791:2701", + ":10454:2791:2848", ":10454:2791:2699", ":10454:2791:2849#out:1", ":10454:2791:2701#out:1", @@ -3856,30 +3857,30 @@ "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_9171_d.json", "elements":[ ":9191", - ":9189", - ":9188", ":10732", - ":9186", ":10737", + ":9186", ":9185", - ":9184", ":9183", - ":10738", - ":10731", ":10740", - ":9179", - ":10725", ":10733", - ":9176", - ":10741", - ":9175", - ":9174", - ":9173", ":9181", + ":9184", + ":10725", + ":10738", + ":9179", + ":10741", + ":9176", + ":9175", + ":10731", + ":9189", + ":9174", + ":9188", ":9187", - ":10736", - ":9172", + ":9173", ":9177", + ":9172", + ":10736", ":9172#out:1", ":9181#out:1", ":9179#out:1", @@ -3957,14 +3958,14 @@ ":8881", ":8880", ":8879", - ":8876", ":8877", + ":8875", ":8874", ":8873", - ":8875", - ":8869", - ":8878", + ":8876", ":8872", + ":8878", + ":8869", ":8870", ":8880#out:1", ":8879#out:1", @@ -4006,22 +4007,22 @@ ":8890", ":8907", ":8906", - ":8902", - ":8900", - ":8899", - ":8896", - ":8897", - ":8905", - ":8903", - ":8895", - ":8891", - ":8892", - ":8908", - ":8893", - ":8901", ":8904", - ":8898", + ":8903", + ":8902", + ":8901", + ":8900", + ":8895", + ":8899", ":8894", + ":8905", + ":8898", + ":8896", + ":8892", + ":8897", + ":8893", + ":8891", + ":8908", ":8889#out:1", ":8888#out:1", ":8887#out:1", @@ -4066,92 +4067,92 @@ ":9020", ":9021", ":9022", - ":9014", - ":10711", + ":9013", ":9012", - ":9011", ":9010", + ":10711", + ":9011", ":9007", + ":9005", + ":9002", + ":8999", ":8998", ":8997", - ":9008", - ":10565", - ":8975", - ":8974", - ":8972", - ":8976", - ":9006", - ":10715", - ":10696", ":9009", - ":10713", + ":8976", + ":8973", ":8971", - ":8962", - ":9013", - ":10712", - ":8969", - ":8967", - ":10718", - ":8958", + ":10727", + ":10715", + ":10713", ":8970", + ":10694", ":8968", - ":8957", - ":8956", - ":8955", + ":8963", + ":10705", + ":8961", + ":10566", + ":8969", ":8954", + ":9004", ":8953", + ":8955", + ":10565", + ":8952", + ":8958", ":8951", ":8950", - ":10709", - ":9002", - ":10708", - ":8944", - ":10705", + ":9006", + ":10710", + ":8947", + ":10684", + ":10700", + ":8957", + ":8975", + ":10602", + ":10681", + ":10680", + ":9014", + ":8946", + ":10718", + ":10699", + ":10816", ":10780", + ":10682", + ":10712", + ":8944", + ":8956", + ":8972", + ":8934", + ":8974", + ":9733", + ":10675", + ":9017", + ":9732", + ":10693", + ":8935", + ":8962", + ":8917", + ":8919", + ":8916", + ":10683", + ":9003", + ":10696", + ":8915", + ":10674", + ":10584", + ":10708", + ":10695", + ":10704", + ":10361", ":10564", ":8959", - ":10602", - ":10700", - ":10681", - ":9733", - ":8935", - ":10675", - ":10727", ":8939", - ":8919", - ":9005", - ":10680", - ":10816", - ":10684", - ":10693", - ":9732", - ":8917", + ":9008", ":10685", - ":8952", - ":10695", - ":8963", - ":8916", - ":10674", - ":10694", - ":10566", - ":10682", - ":8946", - ":8915", - ":8999", - ":8934", - ":8947", - ":10683", - ":10361", - ":9003", - ":10710", ":8914", - ":9017", - ":9004", - ":10704", - ":10584", - ":10699", - ":8961", - ":8973", + ":8967", + ":10709", ":8999#out:1", ":8947#out:1", ":8935#out:1", @@ -4227,14 +4228,14 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10584_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10584_d.json", "elements":[ - ":10662", ":10600", + ":10662", + ":10597", ":10594", ":10661", ":10591", - ":10597", - ":10586", ":10587", + ":10586", ":10585", ":10585#out:1", ":10594#out:1", @@ -4297,22 +4298,22 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10602_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10602_d.json", "elements":[ - ":10810", ":10619", + ":10810", + ":10809", ":10808", - ":10777", - ":10776", - ":10815", - ":10805", - ":10812", - ":10803", - ":10814", ":10804", ":10609", - ":10607", - ":10809", + ":10805", ":10811", + ":10814", + ":10803", + ":10777", + ":10607", + ":10815", + ":10812", ":10774", + ":10776", ":10774#out:1", ":10607#out:1", ":10809#out:1", @@ -4344,18 +4345,18 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_d.json", "elements":[ - ":10808:2893", + ":10808:2889", ":10808:2892", - ":10808:2895", + ":10808:2894", ":10808:2877", ":10808:2869", + ":10808:2893", ":10808:2891", + ":10808:2895", ":10808:2855", - ":10808:2889", ":10808:2854", - ":10808:2853", - ":10808:2894", ":10808:2890", + ":10808:2853", ":10808:2851", ":10808:2892#out:1", ":10808:2869#out:1", @@ -4388,9 +4389,9 @@ "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10808_2877_d.json", "elements":[ ":10808:2882", + ":10808:2880", ":10808:2896", ":10808:2879", - ":10808:2880", ":10808:2878", ":10808:2878#out:1", ":10808:2880#out:1", @@ -4451,37 +4452,37 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10566_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10566_d.json", "elements":[ - ":10583", ":10575", + ":10653", + ":10574", + ":10640", ":10634", - ":10651", - ":10746", ":10745", ":10649", - ":10629", - ":10630", + ":10658", + ":10625", + ":10627", ":10656", - ":10640", + ":10746", + ":10655", + ":10643", ":10641", - ":10642", + ":10651", ":10659", ":10633", - ":10655", - ":10658", - ":10632", - ":10574", - ":10643", - ":10672", - ":10627", - ":10570", - ":10577", - ":10653", - ":10576", ":10673", - ":10568", + ":10672", + ":10570", + ":10642", + ":10577", + ":10576", + ":10632", ":10567", + ":10630", + ":10568", + ":10583", + ":10629", ":10657", - ":10625", ":10568#out:1", ":10567#out:1", ":10577#out:1", @@ -4523,19 +4524,19 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10745_d.json", "elements":[ + ":10745:2889", ":10745:2894", + ":10745:2893", ":10745:2895", - ":10745:2854", ":10745:2877", - ":10745:2890", - ":10745:2892", - ":10745:2853", ":10745:2869", ":10745:2891", - ":10745:2893", - ":10745:2851", - ":10745:2889", ":10745:2855", + ":10745:2890", + ":10745:2853", + ":10745:2851", + ":10745:2854", + ":10745:2892", ":10745:2892#out:1", ":10745:2869#out:1", ":10745:2890#out:1", @@ -4630,18 +4631,18 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_d.json", "elements":[ - ":10746:2889", ":10746:2894", + ":10746:2889", + ":10746:2877", ":10746:2893", - ":10746:2892", ":10746:2855", - ":10746:2890", ":10746:2854", + ":10746:2891", + ":10746:2892", + ":10746:2890", + ":10746:2853", ":10746:2895", ":10746:2869", - ":10746:2853", - ":10746:2877", - ":10746:2891", ":10746:2851", ":10746:2892#out:1", ":10746:2869#out:1", @@ -4673,11 +4674,11 @@ "thumbnail":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_2877_d.png", "backingUrl":"support/slwebview_files/BLDCmotor_FOC_R2017b_fixdt_10746_2877_d.json", "elements":[ - ":10746:2896", ":10746:2882", - ":10746:2880", + ":10746:2896", ":10746:2879", ":10746:2878", + ":10746:2880", ":10746:2878#out:1", ":10746:2880#out:1", ":10746:2896#out:1", @@ -4742,24 +4743,24 @@ ":9069", ":9048", ":9049", + ":9066", + ":9065", + ":9063", + ":9067", ":9064", - ":9062", ":9061", + ":9059", + ":9060", + ":9057", ":9058", + ":9053", + ":9062", + ":9056", + ":9052", + ":9050", ":9055", ":9054", - ":9065", - ":9053", - ":9060", - ":9066", ":9051", - ":9067", - ":9059", - ":9052", - ":9057", - ":9056", - ":9050", - ":9063", ":9048#out:1", ":9047#out:1", ":9046#out:1", @@ -4798,19 +4799,19 @@ "elements":[ ":8762", ":8764", - ":8758", ":8754", - ":8757", - ":8748", - ":9644", - ":9639", - ":9645", - ":9640", - ":10676", - ":9643", ":9646", - ":8744", ":8755", + ":9644", + ":8748", + ":9645", + ":9643", + ":10676", + ":9639", + ":8758", + ":8757", + ":9640", + ":8744", ":8748#out:1", ":10676#out:1", ":8744#out:1", @@ -4859,49 +4860,49 @@ ":9213", ":9199", ":9223", + ":9455", ":9449", - ":9741", + ":9235", ":9233", - ":9840", - ":9835", - ":9914", - ":9833", - ":9924", - ":9451", + ":9452", ":9920", + ":9927", + ":9451", + ":9214", + ":9908", + ":9839", + ":9832", + ":9831", + ":9915", + ":9835", + ":9842", + ":9225", + ":9227", + ":9924", + ":9916", + ":9926", + ":9914", + ":9904", ":11470", + ":9833", + ":9834", ":9215", ":9928", - ":9839", - ":9454", - ":9916", - ":9915", - ":9927", - ":9452", - ":9838", - ":9908", - ":9831", - ":9834", - ":9904", - ":9235", - ":8216", - ":9455", - ":9842", - ":9207", - ":9923", - ":9832", ":9921", - ":9225", - ":9926", - ":9929", - ":9201", - ":9925", - ":9214", - ":9227", - ":9206", + ":8216", + ":9840", + ":9923", ":9922", - ":9919", + ":9207", + ":9454", + ":9925", + ":9929", + ":9838", + ":9201", + ":9206", + ":9741", ":9836", + ":9919", ":9208#out:3", ":9208#out:2", ":9208#out:1", @@ -4970,16 +4971,16 @@ "elements":[ ":9907", ":9906", + ":9823", ":9912", ":9911", - ":9453", - ":9913", ":9211", - ":9209", - ":9823", ":9236", ":9910", + ":9913", ":9909", + ":9453", + ":9209", ":9209#out:1", ":9211#out:1", ":9236#out:1", @@ -5036,23 +5037,23 @@ ":9779", ":9742", ":9743", - ":9819", ":9802", + ":9801", ":9800", - ":9799", - ":9806", ":9818", ":9803", - ":9820", - ":9801", - ":9816", + ":9819", ":9805", + ":9820", ":9810", + ":9816", ":9798", ":9797", - ":10677", + ":9799", ":9795", + ":9806", ":9796", + ":10677", ":9779#out:1", ":10677#out:1", ":9743#out:1", @@ -5107,10 +5108,10 @@ ":9766", ":9756", ":9760", - ":10035", ":9791", - ":10175", ":9758", + ":10175", + ":10035", ":9794", ":9746", ":9747", @@ -5218,13 +5219,13 @@ "elements":[ ":10169", ":10168", - ":10167", - ":10185", ":10184", - ":10162", - ":10183", ":10186", + ":10185", + ":10183", + ":10162", ":10190", + ":10167", ":10163", ":10162#out:1", ":10163#out:1", diff --git a/BLDC_controller_ert_rtw/rtwtypes.h b/BLDC_controller_ert_rtw/rtwtypes.h index 0ecb78e..49ec197 100644 --- a/BLDC_controller_ert_rtw/rtwtypes.h +++ b/BLDC_controller_ert_rtw/rtwtypes.h @@ -5,7 +5,7 @@ * * Model version : 1.1284 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Sun Oct 11 20:20:20 2020 + * C/C++ source code generated on : Sun Oct 11 21:38:56 2020 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex diff --git a/BLDCmotor_FOC_R2017b_fixdt.slx b/BLDCmotor_FOC_R2017b_fixdt.slx index 4b76b20..462cf04 100644 Binary files a/BLDCmotor_FOC_R2017b_fixdt.slx and b/BLDCmotor_FOC_R2017b_fixdt.slx differ