diff --git a/01_Matlab/01_Libraries/01_Controller/BLDC_controller_Lib.slx b/01_Matlab/01_Libraries/01_Controller/BLDC_controller_Lib.slx index 51ac348..ebfbe60 100644 Binary files a/01_Matlab/01_Libraries/01_Controller/BLDC_controller_Lib.slx and b/01_Matlab/01_Libraries/01_Controller/BLDC_controller_Lib.slx differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.c b/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.c index f8bb08c..3e5b04a 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.c +++ b/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.c @@ -7,9 +7,9 @@ * * Code generated for Simulink model 'BLDC_controller'. * - * Model version : 1.877 + * Model version : 1.879 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Wed Jun 5 22:29:28 2019 + * C/C++ source code generated on : Thu Jun 6 17:49:29 2019 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex @@ -154,15 +154,15 @@ void BLDC_controller_step(RT_MODEL *const rtM) ExtU *rtU = (ExtU *) rtM->inputs; ExtY *rtY = (ExtY *) rtM->outputs; uint8_T rtb_Sum; - int32_T rtb_Sum2; + int32_T rtb_Abs1; uint8_T rtb_BitwiseOperator; + int32_T rtb_Sum2; int16_T rtb_Abs2; int16_T rtb_Sum1_a; int32_T rtb_Abs5; int8_T rtAction; int8_T rtb_Sum2_h; uint32_T rtb_r_phaAdvDC_XA_o2; - int32_T rtb_Switch1_idx_0; int32_T rtb_Switch1_idx_1; /* Outputs for Atomic SubSystem: '/BLDC_controller' */ @@ -176,6 +176,17 @@ void BLDC_controller_step(RT_MODEL *const rtM) rtb_Sum = (uint8_T)((uint32_T)(uint8_T)((uint32_T)(uint8_T)(rtU->b_hallA << 2) + (uint8_T)(rtU->b_hallB << 1)) + rtU->b_hallC); + /* Abs: '/Abs1' incorporates: + * Inport: '/r_DC' + */ + if (rtU->r_DC < 0) { + rtb_Abs1 = -rtU->r_DC; + } else { + rtb_Abs1 = rtU->r_DC; + } + + /* End of Abs: '/Abs1' */ + /* S-Function (sfix_bitop): '/Bitwise Operator' incorporates: * Inport: '/b_hallA ' * Inport: '/b_hallB' @@ -411,19 +422,8 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Outport: '/a_elecAngle' */ if (rtP->b_phaAdvEna) { - /* Abs: '/Abs2' incorporates: - * Inport: '/r_DC' - */ - if (rtU->r_DC < 0) { - rtb_Switch1_idx_0 = -rtU->r_DC; - } else { - rtb_Switch1_idx_0 = rtU->r_DC; - } - - /* End of Abs: '/Abs2' */ - /* PreLookup: '/r_phaAdvDC_XA' */ - rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtb_Switch1_idx_0, + rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtb_Abs1, rtP->r_phaAdvDC_XA[0], (uint32_T)rtP->r_phaAdvDC_XA[1] - rtP->r_phaAdvDC_XA[0], 10U, &rtb_r_phaAdvDC_XA_o2); @@ -435,11 +435,10 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Outport: '/a_elecAngle' * Product: '/Product2' */ - rtb_Switch1_idx_0 = (int16_T)(rtb_Abs2 * rtDW->Switch2) + rtY->a_elecAngle; + rtb_Abs5 = (int16_T)(rtb_Abs2 * rtDW->Switch2) + rtY->a_elecAngle; /* Math: '/Math Function' */ - rtDW->Switch_PhaAdv = rtb_Switch1_idx_0 - div_nde_s32_floor - (rtb_Switch1_idx_0, 360) * 360; + rtDW->Switch_PhaAdv = rtb_Abs5 - div_nde_s32_floor(rtb_Abs5, 360) * 360; } else { rtDW->Switch_PhaAdv = rtY->a_elecAngle; } @@ -526,20 +525,6 @@ void BLDC_controller_step(RT_MODEL *const rtM) /* End of SwitchCase: '/Switch Case' */ - /* Abs: '/Abs1' incorporates: - * Inport: '/r_DC' - * Signum: '/Sign1' - */ - if (rtU->r_DC < 0) { - rtb_Switch1_idx_0 = -rtU->r_DC; - rtb_Switch1_idx_1 = -1; - } else { - rtb_Switch1_idx_0 = rtU->r_DC; - rtb_Switch1_idx_1 = (rtU->r_DC > 0); - } - - /* End of Abs: '/Abs1' */ - /* Signum: '/Sign' */ if (rtDW->Switch2 < 0) { rtb_Sum2_h = -1; @@ -549,6 +534,17 @@ void BLDC_controller_step(RT_MODEL *const rtM) /* End of Signum: '/Sign' */ + /* Signum: '/Sign1' incorporates: + * Inport: '/r_DC' + */ + if (rtU->r_DC < 0) { + rtb_Abs5 = -1; + } else { + rtb_Abs5 = (rtU->r_DC > 0); + } + + /* End of Signum: '/Sign1' */ + /* Switch: '/Switch1' incorporates: * Constant: '/vec_hallToPos' * Constant: '/CTRL_COMM' @@ -569,12 +565,11 @@ void BLDC_controller_step(RT_MODEL *const rtM) * About '/z_commutMap_M1': * 2-dimensional Direct Look-Up returning a Column */ - if ((rtP->z_ctrlTypSel != 0) && (rtb_Switch1_idx_0 > rtP->r_commDCDeacv) && - (rtb_Sum2_h == rtb_Switch1_idx_1) && rtDW->n_commDeacv_Mode && - (!rtDW->dz_counter_Mode)) { - rtb_Switch1_idx_0 = rtU->r_DC * rtDW->Merge; + if ((rtP->z_ctrlTypSel != 0) && (rtb_Abs1 > rtP->r_commDCDeacv) && (rtb_Sum2_h + == rtb_Abs5) && rtDW->n_commDeacv_Mode && (!rtDW->dz_counter_Mode)) { + rtb_Abs5 = rtU->r_DC * rtDW->Merge; rtb_Switch1_idx_1 = rtU->r_DC * rtDW->Merge1; - rtb_Abs5 = rtU->r_DC * rtDW->Merge2; + rtb_Abs1 = rtU->r_DC * rtDW->Merge2; } else { if (rtConstP.vec_hallToPos_Value[rtb_Sum] > 5) { /* LookupNDDirect: '/z_commutMap_M1' @@ -608,10 +603,10 @@ void BLDC_controller_step(RT_MODEL *const rtM) * About '/z_commutMap_M1': * 2-dimensional Direct Look-Up returning a Column */ - rtb_Abs5 = rtb_Sum2_h * 3; - rtb_Switch1_idx_0 = rtU->r_DC * rtConstP.z_commutMap_M1_table[rtb_Abs5]; - rtb_Switch1_idx_1 = rtConstP.z_commutMap_M1_table[1 + rtb_Abs5] * rtU->r_DC; - rtb_Abs5 = rtConstP.z_commutMap_M1_table[2 + rtb_Abs5] * rtU->r_DC; + rtb_Abs1 = rtb_Sum2_h * 3; + rtb_Abs5 = rtU->r_DC * rtConstP.z_commutMap_M1_table[rtb_Abs1]; + rtb_Switch1_idx_1 = rtConstP.z_commutMap_M1_table[1 + rtb_Abs1] * rtU->r_DC; + rtb_Abs1 = rtConstP.z_commutMap_M1_table[2 + rtb_Abs1] * rtU->r_DC; } /* End of Switch: '/Switch1' */ @@ -620,7 +615,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Constant: '/Constant1' * Product: '/Divide1' */ - rtY->DC_phaA = rtb_Switch1_idx_0 / 1000; + rtY->DC_phaA = rtb_Abs5 / 1000; /* Outport: '/DC_phaB' incorporates: * Constant: '/Constant1' @@ -656,7 +651,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Constant: '/Constant1' * Product: '/Divide1' */ - rtY->DC_phaC = rtb_Abs5 / 1000; + rtY->DC_phaC = rtb_Abs1 / 1000; /* End of Outputs for SubSystem: '/BLDC_controller' */ diff --git a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.h b/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.h index 9d9b319..01b6ed6 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.h +++ b/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller.h @@ -7,9 +7,9 @@ * * Code generated for Simulink model 'BLDC_controller'. * - * Model version : 1.877 + * Model version : 1.879 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Wed Jun 5 22:29:28 2019 + * C/C++ source code generated on : Thu Jun 6 17:49:29 2019 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex diff --git a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller_data.c b/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller_data.c index d5a791c..23fd577 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller_data.c +++ b/01_Matlab/BLDC_controller_ert_rtw/BLDC_controller_data.c @@ -7,9 +7,9 @@ * * Code generated for Simulink model 'BLDC_controller'. * - * Model version : 1.877 + * Model version : 1.879 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Wed Jun 5 22:29:28 2019 + * C/C++ source code generated on : Thu Jun 6 17:49:29 2019 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex diff --git a/01_Matlab/BLDC_controller_ert_rtw/buildInfo.mat b/01_Matlab/BLDC_controller_ert_rtw/buildInfo.mat index fb650b7..322edce 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/buildInfo.mat and b/01_Matlab/BLDC_controller_ert_rtw/buildInfo.mat differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/codeInfo.mat b/01_Matlab/BLDC_controller_ert_rtw/codeInfo.mat index d5f0df0..411fb55 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/codeInfo.mat and b/01_Matlab/BLDC_controller_ert_rtw/codeInfo.mat differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/codedescriptor.dmr b/01_Matlab/BLDC_controller_ert_rtw/codedescriptor.dmr index 2b4363f..1f2a558 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/codedescriptor.dmr and b/01_Matlab/BLDC_controller_ert_rtw/codedescriptor.dmr differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/ert_main.c b/01_Matlab/BLDC_controller_ert_rtw/ert_main.c index b1ddf7d..cb280d6 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/ert_main.c +++ b/01_Matlab/BLDC_controller_ert_rtw/ert_main.c @@ -7,9 +7,9 @@ * * Code generated for Simulink model 'BLDC_controller'. * - * Model version : 1.877 + * Model version : 1.879 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Wed Jun 5 22:29:28 2019 + * C/C++ source code generated on : Thu Jun 6 17:49:29 2019 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_c.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_c.html index 6a7f85e..e334492 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_c.html +++ b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_c.html @@ -21,9 +21,9 @@ 7 * 8 * Code generated for Simulink model 'BLDC_controller'. 9 * - 10 * Model version : 1.877 + 10 * Model version : 1.879 11 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - 12 * C/C++ source code generated on : Wed Jun 5 22:29:28 2019 + 12 * C/C++ source code generated on : Thu Jun 6 17:49:29 2019 13 * 14 * Target selection: ert.tlc 15 * Embedded hardware selection: ARM Compatible->ARM Cortex @@ -168,15 +168,15 @@ 154 ExtU *rtU = (ExtU *) rtM->inputs; 155 ExtY *rtY = (ExtY *) rtM->outputs; 156 uint8_T rtb_Sum; - 157 int32_T rtb_Sum2; + 157 int32_T rtb_Abs1; 158 uint8_T rtb_BitwiseOperator; - 159 int16_T rtb_Abs2; - 160 int16_T rtb_Sum1_a; - 161 int32_T rtb_Abs5; - 162 int8_T rtAction; - 163 int8_T rtb_Sum2_h; - 164 uint32_T rtb_r_phaAdvDC_XA_o2; - 165 int32_T rtb_Switch1_idx_0; + 159 int32_T rtb_Sum2; + 160 int16_T rtb_Abs2; + 161 int16_T rtb_Sum1_a; + 162 int32_T rtb_Abs5; + 163 int8_T rtAction; + 164 int8_T rtb_Sum2_h; + 165 uint32_T rtb_r_phaAdvDC_XA_o2; 166 int32_T rtb_Switch1_idx_1; 167 168 /* Outputs for Atomic SubSystem: '<Root>/BLDC_controller' */ @@ -190,254 +190,254 @@ 176 rtb_Sum = (uint8_T)((uint32_T)(uint8_T)((uint32_T)(uint8_T)(rtU->b_hallA << 2) 177 + (uint8_T)(rtU->b_hallB << 1)) + rtU->b_hallC); 178 - 179 /* S-Function (sfix_bitop): '<S11>/Bitwise Operator' incorporates: - 180 * Inport: '<Root>/b_hallA ' - 181 * Inport: '<Root>/b_hallB' - 182 * Inport: '<Root>/b_hallC' - 183 * UnitDelay: '<S11>/UnitDelay' - 184 * UnitDelay: '<S11>/UnitDelay1' - 185 * UnitDelay: '<S11>/UnitDelay2' - 186 */ - 187 rtb_BitwiseOperator = (uint8_T)(rtU->b_hallA ^ rtU->b_hallB ^ rtU->b_hallC ^ - 188 rtDW->UnitDelay_DSTATE ^ rtDW->UnitDelay1_DSTATE_i ^ - 189 rtDW->UnitDelay2_DSTATE_h); - 190 - 191 /* If: '<S14>/If1' incorporates: - 192 * Constant: '<S14>/Constant6' - 193 * Constant: '<S17>/Constant1' - 194 * Constant: '<S17>/Constant23' - 195 * If: '<S7>/If2' - 196 * Inport: '<S15>/z_counterRawPrev' - 197 * RelationalOperator: '<S17>/Relational Operator1' - 198 * Sum: '<S14>/Sum1' - 199 * Switch: '<S17>/Switch1' - 200 * Switch: '<S17>/Switch2' - 201 * UnitDelay: '<S14>/UnitDelay1' - 202 * UnitDelay: '<S17>/UnitDelay1' - 203 */ - 204 if (rtb_BitwiseOperator != 0) { - 205 /* Outputs for IfAction SubSystem: '<S7>/F01_03_Direction_Detection' incorporates: - 206 * ActionPort: '<S13>/Action Port' - 207 */ - 208 /* UnitDelay: '<S13>/UnitDelay1' */ - 209 rtDW->UnitDelay1 = rtDW->Switch2; - 210 - 211 /* Sum: '<S13>/Sum2' incorporates: - 212 * Constant: '<S12>/vec_hallToPos' - 213 * Selector: '<S12>/Selector' - 214 * UnitDelay: '<S13>/UnitDelay2' - 215 */ - 216 rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[rtb_Sum] - - 217 rtDW->UnitDelay2_DSTATE_i); - 218 - 219 /* Switch: '<S13>/Switch2' incorporates: - 220 * Constant: '<S13>/Constant20' - 221 * Constant: '<S13>/Constant23' - 222 * Constant: '<S13>/Constant24' - 223 * Constant: '<S13>/Constant8' - 224 * Logic: '<S13>/Logical Operator3' - 225 * RelationalOperator: '<S13>/Relational Operator1' - 226 * RelationalOperator: '<S13>/Relational Operator6' - 227 */ - 228 if ((rtb_Sum2_h == 1) || (rtb_Sum2_h == -5)) { - 229 rtDW->Switch2 = 1; - 230 } else { - 231 rtDW->Switch2 = -1; - 232 } - 233 - 234 /* End of Switch: '<S13>/Switch2' */ - 235 - 236 /* Update for UnitDelay: '<S13>/UnitDelay2' incorporates: - 237 * Constant: '<S12>/vec_hallToPos' - 238 * Selector: '<S12>/Selector' - 239 */ - 240 rtDW->UnitDelay2_DSTATE_i = rtConstP.vec_hallToPos_Value[rtb_Sum]; - 241 - 242 /* End of Outputs for SubSystem: '<S7>/F01_03_Direction_Detection' */ - 243 rtb_Abs2 = 1; + 179 /* Abs: '<S2>/Abs1' incorporates: + 180 * Inport: '<Root>/r_DC' + 181 */ + 182 if (rtU->r_DC < 0) { + 183 rtb_Abs1 = -rtU->r_DC; + 184 } else { + 185 rtb_Abs1 = rtU->r_DC; + 186 } + 187 + 188 /* End of Abs: '<S2>/Abs1' */ + 189 + 190 /* S-Function (sfix_bitop): '<S11>/Bitwise Operator' incorporates: + 191 * Inport: '<Root>/b_hallA ' + 192 * Inport: '<Root>/b_hallB' + 193 * Inport: '<Root>/b_hallC' + 194 * UnitDelay: '<S11>/UnitDelay' + 195 * UnitDelay: '<S11>/UnitDelay1' + 196 * UnitDelay: '<S11>/UnitDelay2' + 197 */ + 198 rtb_BitwiseOperator = (uint8_T)(rtU->b_hallA ^ rtU->b_hallB ^ rtU->b_hallC ^ + 199 rtDW->UnitDelay_DSTATE ^ rtDW->UnitDelay1_DSTATE_i ^ + 200 rtDW->UnitDelay2_DSTATE_h); + 201 + 202 /* If: '<S14>/If1' incorporates: + 203 * Constant: '<S14>/Constant6' + 204 * Constant: '<S17>/Constant1' + 205 * Constant: '<S17>/Constant23' + 206 * If: '<S7>/If2' + 207 * Inport: '<S15>/z_counterRawPrev' + 208 * RelationalOperator: '<S17>/Relational Operator1' + 209 * Sum: '<S14>/Sum1' + 210 * Switch: '<S17>/Switch1' + 211 * Switch: '<S17>/Switch2' + 212 * UnitDelay: '<S14>/UnitDelay1' + 213 * UnitDelay: '<S17>/UnitDelay1' + 214 */ + 215 if (rtb_BitwiseOperator != 0) { + 216 /* Outputs for IfAction SubSystem: '<S7>/F01_03_Direction_Detection' incorporates: + 217 * ActionPort: '<S13>/Action Port' + 218 */ + 219 /* UnitDelay: '<S13>/UnitDelay1' */ + 220 rtDW->UnitDelay1 = rtDW->Switch2; + 221 + 222 /* Sum: '<S13>/Sum2' incorporates: + 223 * Constant: '<S12>/vec_hallToPos' + 224 * Selector: '<S12>/Selector' + 225 * UnitDelay: '<S13>/UnitDelay2' + 226 */ + 227 rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[rtb_Sum] - + 228 rtDW->UnitDelay2_DSTATE_i); + 229 + 230 /* Switch: '<S13>/Switch2' incorporates: + 231 * Constant: '<S13>/Constant20' + 232 * Constant: '<S13>/Constant23' + 233 * Constant: '<S13>/Constant24' + 234 * Constant: '<S13>/Constant8' + 235 * Logic: '<S13>/Logical Operator3' + 236 * RelationalOperator: '<S13>/Relational Operator1' + 237 * RelationalOperator: '<S13>/Relational Operator6' + 238 */ + 239 if ((rtb_Sum2_h == 1) || (rtb_Sum2_h == -5)) { + 240 rtDW->Switch2 = 1; + 241 } else { + 242 rtDW->Switch2 = -1; + 243 } 244 - 245 /* Outputs for IfAction SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' incorporates: - 246 * ActionPort: '<S15>/Action Port' - 247 */ - 248 rtDW->z_counterRawPrev = rtDW->UnitDelay1_DSTATE_c; - 249 - 250 /* Sum: '<S15>/Sum4' incorporates: - 251 * Constant: '<S14>/Constant6' - 252 * Constant: '<S17>/Constant23' - 253 * Inport: '<S15>/z_counterRawPrev' - 254 * Sum: '<S14>/Sum1' - 255 * UnitDelay: '<S14>/UnitDelay1' - 256 * UnitDelay: '<S15>/z_counter2' - 257 */ - 258 rtDW->Sum4 = (int16_T)(rtDW->z_counterRawPrev - rtDW->z_counter2_DSTATE); - 259 - 260 /* Update for UnitDelay: '<S15>/z_counter2' */ - 261 rtDW->z_counter2_DSTATE = rtDW->z_counterRawPrev; - 262 - 263 /* End of Outputs for SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' */ - 264 } else { - 265 if (rtDW->UnitDelay1_DSTATE < 1500) { - 266 /* Switch: '<S17>/Switch2' incorporates: - 267 * UnitDelay: '<S17>/UnitDelay1' - 268 */ - 269 rtb_Abs2 = rtDW->UnitDelay1_DSTATE; - 270 } else { - 271 /* Switch: '<S17>/Switch2' incorporates: - 272 * Constant: '<S17>/Constant1' - 273 */ - 274 rtb_Abs2 = 1500; - 275 } - 276 - 277 rtb_Abs2++; - 278 } - 279 - 280 /* End of If: '<S14>/If1' */ - 281 - 282 /* Sum: '<S14>/Sum1' */ - 283 rtb_Sum1_a = rtb_Abs2; - 284 - 285 /* Switch: '<S16>/Switch1' incorporates: - 286 * Constant: '<S16>/Constant1' - 287 * Constant: '<S16>/cf_spdCoef' - 288 * Constant: '<S16>/z_maxCntRst' - 289 * Logic: '<S16>/Logical Operator1' - 290 * Product: '<S16>/Divide4' - 291 * RelationalOperator: '<S16>/Relational Operator2' - 292 * RelationalOperator: '<S16>/Relational Operator5' - 293 * Sum: '<S14>/Sum1' - 294 */ - 295 if ((rtb_Abs2 > 1500) || (rtDW->Switch2 != rtDW->UnitDelay1)) { - 296 rtb_Sum2 = 0; - 297 } else { - 298 rtb_Sum2 = rtP->cf_speedCoef * rtDW->Switch2 / rtDW->z_counterRawPrev; - 299 } - 300 - 301 /* End of Switch: '<S16>/Switch1' */ - 302 - 303 /* Product: '<S16>/Divide2' incorporates: - 304 * Constant: '<S16>/Constant2' - 305 * Constant: '<S16>/Constant3' - 306 * Constant: '<S16>/cf_speedFilt' - 307 * Product: '<S16>/Divide1' - 308 * Product: '<S16>/Divide3' - 309 * Sum: '<S16>/Sum1' - 310 * Sum: '<S16>/Sum2' - 311 * UnitDelay: '<S16>/UnitDelay2' - 312 */ - 313 rtb_Sum2 = ((100 - rtP->cf_speedFilt) * rtDW->UnitDelay2_DSTATE + rtb_Sum2 * - 314 rtP->cf_speedFilt) / 100; - 315 - 316 /* Abs: '<S14>/Abs5' */ - 317 if (rtb_Sum2 < 0) { - 318 rtb_Abs5 = -rtb_Sum2; - 319 } else { - 320 rtb_Abs5 = rtb_Sum2; - 321 } - 322 - 323 /* End of Abs: '<S14>/Abs5' */ - 324 - 325 /* Relay: '<S14>/n_commDeacv' */ - 326 if (rtb_Abs5 >= rtP->n_commDeacvHi) { - 327 rtDW->n_commDeacv_Mode = true; - 328 } else { - 329 if (rtb_Abs5 <= rtP->n_commAcvLo) { - 330 rtDW->n_commDeacv_Mode = false; - 331 } + 245 /* End of Switch: '<S13>/Switch2' */ + 246 + 247 /* Update for UnitDelay: '<S13>/UnitDelay2' incorporates: + 248 * Constant: '<S12>/vec_hallToPos' + 249 * Selector: '<S12>/Selector' + 250 */ + 251 rtDW->UnitDelay2_DSTATE_i = rtConstP.vec_hallToPos_Value[rtb_Sum]; + 252 + 253 /* End of Outputs for SubSystem: '<S7>/F01_03_Direction_Detection' */ + 254 rtb_Abs2 = 1; + 255 + 256 /* Outputs for IfAction SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' incorporates: + 257 * ActionPort: '<S15>/Action Port' + 258 */ + 259 rtDW->z_counterRawPrev = rtDW->UnitDelay1_DSTATE_c; + 260 + 261 /* Sum: '<S15>/Sum4' incorporates: + 262 * Constant: '<S14>/Constant6' + 263 * Constant: '<S17>/Constant23' + 264 * Inport: '<S15>/z_counterRawPrev' + 265 * Sum: '<S14>/Sum1' + 266 * UnitDelay: '<S14>/UnitDelay1' + 267 * UnitDelay: '<S15>/z_counter2' + 268 */ + 269 rtDW->Sum4 = (int16_T)(rtDW->z_counterRawPrev - rtDW->z_counter2_DSTATE); + 270 + 271 /* Update for UnitDelay: '<S15>/z_counter2' */ + 272 rtDW->z_counter2_DSTATE = rtDW->z_counterRawPrev; + 273 + 274 /* End of Outputs for SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' */ + 275 } else { + 276 if (rtDW->UnitDelay1_DSTATE < 1500) { + 277 /* Switch: '<S17>/Switch2' incorporates: + 278 * UnitDelay: '<S17>/UnitDelay1' + 279 */ + 280 rtb_Abs2 = rtDW->UnitDelay1_DSTATE; + 281 } else { + 282 /* Switch: '<S17>/Switch2' incorporates: + 283 * Constant: '<S17>/Constant1' + 284 */ + 285 rtb_Abs2 = 1500; + 286 } + 287 + 288 rtb_Abs2++; + 289 } + 290 + 291 /* End of If: '<S14>/If1' */ + 292 + 293 /* Sum: '<S14>/Sum1' */ + 294 rtb_Sum1_a = rtb_Abs2; + 295 + 296 /* Switch: '<S16>/Switch1' incorporates: + 297 * Constant: '<S16>/Constant1' + 298 * Constant: '<S16>/cf_spdCoef' + 299 * Constant: '<S16>/z_maxCntRst' + 300 * Logic: '<S16>/Logical Operator1' + 301 * Product: '<S16>/Divide4' + 302 * RelationalOperator: '<S16>/Relational Operator2' + 303 * RelationalOperator: '<S16>/Relational Operator5' + 304 * Sum: '<S14>/Sum1' + 305 */ + 306 if ((rtb_Abs2 > 1500) || (rtDW->Switch2 != rtDW->UnitDelay1)) { + 307 rtb_Sum2 = 0; + 308 } else { + 309 rtb_Sum2 = rtP->cf_speedCoef * rtDW->Switch2 / rtDW->z_counterRawPrev; + 310 } + 311 + 312 /* End of Switch: '<S16>/Switch1' */ + 313 + 314 /* Product: '<S16>/Divide2' incorporates: + 315 * Constant: '<S16>/Constant2' + 316 * Constant: '<S16>/Constant3' + 317 * Constant: '<S16>/cf_speedFilt' + 318 * Product: '<S16>/Divide1' + 319 * Product: '<S16>/Divide3' + 320 * Sum: '<S16>/Sum1' + 321 * Sum: '<S16>/Sum2' + 322 * UnitDelay: '<S16>/UnitDelay2' + 323 */ + 324 rtb_Sum2 = ((100 - rtP->cf_speedFilt) * rtDW->UnitDelay2_DSTATE + rtb_Sum2 * + 325 rtP->cf_speedFilt) / 100; + 326 + 327 /* Abs: '<S14>/Abs5' */ + 328 if (rtb_Sum2 < 0) { + 329 rtb_Abs5 = -rtb_Sum2; + 330 } else { + 331 rtb_Abs5 = rtb_Sum2; 332 } 333 - 334 /* Abs: '<S14>/Abs2' */ - 335 if (rtDW->Sum4 < 0) { - 336 rtb_Abs2 = (int16_T)-rtDW->Sum4; - 337 } else { - 338 rtb_Abs2 = rtDW->Sum4; - 339 } - 340 - 341 /* End of Abs: '<S14>/Abs2' */ - 342 - 343 /* Relay: '<S14>/dz_counter' */ - 344 if (rtb_Abs2 >= rtP->dz_counterHi) { - 345 rtDW->dz_counter_Mode = true; - 346 } else { - 347 if (rtb_Abs2 <= rtP->dz_counterLo) { - 348 rtDW->dz_counter_Mode = false; - 349 } + 334 /* End of Abs: '<S14>/Abs5' */ + 335 + 336 /* Relay: '<S14>/n_commDeacv' */ + 337 if (rtb_Abs5 >= rtP->n_commDeacvHi) { + 338 rtDW->n_commDeacv_Mode = true; + 339 } else { + 340 if (rtb_Abs5 <= rtP->n_commAcvLo) { + 341 rtDW->n_commDeacv_Mode = false; + 342 } + 343 } + 344 + 345 /* Abs: '<S14>/Abs2' */ + 346 if (rtDW->Sum4 < 0) { + 347 rtb_Abs2 = (int16_T)-rtDW->Sum4; + 348 } else { + 349 rtb_Abs2 = rtDW->Sum4; 350 } 351 - 352 /* If: '<S2>/If1' incorporates: - 353 * Constant: '<S7>/z_ctrlTypSel1' - 354 */ - 355 rtb_Sum2_h = rtDW->If1_ActiveSubsystem; - 356 rtAction = -1; - 357 if (rtP->z_ctrlTypSel != 0) { - 358 rtAction = 0; - 359 } - 360 - 361 rtDW->If1_ActiveSubsystem = rtAction; - 362 if ((rtb_Sum2_h != rtAction) && (rtb_Sum2_h == 0)) { - 363 /* Disable for Outport: '<S8>/a_elecAngleAdv' */ - 364 rtDW->Switch_PhaAdv = 0; - 365 - 366 /* Disable for Outport: '<Root>/a_elecAngle' incorporates: - 367 * Outport: '<S8>/a_elecAngle' - 368 */ - 369 rtY->a_elecAngle = 0; + 352 /* End of Abs: '<S14>/Abs2' */ + 353 + 354 /* Relay: '<S14>/dz_counter' */ + 355 if (rtb_Abs2 >= rtP->dz_counterHi) { + 356 rtDW->dz_counter_Mode = true; + 357 } else { + 358 if (rtb_Abs2 <= rtP->dz_counterLo) { + 359 rtDW->dz_counter_Mode = false; + 360 } + 361 } + 362 + 363 /* If: '<S2>/If1' incorporates: + 364 * Constant: '<S7>/z_ctrlTypSel1' + 365 */ + 366 rtb_Sum2_h = rtDW->If1_ActiveSubsystem; + 367 rtAction = -1; + 368 if (rtP->z_ctrlTypSel != 0) { + 369 rtAction = 0; 370 } 371 - 372 if (rtAction == 0) { - 373 /* Outputs for IfAction SubSystem: '<S2>/F02_Electrical_Angle_Calculation' incorporates: - 374 * ActionPort: '<S8>/Action Port' - 375 */ - 376 /* Switch: '<S8>/Switch3' incorporates: - 377 * Constant: '<S12>/vec_hallToPos' - 378 * Constant: '<S8>/Constant16' - 379 * Gain: '<S12>/g_Ha' - 380 * Gain: '<S12>/g_Hb' - 381 * Inport: '<Root>/b_hallA ' - 382 * Inport: '<Root>/b_hallB' - 383 * Inport: '<Root>/b_hallC' - 384 * RelationalOperator: '<S8>/Relational Operator7' - 385 * Selector: '<S12>/Selector' - 386 * Sum: '<S12>/Sum' - 387 * Sum: '<S8>/Sum1' - 388 */ - 389 if (rtDW->Switch2 == 1) { - 390 rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum]; - 391 } else { - 392 rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[(uint8_T)((uint32_T) - 393 (uint8_T)((uint32_T)(uint8_T)(rtU->b_hallA << 2) + (uint8_T) - 394 (rtU->b_hallB << 1)) + rtU->b_hallC)] + 1); - 395 } - 396 - 397 /* End of Switch: '<S8>/Switch3' */ - 398 - 399 /* Outport: '<Root>/a_elecAngle' incorporates: - 400 * Constant: '<S8>/a_elecAngle1' - 401 * Product: '<S8>/Divide4' - 402 * Product: '<S8>/Divide5' - 403 * Product: '<S8>/Product6' - 404 * Sum: '<S8>/Sum2' - 405 */ - 406 rtY->a_elecAngle = 60 * rtb_Sum1_a / rtDW->z_counterRawPrev * rtDW->Switch2 - 407 + rtb_Sum2_h * 60; - 408 - 409 /* Switch: '<S8>/Switch_PhaAdv' incorporates: - 410 * Constant: '<S8>/a_elecPeriod1' - 411 * Outport: '<Root>/a_elecAngle' - 412 */ - 413 if (rtP->b_phaAdvEna) { - 414 /* Abs: '<S8>/Abs2' incorporates: - 415 * Inport: '<Root>/r_DC' - 416 */ - 417 if (rtU->r_DC < 0) { - 418 rtb_Switch1_idx_0 = -rtU->r_DC; - 419 } else { - 420 rtb_Switch1_idx_0 = rtU->r_DC; - 421 } - 422 - 423 /* End of Abs: '<S8>/Abs2' */ - 424 + 372 rtDW->If1_ActiveSubsystem = rtAction; + 373 if ((rtb_Sum2_h != rtAction) && (rtb_Sum2_h == 0)) { + 374 /* Disable for Outport: '<S8>/a_elecAngleAdv' */ + 375 rtDW->Switch_PhaAdv = 0; + 376 + 377 /* Disable for Outport: '<Root>/a_elecAngle' incorporates: + 378 * Outport: '<S8>/a_elecAngle' + 379 */ + 380 rtY->a_elecAngle = 0; + 381 } + 382 + 383 if (rtAction == 0) { + 384 /* Outputs for IfAction SubSystem: '<S2>/F02_Electrical_Angle_Calculation' incorporates: + 385 * ActionPort: '<S8>/Action Port' + 386 */ + 387 /* Switch: '<S8>/Switch3' incorporates: + 388 * Constant: '<S12>/vec_hallToPos' + 389 * Constant: '<S8>/Constant16' + 390 * Gain: '<S12>/g_Ha' + 391 * Gain: '<S12>/g_Hb' + 392 * Inport: '<Root>/b_hallA ' + 393 * Inport: '<Root>/b_hallB' + 394 * Inport: '<Root>/b_hallC' + 395 * RelationalOperator: '<S8>/Relational Operator7' + 396 * Selector: '<S12>/Selector' + 397 * Sum: '<S12>/Sum' + 398 * Sum: '<S8>/Sum1' + 399 */ + 400 if (rtDW->Switch2 == 1) { + 401 rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum]; + 402 } else { + 403 rtb_Sum2_h = (int8_T)(rtConstP.vec_hallToPos_Value[(uint8_T)((uint32_T) + 404 (uint8_T)((uint32_T)(uint8_T)(rtU->b_hallA << 2) + (uint8_T) + 405 (rtU->b_hallB << 1)) + rtU->b_hallC)] + 1); + 406 } + 407 + 408 /* End of Switch: '<S8>/Switch3' */ + 409 + 410 /* Outport: '<Root>/a_elecAngle' incorporates: + 411 * Constant: '<S8>/a_elecAngle1' + 412 * Product: '<S8>/Divide4' + 413 * Product: '<S8>/Divide5' + 414 * Product: '<S8>/Product6' + 415 * Sum: '<S8>/Sum2' + 416 */ + 417 rtY->a_elecAngle = 60 * rtb_Sum1_a / rtDW->z_counterRawPrev * rtDW->Switch2 + 418 + rtb_Sum2_h * 60; + 419 + 420 /* Switch: '<S8>/Switch_PhaAdv' incorporates: + 421 * Constant: '<S8>/a_elecPeriod1' + 422 * Outport: '<Root>/a_elecAngle' + 423 */ + 424 if (rtP->b_phaAdvEna) { 425 /* PreLookup: '<S8>/r_phaAdvDC_XA' */ - 426 rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtb_Switch1_idx_0, + 426 rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtb_Abs1, 427 rtP->r_phaAdvDC_XA[0], (uint32_T)rtP->r_phaAdvDC_XA[1] - 428 rtP->r_phaAdvDC_XA[0], 10U, &rtb_r_phaAdvDC_XA_o2); 429 @@ -449,267 +449,262 @@ 435 * Outport: '<Root>/a_elecAngle' 436 * Product: '<S8>/Product2' 437 */ - 438 rtb_Switch1_idx_0 = (int16_T)(rtb_Abs2 * rtDW->Switch2) + rtY->a_elecAngle; + 438 rtb_Abs5 = (int16_T)(rtb_Abs2 * rtDW->Switch2) + rtY->a_elecAngle; 439 440 /* Math: '<S8>/Math Function' */ - 441 rtDW->Switch_PhaAdv = rtb_Switch1_idx_0 - div_nde_s32_floor - 442 (rtb_Switch1_idx_0, 360) * 360; - 443 } else { - 444 rtDW->Switch_PhaAdv = rtY->a_elecAngle; - 445 } - 446 - 447 /* End of Switch: '<S8>/Switch_PhaAdv' */ - 448 /* End of Outputs for SubSystem: '<S2>/F02_Electrical_Angle_Calculation' */ - 449 } - 450 - 451 /* End of If: '<S2>/If1' */ - 452 - 453 /* SwitchCase: '<S9>/Switch Case' incorporates: - 454 * Constant: '<S7>/z_ctrlTypSel1' - 455 */ - 456 switch (rtP->z_ctrlTypSel) { - 457 case 1: - 458 /* Outputs for IfAction SubSystem: '<S9>/F03_01_Pure_Trapezoidal_Method' incorporates: - 459 * ActionPort: '<S18>/Action Port' - 460 */ - 461 /* PreLookup: '<S18>/a_trapElecAngle_XA' */ - 462 rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 60U, - 463 6U, &rtb_r_phaAdvDC_XA_o2); - 464 - 465 /* Interpolation_n-D: '<S18>/r_trapPhaA_M1' */ - 466 rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - 467 rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaA_M1_Table); - 468 - 469 /* Interpolation_n-D: '<S18>/r_trapPhaB_M1' */ - 470 rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - 471 rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaB_M1_Table); - 472 - 473 /* Interpolation_n-D: '<S18>/r_trapPhaC_M1' */ - 474 rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - 475 rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaC_M1_Table); - 476 - 477 /* End of Outputs for SubSystem: '<S9>/F03_01_Pure_Trapezoidal_Method' */ - 478 break; - 479 - 480 case 2: - 481 /* Outputs for IfAction SubSystem: '<S9>/F03_02_Sinusoidal_Method' incorporates: - 482 * ActionPort: '<S19>/Action Port' - 483 */ - 484 /* PreLookup: '<S19>/a_sinElecAngle_XA' */ - 485 rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 10U, - 486 36U, &rtb_r_phaAdvDC_XA_o2); - 487 - 488 /* Interpolation_n-D: '<S19>/r_sinPhaA_M1' */ - 489 rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - 490 rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaA_M1_Table); - 491 - 492 /* Interpolation_n-D: '<S19>/r_sinPhaB_M1' */ - 493 rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - 494 rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaB_M1_Table); - 495 - 496 /* Interpolation_n-D: '<S19>/r_sinPhaC_M1' */ - 497 rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - 498 rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaC_M1_Table); - 499 - 500 /* End of Outputs for SubSystem: '<S9>/F03_02_Sinusoidal_Method' */ - 501 break; - 502 - 503 case 3: - 504 /* Outputs for IfAction SubSystem: '<S9>/F03_03_Sinusoidal3rd_Method' incorporates: - 505 * ActionPort: '<S20>/Action Port' - 506 */ - 507 /* PreLookup: '<S20>/a_sinElecAngle_XA' */ - 508 rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 10U, - 509 36U, &rtb_r_phaAdvDC_XA_o2); - 510 - 511 /* Interpolation_n-D: '<S20>/r_sin3PhaA_M1' */ - 512 rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - 513 rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaA_M1_Table); - 514 - 515 /* Interpolation_n-D: '<S20>/r_sin3PhaB_M1' */ - 516 rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - 517 rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaB_M1_Table); - 518 - 519 /* Interpolation_n-D: '<S20>/r_sin3PhaC_M1' */ - 520 rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, - 521 rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaC_M1_Table); - 522 - 523 /* End of Outputs for SubSystem: '<S9>/F03_03_Sinusoidal3rd_Method' */ - 524 break; - 525 } - 526 - 527 /* End of SwitchCase: '<S9>/Switch Case' */ - 528 - 529 /* Abs: '<S14>/Abs1' incorporates: - 530 * Inport: '<Root>/r_DC' - 531 * Signum: '<S14>/Sign1' - 532 */ - 533 if (rtU->r_DC < 0) { - 534 rtb_Switch1_idx_0 = -rtU->r_DC; - 535 rtb_Switch1_idx_1 = -1; - 536 } else { - 537 rtb_Switch1_idx_0 = rtU->r_DC; - 538 rtb_Switch1_idx_1 = (rtU->r_DC > 0); - 539 } - 540 - 541 /* End of Abs: '<S14>/Abs1' */ - 542 - 543 /* Signum: '<S14>/Sign' */ - 544 if (rtDW->Switch2 < 0) { - 545 rtb_Sum2_h = -1; - 546 } else { - 547 rtb_Sum2_h = (int8_T)(rtDW->Switch2 > 0); - 548 } - 549 - 550 /* End of Signum: '<S14>/Sign' */ - 551 - 552 /* Switch: '<S10>/Switch1' incorporates: - 553 * Constant: '<S12>/vec_hallToPos' - 554 * Constant: '<S14>/CTRL_COMM' - 555 * Constant: '<S14>/r_commDCDeacv' - 556 * Constant: '<S7>/z_ctrlTypSel1' - 557 * Inport: '<Root>/r_DC' - 558 * Logic: '<S14>/Logical Operator2' - 559 * LookupNDDirect: '<S10>/z_commutMap_M1' - 560 * Product: '<S10>/Divide2' - 561 * Product: '<S10>/Divide4' - 562 * RelationalOperator: '<S14>/Relational Operator1' - 563 * RelationalOperator: '<S14>/Relational Operator3' - 564 * RelationalOperator: '<S14>/Relational Operator4' - 565 * Relay: '<S14>/dz_counter' - 566 * Relay: '<S14>/n_commDeacv' - 567 * Selector: '<S12>/Selector' - 568 * - 569 * About '<S10>/z_commutMap_M1': - 570 * 2-dimensional Direct Look-Up returning a Column - 571 */ - 572 if ((rtP->z_ctrlTypSel != 0) && (rtb_Switch1_idx_0 > rtP->r_commDCDeacv) && - 573 (rtb_Sum2_h == rtb_Switch1_idx_1) && rtDW->n_commDeacv_Mode && - 574 (!rtDW->dz_counter_Mode)) { - 575 rtb_Switch1_idx_0 = rtU->r_DC * rtDW->Merge; - 576 rtb_Switch1_idx_1 = rtU->r_DC * rtDW->Merge1; - 577 rtb_Abs5 = rtU->r_DC * rtDW->Merge2; - 578 } else { - 579 if (rtConstP.vec_hallToPos_Value[rtb_Sum] > 5) { - 580 /* LookupNDDirect: '<S10>/z_commutMap_M1' - 581 * - 582 * About '<S10>/z_commutMap_M1': - 583 * 2-dimensional Direct Look-Up returning a Column - 584 */ - 585 rtb_Sum2_h = 5; - 586 } else if (rtConstP.vec_hallToPos_Value[rtb_Sum] < 0) { - 587 /* LookupNDDirect: '<S10>/z_commutMap_M1' - 588 * - 589 * About '<S10>/z_commutMap_M1': - 590 * 2-dimensional Direct Look-Up returning a Column - 591 */ - 592 rtb_Sum2_h = 0; - 593 } else { - 594 /* LookupNDDirect: '<S10>/z_commutMap_M1' incorporates: - 595 * Constant: '<S12>/vec_hallToPos' - 596 * Selector: '<S12>/Selector' - 597 * - 598 * About '<S10>/z_commutMap_M1': - 599 * 2-dimensional Direct Look-Up returning a Column - 600 */ - 601 rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum]; - 602 } - 603 - 604 /* LookupNDDirect: '<S10>/z_commutMap_M1' incorporates: - 605 * Constant: '<S12>/vec_hallToPos' - 606 * Selector: '<S12>/Selector' - 607 * - 608 * About '<S10>/z_commutMap_M1': - 609 * 2-dimensional Direct Look-Up returning a Column - 610 */ - 611 rtb_Abs5 = rtb_Sum2_h * 3; - 612 rtb_Switch1_idx_0 = rtU->r_DC * rtConstP.z_commutMap_M1_table[rtb_Abs5]; - 613 rtb_Switch1_idx_1 = rtConstP.z_commutMap_M1_table[1 + rtb_Abs5] * rtU->r_DC; - 614 rtb_Abs5 = rtConstP.z_commutMap_M1_table[2 + rtb_Abs5] * rtU->r_DC; - 615 } - 616 - 617 /* End of Switch: '<S10>/Switch1' */ - 618 - 619 /* Outport: '<Root>/DC_phaA' incorporates: - 620 * Constant: '<S10>/Constant1' - 621 * Product: '<S10>/Divide1' - 622 */ - 623 rtY->DC_phaA = rtb_Switch1_idx_0 / 1000; - 624 - 625 /* Outport: '<Root>/DC_phaB' incorporates: - 626 * Constant: '<S10>/Constant1' - 627 * Product: '<S10>/Divide1' + 441 rtDW->Switch_PhaAdv = rtb_Abs5 - div_nde_s32_floor(rtb_Abs5, 360) * 360; + 442 } else { + 443 rtDW->Switch_PhaAdv = rtY->a_elecAngle; + 444 } + 445 + 446 /* End of Switch: '<S8>/Switch_PhaAdv' */ + 447 /* End of Outputs for SubSystem: '<S2>/F02_Electrical_Angle_Calculation' */ + 448 } + 449 + 450 /* End of If: '<S2>/If1' */ + 451 + 452 /* SwitchCase: '<S9>/Switch Case' incorporates: + 453 * Constant: '<S7>/z_ctrlTypSel1' + 454 */ + 455 switch (rtP->z_ctrlTypSel) { + 456 case 1: + 457 /* Outputs for IfAction SubSystem: '<S9>/F03_01_Pure_Trapezoidal_Method' incorporates: + 458 * ActionPort: '<S18>/Action Port' + 459 */ + 460 /* PreLookup: '<S18>/a_trapElecAngle_XA' */ + 461 rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 60U, + 462 6U, &rtb_r_phaAdvDC_XA_o2); + 463 + 464 /* Interpolation_n-D: '<S18>/r_trapPhaA_M1' */ + 465 rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, + 466 rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaA_M1_Table); + 467 + 468 /* Interpolation_n-D: '<S18>/r_trapPhaB_M1' */ + 469 rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, + 470 rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaB_M1_Table); + 471 + 472 /* Interpolation_n-D: '<S18>/r_trapPhaC_M1' */ + 473 rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, + 474 rtb_r_phaAdvDC_XA_o2, rtConstP.r_trapPhaC_M1_Table); + 475 + 476 /* End of Outputs for SubSystem: '<S9>/F03_01_Pure_Trapezoidal_Method' */ + 477 break; + 478 + 479 case 2: + 480 /* Outputs for IfAction SubSystem: '<S9>/F03_02_Sinusoidal_Method' incorporates: + 481 * ActionPort: '<S19>/Action Port' + 482 */ + 483 /* PreLookup: '<S19>/a_sinElecAngle_XA' */ + 484 rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 10U, + 485 36U, &rtb_r_phaAdvDC_XA_o2); + 486 + 487 /* Interpolation_n-D: '<S19>/r_sinPhaA_M1' */ + 488 rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, + 489 rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaA_M1_Table); + 490 + 491 /* Interpolation_n-D: '<S19>/r_sinPhaB_M1' */ + 492 rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, + 493 rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaB_M1_Table); + 494 + 495 /* Interpolation_n-D: '<S19>/r_sinPhaC_M1' */ + 496 rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, + 497 rtb_r_phaAdvDC_XA_o2, rtConstP.r_sinPhaC_M1_Table); + 498 + 499 /* End of Outputs for SubSystem: '<S9>/F03_02_Sinusoidal_Method' */ + 500 break; + 501 + 502 case 3: + 503 /* Outputs for IfAction SubSystem: '<S9>/F03_03_Sinusoidal3rd_Method' incorporates: + 504 * ActionPort: '<S20>/Action Port' + 505 */ + 506 /* PreLookup: '<S20>/a_sinElecAngle_XA' */ + 507 rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtDW->Switch_PhaAdv, 0, 10U, + 508 36U, &rtb_r_phaAdvDC_XA_o2); + 509 + 510 /* Interpolation_n-D: '<S20>/r_sin3PhaA_M1' */ + 511 rtDW->Merge = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, + 512 rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaA_M1_Table); + 513 + 514 /* Interpolation_n-D: '<S20>/r_sin3PhaB_M1' */ + 515 rtDW->Merge1 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, + 516 rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaB_M1_Table); + 517 + 518 /* Interpolation_n-D: '<S20>/r_sin3PhaC_M1' */ + 519 rtDW->Merge2 = intrp1d_s16s32s32u8u32n31l_s(rtb_BitwiseOperator, + 520 rtb_r_phaAdvDC_XA_o2, rtConstP.r_sin3PhaC_M1_Table); + 521 + 522 /* End of Outputs for SubSystem: '<S9>/F03_03_Sinusoidal3rd_Method' */ + 523 break; + 524 } + 525 + 526 /* End of SwitchCase: '<S9>/Switch Case' */ + 527 + 528 /* Signum: '<S14>/Sign' */ + 529 if (rtDW->Switch2 < 0) { + 530 rtb_Sum2_h = -1; + 531 } else { + 532 rtb_Sum2_h = (int8_T)(rtDW->Switch2 > 0); + 533 } + 534 + 535 /* End of Signum: '<S14>/Sign' */ + 536 + 537 /* Signum: '<S14>/Sign1' incorporates: + 538 * Inport: '<Root>/r_DC' + 539 */ + 540 if (rtU->r_DC < 0) { + 541 rtb_Abs5 = -1; + 542 } else { + 543 rtb_Abs5 = (rtU->r_DC > 0); + 544 } + 545 + 546 /* End of Signum: '<S14>/Sign1' */ + 547 + 548 /* Switch: '<S10>/Switch1' incorporates: + 549 * Constant: '<S12>/vec_hallToPos' + 550 * Constant: '<S14>/CTRL_COMM' + 551 * Constant: '<S14>/r_commDCDeacv' + 552 * Constant: '<S7>/z_ctrlTypSel1' + 553 * Inport: '<Root>/r_DC' + 554 * Logic: '<S14>/Logical Operator2' + 555 * LookupNDDirect: '<S10>/z_commutMap_M1' + 556 * Product: '<S10>/Divide2' + 557 * Product: '<S10>/Divide4' + 558 * RelationalOperator: '<S14>/Relational Operator1' + 559 * RelationalOperator: '<S14>/Relational Operator3' + 560 * RelationalOperator: '<S14>/Relational Operator4' + 561 * Relay: '<S14>/dz_counter' + 562 * Relay: '<S14>/n_commDeacv' + 563 * Selector: '<S12>/Selector' + 564 * + 565 * About '<S10>/z_commutMap_M1': + 566 * 2-dimensional Direct Look-Up returning a Column + 567 */ + 568 if ((rtP->z_ctrlTypSel != 0) && (rtb_Abs1 > rtP->r_commDCDeacv) && (rtb_Sum2_h + 569 == rtb_Abs5) && rtDW->n_commDeacv_Mode && (!rtDW->dz_counter_Mode)) { + 570 rtb_Abs5 = rtU->r_DC * rtDW->Merge; + 571 rtb_Switch1_idx_1 = rtU->r_DC * rtDW->Merge1; + 572 rtb_Abs1 = rtU->r_DC * rtDW->Merge2; + 573 } else { + 574 if (rtConstP.vec_hallToPos_Value[rtb_Sum] > 5) { + 575 /* LookupNDDirect: '<S10>/z_commutMap_M1' + 576 * + 577 * About '<S10>/z_commutMap_M1': + 578 * 2-dimensional Direct Look-Up returning a Column + 579 */ + 580 rtb_Sum2_h = 5; + 581 } else if (rtConstP.vec_hallToPos_Value[rtb_Sum] < 0) { + 582 /* LookupNDDirect: '<S10>/z_commutMap_M1' + 583 * + 584 * About '<S10>/z_commutMap_M1': + 585 * 2-dimensional Direct Look-Up returning a Column + 586 */ + 587 rtb_Sum2_h = 0; + 588 } else { + 589 /* LookupNDDirect: '<S10>/z_commutMap_M1' incorporates: + 590 * Constant: '<S12>/vec_hallToPos' + 591 * Selector: '<S12>/Selector' + 592 * + 593 * About '<S10>/z_commutMap_M1': + 594 * 2-dimensional Direct Look-Up returning a Column + 595 */ + 596 rtb_Sum2_h = rtConstP.vec_hallToPos_Value[rtb_Sum]; + 597 } + 598 + 599 /* LookupNDDirect: '<S10>/z_commutMap_M1' incorporates: + 600 * Constant: '<S12>/vec_hallToPos' + 601 * Selector: '<S12>/Selector' + 602 * + 603 * About '<S10>/z_commutMap_M1': + 604 * 2-dimensional Direct Look-Up returning a Column + 605 */ + 606 rtb_Abs1 = rtb_Sum2_h * 3; + 607 rtb_Abs5 = rtU->r_DC * rtConstP.z_commutMap_M1_table[rtb_Abs1]; + 608 rtb_Switch1_idx_1 = rtConstP.z_commutMap_M1_table[1 + rtb_Abs1] * rtU->r_DC; + 609 rtb_Abs1 = rtConstP.z_commutMap_M1_table[2 + rtb_Abs1] * rtU->r_DC; + 610 } + 611 + 612 /* End of Switch: '<S10>/Switch1' */ + 613 + 614 /* Outport: '<Root>/DC_phaA' incorporates: + 615 * Constant: '<S10>/Constant1' + 616 * Product: '<S10>/Divide1' + 617 */ + 618 rtY->DC_phaA = rtb_Abs5 / 1000; + 619 + 620 /* Outport: '<Root>/DC_phaB' incorporates: + 621 * Constant: '<S10>/Constant1' + 622 * Product: '<S10>/Divide1' + 623 */ + 624 rtY->DC_phaB = rtb_Switch1_idx_1 / 1000; + 625 + 626 /* Update for UnitDelay: '<S11>/UnitDelay' incorporates: + 627 * Inport: '<Root>/b_hallA ' 628 */ - 629 rtY->DC_phaB = rtb_Switch1_idx_1 / 1000; + 629 rtDW->UnitDelay_DSTATE = rtU->b_hallA; 630 - 631 /* Update for UnitDelay: '<S11>/UnitDelay' incorporates: - 632 * Inport: '<Root>/b_hallA ' + 631 /* Update for UnitDelay: '<S11>/UnitDelay1' incorporates: + 632 * Inport: '<Root>/b_hallB' 633 */ - 634 rtDW->UnitDelay_DSTATE = rtU->b_hallA; + 634 rtDW->UnitDelay1_DSTATE_i = rtU->b_hallB; 635 - 636 /* Update for UnitDelay: '<S11>/UnitDelay1' incorporates: - 637 * Inport: '<Root>/b_hallB' + 636 /* Update for UnitDelay: '<S11>/UnitDelay2' incorporates: + 637 * Inport: '<Root>/b_hallC' 638 */ - 639 rtDW->UnitDelay1_DSTATE_i = rtU->b_hallB; + 639 rtDW->UnitDelay2_DSTATE_h = rtU->b_hallC; 640 - 641 /* Update for UnitDelay: '<S11>/UnitDelay2' incorporates: - 642 * Inport: '<Root>/b_hallC' - 643 */ - 644 rtDW->UnitDelay2_DSTATE_h = rtU->b_hallC; - 645 - 646 /* Update for UnitDelay: '<S17>/UnitDelay1' */ - 647 rtDW->UnitDelay1_DSTATE = rtb_Sum1_a; - 648 - 649 /* Update for UnitDelay: '<S14>/UnitDelay1' */ - 650 rtDW->UnitDelay1_DSTATE_c = rtb_Sum1_a; - 651 - 652 /* Update for UnitDelay: '<S16>/UnitDelay2' */ - 653 rtDW->UnitDelay2_DSTATE = rtb_Sum2; - 654 - 655 /* Outport: '<Root>/DC_phaC' incorporates: - 656 * Constant: '<S10>/Constant1' - 657 * Product: '<S10>/Divide1' - 658 */ - 659 rtY->DC_phaC = rtb_Abs5 / 1000; - 660 - 661 /* End of Outputs for SubSystem: '<Root>/BLDC_controller' */ - 662 - 663 /* Outport: '<Root>/n_mot' */ - 664 rtY->n_mot = rtb_Sum2; - 665 } + 641 /* Update for UnitDelay: '<S17>/UnitDelay1' */ + 642 rtDW->UnitDelay1_DSTATE = rtb_Sum1_a; + 643 + 644 /* Update for UnitDelay: '<S14>/UnitDelay1' */ + 645 rtDW->UnitDelay1_DSTATE_c = rtb_Sum1_a; + 646 + 647 /* Update for UnitDelay: '<S16>/UnitDelay2' */ + 648 rtDW->UnitDelay2_DSTATE = rtb_Sum2; + 649 + 650 /* Outport: '<Root>/DC_phaC' incorporates: + 651 * Constant: '<S10>/Constant1' + 652 * Product: '<S10>/Divide1' + 653 */ + 654 rtY->DC_phaC = rtb_Abs1 / 1000; + 655 + 656 /* End of Outputs for SubSystem: '<Root>/BLDC_controller' */ + 657 + 658 /* Outport: '<Root>/n_mot' */ + 659 rtY->n_mot = rtb_Sum2; + 660 } + 661 + 662 /* Model initialize function */ + 663 void BLDC_controller_initialize(RT_MODEL *const rtM) + 664 { + 665 DW *rtDW = ((DW *) rtM->dwork); 666 - 667 /* Model initialize function */ - 668 void BLDC_controller_initialize(RT_MODEL *const rtM) - 669 { - 670 DW *rtDW = ((DW *) rtM->dwork); - 671 - 672 /* Start for Atomic SubSystem: '<Root>/BLDC_controller' */ - 673 /* Start for If: '<S2>/If1' */ - 674 rtDW->If1_ActiveSubsystem = -1; - 675 - 676 /* End of Start for SubSystem: '<Root>/BLDC_controller' */ - 677 - 678 /* SystemInitialize for Atomic SubSystem: '<Root>/BLDC_controller' */ - 679 /* InitializeConditions for UnitDelay: '<S17>/UnitDelay1' */ - 680 rtDW->UnitDelay1_DSTATE = 1500; - 681 - 682 /* SystemInitialize for IfAction SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' */ - 683 /* InitializeConditions for UnitDelay: '<S15>/z_counter2' */ - 684 rtDW->z_counter2_DSTATE = 1500; - 685 - 686 /* SystemInitialize for Outport: '<S15>/z_counter' */ - 687 rtDW->z_counterRawPrev = 1500; - 688 - 689 /* End of SystemInitialize for SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' */ - 690 /* End of SystemInitialize for SubSystem: '<Root>/BLDC_controller' */ - 691 } - 692 - 693 /* - 694 * File trailer for generated code. - 695 * - 696 * [EOF] - 697 */ - 698 + 667 /* Start for Atomic SubSystem: '<Root>/BLDC_controller' */ + 668 /* Start for If: '<S2>/If1' */ + 669 rtDW->If1_ActiveSubsystem = -1; + 670 + 671 /* End of Start for SubSystem: '<Root>/BLDC_controller' */ + 672 + 673 /* SystemInitialize for Atomic SubSystem: '<Root>/BLDC_controller' */ + 674 /* InitializeConditions for UnitDelay: '<S17>/UnitDelay1' */ + 675 rtDW->UnitDelay1_DSTATE = 1500; + 676 + 677 /* SystemInitialize for IfAction SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' */ + 678 /* InitializeConditions for UnitDelay: '<S15>/z_counter2' */ + 679 rtDW->z_counter2_DSTATE = 1500; + 680 + 681 /* SystemInitialize for Outport: '<S15>/z_counter' */ + 682 rtDW->z_counterRawPrev = 1500; + 683 + 684 /* End of SystemInitialize for SubSystem: '<S14>/Counter_Hold_and_Error_Calculation' */ + 685 /* End of SystemInitialize for SubSystem: '<Root>/BLDC_controller' */ + 686 } + 687 + 688 /* + 689 * File trailer for generated code. + 690 * + 691 * [EOF] + 692 */ + 693

diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_data_c.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_data_c.html index e2cd23c..fd7fdf5 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_data_c.html +++ b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_data_c.html @@ -21,9 +21,9 @@ 7 * 8 * Code generated for Simulink model 'BLDC_controller'. 9 * - 10 * Model version : 1.877 + 10 * Model version : 1.879 11 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - 12 * C/C++ source code generated on : Wed Jun 5 22:29:28 2019 + 12 * C/C++ source code generated on : Thu Jun 6 17:49:29 2019 13 * 14 * Target selection: ert.tlc 15 * Embedded hardware selection: ARM Compatible->ARM Cortex diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_h.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_h.html index 29f631b..730f01a 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_h.html +++ b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_h.html @@ -21,9 +21,9 @@ 7 * 8 * Code generated for Simulink model 'BLDC_controller'. 9 * - 10 * Model version : 1.877 + 10 * Model version : 1.879 11 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - 12 * C/C++ source code generated on : Wed Jun 5 22:29:28 2019 + 12 * C/C++ source code generated on : Thu Jun 6 17:49:29 2019 13 * 14 * Target selection: ert.tlc 15 * Embedded hardware selection: ARM Compatible->ARM Cortex diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_metrics.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_metrics.html index 4860635..cdcdaa7 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_metrics.html +++ b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_metrics.html @@ -100,7 +100,7 @@ Function Information : -408 +404   @@ -115,7 +115,7 @@ Function Information : -1,155 +1,150   @@ -169,13 +169,13 @@ BLDC_controller.c -258 +254 -698 +693 -06/05/2019 10:29 PM +06/06/2019 5:49 PM @@ -193,7 +193,7 @@ BLDC_controller.h 246 -06/05/2019 10:29 PM +06/06/2019 5:49 PM @@ -211,7 +211,7 @@ rtwtypes.h 109 -06/05/2019 10:29 PM +06/06/2019 5:49 PM @@ -229,7 +229,7 @@ BLDC_controller_data.c 102 -06/05/2019 10:29 PM +06/06/2019 5:49 PM @@ -448,10 +448,10 @@ BLDC_controller_step 60 -185 +181 -516 +511 24 @@ -760,10 +760,10 @@ BLDC_controller_step 60 -185 +181 -516 +511 24 diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_sid_map.js b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_sid_map.js index bd59691..0b0d719 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_sid_map.js +++ b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_sid_map.js @@ -36,6 +36,7 @@ function RTW_SidParentMap() { this.sidParentMap["BLDCmotorControl_R2017b:2687:3"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:4"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:5"] = "BLDCmotorControl_R2017b:2687"; + this.sidParentMap["BLDCmotorControl_R2017b:2687:1660"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:6"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:215"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:282"] = "BLDCmotorControl_R2017b:2687"; @@ -43,6 +44,7 @@ function RTW_SidParentMap() { this.sidParentMap["BLDCmotorControl_R2017b:2687:416"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:417"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1379"] = "BLDCmotorControl_R2017b:2687"; + this.sidParentMap["BLDCmotorControl_R2017b:2687:1667"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:418"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:419"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:420"] = "BLDCmotorControl_R2017b:2687"; @@ -60,6 +62,7 @@ function RTW_SidParentMap() { this.sidParentMap["BLDCmotorControl_R2017b:2687:431"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:432"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:433"] = "BLDCmotorControl_R2017b:2687"; + this.sidParentMap["BLDCmotorControl_R2017b:2687:1659"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:434"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:457"] = "BLDCmotorControl_R2017b:2687"; this.sidParentMap["BLDCmotorControl_R2017b:2687:589"] = "BLDCmotorControl_R2017b:2687"; @@ -80,6 +83,7 @@ function RTW_SidParentMap() { this.sidParentMap["BLDCmotorControl_R2017b:2687:8"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:9"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1375"] = "BLDCmotorControl_R2017b:2687:6"; + this.sidParentMap["BLDCmotorControl_R2017b:2687:1661"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:26"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:10"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:38"] = "BLDCmotorControl_R2017b:2687:6"; @@ -93,6 +97,7 @@ function RTW_SidParentMap() { this.sidParentMap["BLDCmotorControl_R2017b:2687:184"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1633"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1482"] = "BLDCmotorControl_R2017b:2687:6"; + this.sidParentMap["BLDCmotorControl_R2017b:2687:1666"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1382"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:186"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:187"] = "BLDCmotorControl_R2017b:2687:6"; @@ -106,6 +111,7 @@ function RTW_SidParentMap() { this.sidParentMap["BLDCmotorControl_R2017b:2687:195"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:196"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:197"] = "BLDCmotorControl_R2017b:2687:6"; + this.sidParentMap["BLDCmotorControl_R2017b:2687:1662"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:198"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1376"] = "BLDCmotorControl_R2017b:2687:6"; this.sidParentMap["BLDCmotorControl_R2017b:2687:199"] = "BLDCmotorControl_R2017b:2687:6"; @@ -132,7 +138,6 @@ function RTW_SidParentMap() { this.sidParentMap["BLDCmotorControl_R2017b:2687:1460"] = "BLDCmotorControl_R2017b:2687:215"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1461"] = "BLDCmotorControl_R2017b:2687:215"; this.sidParentMap["BLDCmotorControl_R2017b:2687:221"] = "BLDCmotorControl_R2017b:2687:215"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:595"] = "BLDCmotorControl_R2017b:2687:215"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1464"] = "BLDCmotorControl_R2017b:2687:215"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1465"] = "BLDCmotorControl_R2017b:2687:215"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1466"] = "BLDCmotorControl_R2017b:2687:215"; @@ -291,11 +296,11 @@ function RTW_SidParentMap() { this.sidParentMap["BLDCmotorControl_R2017b:2687:57"] = "BLDCmotorControl_R2017b:2687:38"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1632"] = "BLDCmotorControl_R2017b:2687:38"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1373"] = "BLDCmotorControl_R2017b:2687:59"; + this.sidParentMap["BLDCmotorControl_R2017b:2687:1663"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1370"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:60"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:61"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1629"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1319"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1366"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1320"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1321"] = "BLDCmotorControl_R2017b:2687:59"; @@ -310,10 +315,10 @@ function RTW_SidParentMap() { this.sidParentMap["BLDCmotorControl_R2017b:2687:1641"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1642"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:86"] = "BLDCmotorControl_R2017b:2687:59"; + this.sidParentMap["BLDCmotorControl_R2017b:2687:1665"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1380"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1455"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1361"] = "BLDCmotorControl_R2017b:2687:59"; - this.sidParentMap["BLDCmotorControl_R2017b:2687:1322"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1323"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1517"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1324"] = "BLDCmotorControl_R2017b:2687:59"; @@ -326,6 +331,7 @@ function RTW_SidParentMap() { this.sidParentMap["BLDCmotorControl_R2017b:2687:1533"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:99"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:100"] = "BLDCmotorControl_R2017b:2687:59"; + this.sidParentMap["BLDCmotorControl_R2017b:2687:1664"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1398"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1371"] = "BLDCmotorControl_R2017b:2687:59"; this.sidParentMap["BLDCmotorControl_R2017b:2687:1372"] = "BLDCmotorControl_R2017b:2687:59"; diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_survey.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_survey.html index 86480a1..8e73480 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_survey.html +++ b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_survey.html @@ -40,7 +40,7 @@ MathWorks Model Version -1.877 +1.879 @@ -109,7 +109,7 @@ Simulink Coder Version Timestamp of Generated Source Code -Wed Jun 5 22:29:28 2019 +Thu Jun 6 17:49:29 2019 diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_trace.html b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_trace.html index a80086c..b989a7b 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_trace.html +++ b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_trace.html @@ -19,19 +19,19 @@ function rtwTraceHilite(file,ext,ln) { } //-->

Traceability Report for BLDC_controller

Table of Contents

  1. Eliminated / Virtual Blocks
  2. Traceable Simulink Blocks / Stateflow Objects / MATLAB Functions

Eliminated / Virtual Blocks

Block NameComment
<S1>/b_hallA -

Inport

<S1>/b_hallB

Inport

<S1>/b_hallC

Inport

<S1>/r_DC

Inport

<S1>/BLDC_controller

Traceability information not available

<S1>/From1

From

<S1>/From18

Traceability information not available

<S1>/From19

Traceability information not available

<S1>/From20

Traceability information not available

<S1>/From21

Traceability information not available

<S1>/From5

From

<S1>/From6

From

<S1>/From7

From

<S1>/From8

From

<S1>/Goto

Goto

<S1>/Goto1

Goto

<S1>/Goto18

Traceability information not available

<S1>/Goto19

Traceability information not available

<S1>/Goto2

Goto

<S1>/Goto20

Traceability information not available

<S1>/Goto21

Traceability information not available

<S1>/Goto22

Traceability information not available

<S1>/Goto3

Goto

<S1>/signal_log1

Virtual SubSystem

<S1>/signal_log2

Virtual SubSystem

<S1>/signal_log3

Virtual SubSystem

<S1>/signal_log6

Virtual SubSystem

<S1>/DC_phaA

Outport

<S1>/DC_phaB

Outport

<S1>/DC_phaC

Outport

<S1>/n_mot

Outport

<S1>/a_elecAngle

Outport

<S2>/b_hallA -

Traceability information not available

<S2>/b_hallB

Traceability information not available

<S2>/b_hallC

Traceability information not available

<S2>/r_DC

Traceability information not available

<S2>/F01_Preliminary_Calculations

Traceability information not available

<S2>/F03_Control_Method_Selection

Traceability information not available

<S2>/F04_Control_Type_Management

Traceability information not available

<S2>/From

Traceability information not available

<S2>/From1

Traceability information not available

<S2>/From10

Traceability information not available

<S2>/From2

Traceability information not available

<S2>/From3

Traceability information not available

<S2>/From4

Traceability information not available

<S2>/From5

Traceability information not available

<S2>/From6

Traceability information not available

<S2>/From7

Traceability information not available

<S2>/From8

Traceability information not available

<S2>/From9

Traceability information not available

<S2>/Goto

Traceability information not available

<S2>/Goto1

Traceability information not available

<S2>/Goto2

Traceability information not available

<S2>/Goto3

Traceability information not available

<S2>/Goto4

Traceability information not available

<S2>/Goto5

Traceability information not available

<S2>/Goto6

Traceability information not available

<S2>/Goto7

Traceability information not available

<S2>/Goto8

Traceability information not available

<S2>/Implemented_control_methods

Traceability information not available

<S2>/Model_Info

Traceability information not available

<S2>/DC_phaA

Traceability information not available

<S2>/DC_phaB

Traceability information not available

<S2>/DC_phaC

Traceability information not available

<S2>/n_mot

Traceability information not available

<S2>/a_elecAngle

Traceability information not available

<S3>/b_hallB

Inport

<S3>/Terminator_1

Terminator

<S4>/b_hallC

Inport

<S4>/Terminator_1

Terminator

<S5>/r_DC

Inport

<S5>/Terminator_1

Terminator

<S6>/b_hallA

Inport

<S6>/Terminator_1

Terminator

<S7>/b_hallA

Traceability information not available

<S7>/b_hallB

Traceability information not available

<S7>/b_hallC

Traceability information not available

<S7>/r_DC

Traceability information not available

<S7>/F01_01_Edge_Detector

Traceability information not available

<S7>/F01_02_Position_Calculation

Traceability information not available

<S7>/F01_04_Speed_Calculation

Traceability information not available

<S7>/From

Traceability information not available

<S7>/From1

Traceability information not available

<S7>/From10

Traceability information not available

<S7>/From11

Traceability information not available

<S7>/From12

Traceability information not available

<S7>/From13

Traceability information not available

<S7>/From14

Traceability information not available

<S7>/From15

Traceability information not available

<S7>/From16

Traceability information not available

<S7>/From18

Traceability information not available

<S7>/From2

Traceability information not available

<S7>/From3

Traceability information not available

<S7>/From36

Traceability information not available

<S7>/From38

Traceability information not available

<S7>/From4

Traceability information not available

<S7>/From5

Traceability information not available

<S7>/From6

Traceability information not available

<S7>/From7

Traceability information not available

<S7>/From8

Traceability information not available

<S7>/From9

Traceability information not available

<S7>/Goto

Traceability information not available

<S7>/Goto1

Traceability information not available

<S7>/Goto16

Traceability information not available

<S7>/Goto18

Traceability information not available

<S7>/Goto2

Traceability information not available

<S7>/Goto21

Traceability information not available

<S7>/Goto3

Traceability information not available

<S7>/Goto4

Traceability information not available

<S7>/Goto5

Traceability information not available

<S7>/Goto6

Traceability information not available

<S7>/Goto7

Traceability information not available

<S7>/Goto8

Traceability information not available

<S7>/Goto9

Traceability information not available

<S7>/z_ctrlTypSel

Traceability information not available

<S7>/z_pos

Traceability information not available

<S7>/z_dir

Traceability information not available

<S7>/z_counter

Traceability information not available

<S7>/z_counterRaw

Traceability information not available

<S7>/b_advCtrlEna

Traceability information not available

<S7>/n_mot

Traceability information not available

<S8>/r_DC

Traceability information not available

<S8>/z_pos

Traceability information not available

<S8>/z_dir

Traceability information not available

<S8>/z_counter

Traceability information not available

<S8>/z_counterRaw

Traceability information not available

<S8>/Constant2

Traceability information not available

<S8>/From10

Traceability information not available

<S8>/From11

Traceability information not available

<S8>/From12

Traceability information not available

<S8>/From2

Traceability information not available

<S8>/From3

Traceability information not available

<S8>/From5

Traceability information not available

<S8>/From51

Traceability information not available

<S8>/From52

Traceability information not available

<S8>/From53

Traceability information not available

<S8>/From54

Traceability information not available

<S8>/From59

Traceability information not available

<S8>/From6

Traceability information not available

<S8>/From7

Traceability information not available

<S8>/From9

Traceability information not available

<S8>/Goto

Traceability information not available

<S8>/Goto1

Traceability information not available

<S8>/Goto2

Traceability information not available

<S8>/Goto3

Traceability information not available

<S8>/Goto5

Traceability information not available

<S8>/Goto7

Traceability information not available

<S8>/Goto8

Traceability information not available

<S8>/Goto9

Traceability information not available

<S8>/Mux

Traceability information not available

<S8>/Scope

Traceability information not available

<S8>/a_elecPeriod2

Traceability information not available

<S9>/z_ctrlTypSel

Traceability information not available

<S9>/a_elecAngleAdv

Traceability information not available

<S9>/From

Traceability information not available

<S9>/From10

Traceability information not available

<S9>/From13

Traceability information not available

<S9>/From14

Traceability information not available

<S9>/From15

Traceability information not available

<S9>/From16

Traceability information not available

<S9>/From17

Traceability information not available

<S9>/From18

Traceability information not available

<S9>/From19

Traceability information not available

<S9>/From20

Traceability information not available

<S9>/From4

Traceability information not available

<S9>/From5

Traceability information not available

<S9>/From6

Traceability information not available

<S9>/From7

Traceability information not available

<S9>/From8

Traceability information not available

<S9>/From9

Traceability information not available

<S9>/Goto

Traceability information not available

<S9>/Goto1

Traceability information not available

<S9>/Goto10

Traceability information not available

<S9>/Goto11

Traceability information not available

<S9>/Goto12

Traceability information not available

<S9>/Goto14

Traceability information not available

<S9>/Goto2

Traceability information not available

<S9>/Goto3

Traceability information not available

<S9>/Goto4

Traceability information not available

<S9>/Goto5

Traceability information not available

<S9>/Goto6

Traceability information not available

<S9>/Goto7

Traceability information not available

<S9>/Goto8

Traceability information not available

<S9>/Goto9

Traceability information not available

<S9>/signal_log1

Traceability information not available

<S9>/signal_log2

Traceability information not available

<S9>/signal_log6

Traceability information not available

<S9>/r_phaA

Traceability information not available

<S9>/r_phaB

Traceability information not available

<S9>/r_phaC

Traceability information not available

<S10>/r_DC

Traceability information not available

<S10>/r_phaA

Traceability information not available

<S10>/r_phaB

Traceability information not available

<S10>/r_phaC

Traceability information not available

<S10>/z_pos

Traceability information not available

<S10>/b_advCtrlEna

Traceability information not available

<S10>/Demux

Traceability information not available

<S10>/From

Traceability information not available

<S10>/From1

Traceability information not available

<S10>/From10

Traceability information not available

<S10>/From2

Traceability information not available

<S10>/From27

Traceability information not available

<S10>/From39

Traceability information not available

<S10>/From40

Traceability information not available

<S10>/From41

Traceability information not available

<S10>/From8

Traceability information not available

<S10>/From9

Traceability information not available

<S10>/Goto

Traceability information not available

<S10>/Goto1

Traceability information not available

<S10>/Goto10

Traceability information not available

<S10>/Goto2

Traceability information not available

<S10>/Goto4

Traceability information not available

<S10>/Goto6

Traceability information not available

<S10>/Goto7

Traceability information not available

<S10>/Goto8

Traceability information not available

<S10>/Goto9

Traceability information not available

<S10>/Mux2

Traceability information not available

<S10>/DC_phaA

Traceability information not available

<S10>/DC_phaB

Traceability information not available

<S10>/DC_phaC

Traceability information not available

<S11>/b_hallA

Traceability information not available

<S11>/b_hallB

Traceability information not available

<S11>/b_hallC

Traceability information not available

<S11>/b_edge

Traceability information not available

<S12>/b_hallA

Traceability information not available

<S12>/b_hallB

Traceability information not available

<S12>/b_hallC

Traceability information not available

<S12>/z_pos

Traceability information not available

<S13>/z_pos

Traceability information not available

<S13>/z_dir

Traceability information not available

<S13>/z_dirPrev

Traceability information not available

<S14>/r_DC

Traceability information not available

<S14>/z_ctrlTypSel

Traceability information not available

<S14>/b_edge

Traceability information not available

<S14>/z_dir

Traceability information not available

<S14>/z_dirPrev

Traceability information not available

<S14>/From

Traceability information not available

<S14>/From1

Traceability information not available

<S14>/From10

Traceability information not available

<S14>/From11

Traceability information not available

<S14>/From12

Traceability information not available

<S14>/From13

Traceability information not available

<S14>/From14

Traceability information not available

<S14>/From15

Traceability information not available

<S14>/From16

Traceability information not available

<S14>/From18

Traceability information not available

<S14>/From19

Traceability information not available

<S14>/From2

Traceability information not available

<S14>/From28

Traceability information not available

<S14>/From29

Traceability information not available

<S14>/From3

Traceability information not available

<S14>/From30

Traceability information not available

<S14>/From4

Traceability information not available

<S14>/From42

Traceability information not available

<S14>/From5

Traceability information not available

<S14>/From6

Traceability information not available

<S14>/From7

Traceability information not available

<S14>/From8

Traceability information not available

<S14>/From9

Traceability information not available

<S14>/Goto

Traceability information not available

<S14>/Goto1

Traceability information not available

<S14>/Goto15

Traceability information not available

<S14>/Goto16

Traceability information not available

<S14>/Goto17

Traceability information not available

<S14>/Goto18

Traceability information not available

<S14>/Goto2

Traceability information not available

<S14>/Goto22

Traceability information not available

<S14>/Goto5

Traceability information not available

<S14>/Goto6

Traceability information not available

<S14>/Goto8

Traceability information not available

<S14>/Goto9

Traceability information not available

<S14>/Motor_Speed_Calculation

Traceability information not available

<S14>/Mux1

Traceability information not available

<S14>/Mux2

Traceability information not available

<S14>/Scope2

Traceability information not available

<S14>/rst_DelayLim

Traceability information not available

<S14>/n_mot

Traceability information not available

<S14>/b_advCtrlEna

Traceability information not available

<S14>/z_counter

Traceability information not available

<S14>/z_counterRaw

Traceability information not available

<S15>/dz_counter

Traceability information not available

<S16>/z_dir

Traceability information not available

<S16>/z_dirPrev

Traceability information not available

<S16>/z_counter

Traceability information not available

<S16>/z_counterRaw

Traceability information not available

<S16>/From1

Traceability information not available

<S16>/From14

Traceability information not available

<S16>/From15

Traceability information not available

<S16>/From17

Traceability information not available

<S16>/From42

Traceability information not available

<S16>/From8

Traceability information not available

<S16>/Goto

Traceability information not available

<S16>/Goto1

Traceability information not available

<S16>/Goto2

Traceability information not available

<S16>/Goto22

Traceability information not available

<S16>/Goto3

Traceability information not available

<S16>/n_motRaw

Traceability information not available

<S16>/n_mot

Traceability information not available

<S17>/u

Traceability information not available

<S17>/rst

Traceability information not available

<S17>/y

Traceability information not available

<S18>/a_elecAngleAdv

Traceability information not available

<S18>/r_phaA_Trap

Traceability information not available

<S18>/r_phaB_Trap

Traceability information not available

<S18>/r_phaC_Trap

Traceability information not available

<S19>/a_elecAngleAdv

Traceability information not available

<S19>/r_phaA_Sin

Traceability information not available

<S19>/r_phaB_Sin

Traceability information not available

<S19>/r_phaC_Sin

Traceability information not available

<S20>/a_elecAngleAdv

Traceability information not available

<S20>/r_phaA_Sin3

Traceability information not available

<S20>/r_phaB_Sin3

Traceability information not available

<S20>/r_phaC_Sin3

Traceability information not available

<S21>/r_phaB

Traceability information not available

<S21>/Terminator_1

Traceability information not available

<S22>/r_phaC

Traceability information not available

<S22>/Terminator_1

Traceability information not available

<S23>/r_phaA

Traceability information not available

<S23>/Terminator_1

Traceability information not available

Traceable Simulink Blocks / Stateflow Objects / MATLAB Functions

Subsystem: BLDCmotorControl_R2017b/BLDC_controller

No traceable objects in this Subsystem.

Subsystem: BLDCmotorControl_R2017b/BLDC_controller/signal_log1

No traceable objects in this Subsystem.

Subsystem: BLDCmotorControl_R2017b/BLDC_controller/signal_log2

No traceable objects in this Subsystem.

Subsystem: BLDCmotorControl_R2017b/BLDC_controller/signal_log3

No traceable objects in this Subsystem.

Subsystem: BLDCmotorControl_R2017b/BLDC_controller/signal_log6

No traceable objects in this Subsystem.

\ No newline at end of file +

Inport

<S1>/b_hallB

Inport

<S1>/b_hallC

Inport

<S1>/r_DC

Inport

<S1>/BLDC_controller

Virtual SubSystem

<S1>/From1

From

<S1>/From18

From

<S1>/From19

From

<S1>/From20

From

<S1>/From21

From

<S1>/From5

From

<S1>/From6

From

<S1>/From7

From

<S1>/From8

From

<S1>/Goto

Goto

<S1>/Goto1

Goto

<S1>/Goto18

Goto

<S1>/Goto19

Goto

<S1>/Goto2

Goto

<S1>/Goto20

Goto

<S1>/Goto21

Goto

<S1>/Goto22

Goto

<S1>/Goto3

Goto

<S1>/signal_log1

Virtual SubSystem

<S1>/signal_log2

Virtual SubSystem

<S1>/signal_log3

Virtual SubSystem

<S1>/signal_log6

Virtual SubSystem

<S1>/DC_phaA

Outport

<S1>/DC_phaB

Outport

<S1>/DC_phaC

Outport

<S1>/n_mot

Outport

<S1>/a_elecAngle

Outport

<S2>/b_hallA +

Inport

<S2>/b_hallB

Inport

<S2>/b_hallC

Inport

<S2>/r_DC

Inport

<S2>/F01_Preliminary_Calculations

Virtual SubSystem

<S2>/F03_Control_Method_Selection

Virtual SubSystem

<S2>/F04_Control_Type_Management

Virtual SubSystem

<S2>/From

From

<S2>/From1

From

<S2>/From10

From

<S2>/From11

From

<S2>/From2

From

<S2>/From3

From

<S2>/From4

From

<S2>/From5

From

<S2>/From6

From

<S2>/From7

From

<S2>/From8

From

<S2>/From9

From

<S2>/Goto

Goto

<S2>/Goto1

Goto

<S2>/Goto2

Goto

<S2>/Goto3

Goto

<S2>/Goto4

Goto

<S2>/Goto5

Goto

<S2>/Goto6

Goto

<S2>/Goto7

Goto

<S2>/Goto8

Goto

<S2>/Goto9

Goto

<S2>/Implemented_control_methods

Empty SubSystem

<S2>/Model_Info

Empty SubSystem

<S2>/DC_phaA

Outport

<S2>/DC_phaB

Outport

<S2>/DC_phaC

Outport

<S2>/n_mot

Outport

<S2>/a_elecAngle

Outport

<S3>/b_hallB

Inport

<S3>/Terminator_1

Terminator

<S4>/b_hallC

Inport

<S4>/Terminator_1

Terminator

<S5>/r_DC

Inport

<S5>/Terminator_1

Terminator

<S6>/b_hallA

Inport

<S6>/Terminator_1

Terminator

<S7>/b_hallA

Inport

<S7>/b_hallB

Inport

<S7>/b_hallC

Inport

<S7>/r_DC

Inport

<S7>/r_DCabs

Inport

<S7>/F01_01_Edge_Detector

Virtual SubSystem

<S7>/F01_02_Position_Calculation

Virtual SubSystem

<S7>/F01_04_Speed_Calculation

Virtual SubSystem

<S7>/From

From

<S7>/From1

From

<S7>/From10

From

<S7>/From11

From

<S7>/From12

From

<S7>/From13

From

<S7>/From14

From

<S7>/From15

From

<S7>/From16

From

<S7>/From17

From

<S7>/From18

From

<S7>/From2

From

<S7>/From3

From

<S7>/From36

From

<S7>/From38

From

<S7>/From4

From

<S7>/From5

From

<S7>/From6

From

<S7>/From7

From

<S7>/From8

From

<S7>/From9

From

<S7>/Goto

Goto

<S7>/Goto1

Goto

<S7>/Goto10

Goto

<S7>/Goto16

Goto

<S7>/Goto18

Goto

<S7>/Goto2

Goto

<S7>/Goto21

Goto

<S7>/Goto3

Goto

<S7>/Goto4

Goto

<S7>/Goto5

Goto

<S7>/Goto6

Goto

<S7>/Goto7

Goto

<S7>/Goto8

Goto

<S7>/Goto9

Goto

<S7>/z_ctrlTypSel

Outport

<S7>/z_pos

Outport

<S7>/z_dir

Outport

<S7>/z_counter

Outport

<S7>/z_counterRaw

Outport

<S7>/b_advCtrlEna

Outport

<S7>/n_mot

Outport

<S8>/r_DCabs

Inport

<S8>/z_pos

Inport

<S8>/z_dir

Inport

<S8>/z_counter

Inport

<S8>/z_counterRaw

Inport

<S8>/Constant2

Eliminated by code generation optimization

<S8>/From10

From

<S8>/From11

From

<S8>/From12

From

<S8>/From2

From

<S8>/From3

From

<S8>/From5

From

<S8>/From51

From

<S8>/From52

From

<S8>/From53

From

<S8>/From54

From

<S8>/From59

From

<S8>/From6

From

<S8>/From7

From

<S8>/From9

From

<S8>/Goto

Goto

<S8>/Goto1

Goto

<S8>/Goto2

Goto

<S8>/Goto3

Goto

<S8>/Goto5

Goto

<S8>/Goto7

Goto

<S8>/Goto8

Goto

<S8>/Goto9

Goto

<S8>/Mux

Mux

<S8>/Scope

Unused code path elimination

<S8>/a_elecPeriod2

Eliminated by code generation optimization

<S9>/z_ctrlTypSel

Inport

<S9>/a_elecAngleAdv

Inport

<S9>/From

From

<S9>/From10

From

<S9>/From13

From

<S9>/From14

From

<S9>/From15

From

<S9>/From16

From

<S9>/From17

From

<S9>/From18

From

<S9>/From19

From

<S9>/From20

From

<S9>/From4

From

<S9>/From5

From

<S9>/From6

From

<S9>/From7

From

<S9>/From8

From

<S9>/From9

From

<S9>/Goto

Goto

<S9>/Goto1

Goto

<S9>/Goto10

Goto

<S9>/Goto11

Goto

<S9>/Goto12

Goto

<S9>/Goto14

Goto

<S9>/Goto2

Goto

<S9>/Goto3

Goto

<S9>/Goto4

Goto

<S9>/Goto5

Goto

<S9>/Goto6

Goto

<S9>/Goto7

Goto

<S9>/Goto8

Goto

<S9>/Goto9

Goto

<S9>/signal_log1

Virtual SubSystem

<S9>/signal_log2

Virtual SubSystem

<S9>/signal_log6

Virtual SubSystem

<S9>/r_phaA

Outport

<S9>/r_phaB

Outport

<S9>/r_phaC

Outport

<S10>/r_DC

Inport

<S10>/r_phaA

Inport

<S10>/r_phaB

Inport

<S10>/r_phaC

Inport

<S10>/z_pos

Inport

<S10>/b_advCtrlEna

Inport

<S10>/Demux

Demux

<S10>/From

From

<S10>/From1

From

<S10>/From10

From

<S10>/From2

From

<S10>/From27

From

<S10>/From39

From

<S10>/From40

From

<S10>/From41

From

<S10>/From8

From

<S10>/From9

From

<S10>/Goto

Goto

<S10>/Goto1

Goto

<S10>/Goto10

Goto

<S10>/Goto2

Goto

<S10>/Goto4

Goto

<S10>/Goto6

Goto

<S10>/Goto7

Goto

<S10>/Goto8

Goto

<S10>/Goto9

Goto

<S10>/Mux2

Mux

<S10>/DC_phaA

Outport

<S10>/DC_phaB

Outport

<S10>/DC_phaC

Outport

<S11>/b_hallA

Inport

<S11>/b_hallB

Inport

<S11>/b_hallC

Inport

<S11>/b_edge

Outport

<S12>/b_hallA

Inport

<S12>/b_hallB

Inport

<S12>/b_hallC

Inport

<S12>/z_pos

Outport

<S13>/z_pos

Inport

<S13>/z_dir

Outport

<S13>/z_dirPrev

Outport

<S14>/r_DC

Inport

<S14>/r_DCabs

Inport

<S14>/z_ctrlTypSel

Inport

<S14>/b_edge

Inport

<S14>/z_dir

Inport

<S14>/z_dirPrev

Inport

<S14>/From

From

<S14>/From1

From

<S14>/From10

From

<S14>/From11

From

<S14>/From12

From

<S14>/From13

From

<S14>/From14

From

<S14>/From15

From

<S14>/From16

From

<S14>/From17

From

<S14>/From18

From

<S14>/From19

From

<S14>/From2

From

<S14>/From29

From

<S14>/From3

From

<S14>/From30

From

<S14>/From4

From

<S14>/From42

From

<S14>/From5

From

<S14>/From6

From

<S14>/From7

From

<S14>/From8

From

<S14>/From9

From

<S14>/Goto

Goto

<S14>/Goto1

Goto

<S14>/Goto10

Goto

<S14>/Goto15

Goto

<S14>/Goto16

Goto

<S14>/Goto17

Goto

<S14>/Goto18

Goto

<S14>/Goto2

Goto

<S14>/Goto22

Goto

<S14>/Goto5

Goto

<S14>/Goto6

Goto

<S14>/Goto8

Goto

<S14>/Goto9

Goto

<S14>/Motor_Speed_Calculation

Virtual SubSystem

<S14>/Mux1

Mux

<S14>/Mux2

Mux

<S14>/Scope2

Unused code path elimination

<S14>/rst_DelayLim

Masked SubSystem

<S14>/n_mot

Outport

<S14>/b_advCtrlEna

Outport

<S14>/z_counter

Outport

<S14>/z_counterRaw

Outport

<S15>/dz_counter

Outport

<S16>/z_dir

Inport

<S16>/z_dirPrev

Inport

<S16>/z_counter

Inport

<S16>/z_counterRaw

Inport

<S16>/From1

From

<S16>/From14

From

<S16>/From15

From

<S16>/From17

From

<S16>/From42

From

<S16>/From8

From

<S16>/Goto

Goto

<S16>/Goto1

Goto

<S16>/Goto2

Goto

<S16>/Goto22

Goto

<S16>/Goto3

Goto

<S16>/n_motRaw

Outport

<S16>/n_mot

Outport

<S17>/u

Inport

<S17>/rst

Inport

<S17>/y

Outport

<S18>/a_elecAngleAdv

Inport

<S18>/r_phaA_Trap

Outport

<S18>/r_phaB_Trap

Outport

<S18>/r_phaC_Trap

Outport

<S19>/a_elecAngleAdv

Inport

<S19>/r_phaA_Sin

Outport

<S19>/r_phaB_Sin

Outport

<S19>/r_phaC_Sin

Outport

<S20>/a_elecAngleAdv

Inport

<S20>/r_phaA_Sin3

Outport

<S20>/r_phaB_Sin3

Outport

<S20>/r_phaC_Sin3

Outport

<S21>/r_phaB

Inport

<S21>/Terminator_1

Terminator

<S22>/r_phaC

Inport

<S22>/Terminator_1

Terminator

<S23>/r_phaA

Inport

<S23>/Terminator_1

Terminator

Traceable Simulink Blocks / Stateflow Objects / MATLAB Functions

Subsystem: BLDCmotorControl_R2017b/BLDC_controller

No traceable objects in this Subsystem.

Subsystem: BLDCmotorControl_R2017b/BLDC_controller/signal_log1

No traceable objects in this Subsystem.

Subsystem: BLDCmotorControl_R2017b/BLDC_controller/signal_log2

No traceable objects in this Subsystem.

Subsystem: BLDCmotorControl_R2017b/BLDC_controller/signal_log3

No traceable objects in this Subsystem.

Subsystem: BLDCmotorControl_R2017b/BLDC_controller/signal_log6

No traceable objects in this Subsystem.

\ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_traceInfo.js b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_traceInfo.js index 7ed0668..506bcf1 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_traceInfo.js +++ b/01_Matlab/BLDC_controller_ert_rtw/html/BLDC_controller_traceInfo.js @@ -1,372 +1,69 @@ function RTW_Sid2UrlHash() { this.urlHashMap = new Array(); - /* /BLDC_controller */ - this.urlHashMap["BLDCmotorControl_R2017b:2687"] = "msg=&block=BLDCmotorControl_R2017b:2687"; - /* /From18 */ - this.urlHashMap["BLDCmotorControl_R2017b:2688"] = "msg=&block=BLDCmotorControl_R2017b:2688"; - /* /From19 */ - this.urlHashMap["BLDCmotorControl_R2017b:2689"] = "msg=&block=BLDCmotorControl_R2017b:2689"; - /* /From20 */ - this.urlHashMap["BLDCmotorControl_R2017b:2690"] = "msg=&block=BLDCmotorControl_R2017b:2690"; - /* /From21 */ - this.urlHashMap["BLDCmotorControl_R2017b:2691"] = "msg=&block=BLDCmotorControl_R2017b:2691"; - /* /Goto18 */ - this.urlHashMap["BLDCmotorControl_R2017b:2692"] = "msg=&block=BLDCmotorControl_R2017b:2692"; - /* /Goto19 */ - this.urlHashMap["BLDCmotorControl_R2017b:2693"] = "msg=&block=BLDCmotorControl_R2017b:2693"; - /* /Goto20 */ - this.urlHashMap["BLDCmotorControl_R2017b:2694"] = "msg=&block=BLDCmotorControl_R2017b:2694"; - /* /Goto21 */ - this.urlHashMap["BLDCmotorControl_R2017b:2695"] = "msg=&block=BLDCmotorControl_R2017b:2695"; - /* /Goto22 */ - this.urlHashMap["BLDCmotorControl_R2017b:2696"] = "msg=&block=BLDCmotorControl_R2017b:2696"; - /* /b_hallA - */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:2"] = "msg=&block=BLDCmotorControl_R2017b:2687:2"; - /* /b_hallB */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:3"] = "msg=&block=BLDCmotorControl_R2017b:2687:3"; - /* /b_hallC */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:4"] = "msg=&block=BLDCmotorControl_R2017b:2687:4"; - /* /r_DC */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:5"] = "msg=&block=BLDCmotorControl_R2017b:2687:5"; - /* /F01_Preliminary_Calculations */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:6"] = "msg=&block=BLDCmotorControl_R2017b:2687:6"; + /* /Abs1 */ + this.urlHashMap["BLDCmotorControl_R2017b:2687:1660"] = "BLDC_controller.c:179,188"; /* /F02_Electrical_Angle_Calculation */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:215"] = "BLDC_controller.c:373,448"; - /* /F03_Control_Method_Selection */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:282"] = "msg=&block=BLDCmotorControl_R2017b:2687:282"; - /* /F04_Control_Type_Management */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:361"] = "msg=&block=BLDCmotorControl_R2017b:2687:361"; - /* /From */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:416"] = "msg=&block=BLDCmotorControl_R2017b:2687:416"; - /* /From1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:417"] = "msg=&block=BLDCmotorControl_R2017b:2687:417"; - /* /From10 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1379"] = "msg=&block=BLDCmotorControl_R2017b:2687:1379"; - /* /From2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:418"] = "msg=&block=BLDCmotorControl_R2017b:2687:418"; - /* /From3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:419"] = "msg=&block=BLDCmotorControl_R2017b:2687:419"; - /* /From4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:420"] = "msg=&block=BLDCmotorControl_R2017b:2687:420"; - /* /From5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:421"] = "msg=&block=BLDCmotorControl_R2017b:2687:421"; - /* /From6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:422"] = "msg=&block=BLDCmotorControl_R2017b:2687:422"; - /* /From7 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:423"] = "msg=&block=BLDCmotorControl_R2017b:2687:423"; - /* /From8 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:424"] = "msg=&block=BLDCmotorControl_R2017b:2687:424"; - /* /From9 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:537"] = "msg=&block=BLDCmotorControl_R2017b:2687:537"; - /* /Goto */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:425"] = "msg=&block=BLDCmotorControl_R2017b:2687:425"; - /* /Goto1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:426"] = "msg=&block=BLDCmotorControl_R2017b:2687:426"; - /* /Goto2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:427"] = "msg=&block=BLDCmotorControl_R2017b:2687:427"; - /* /Goto3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:428"] = "msg=&block=BLDCmotorControl_R2017b:2687:428"; - /* /Goto4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:429"] = "msg=&block=BLDCmotorControl_R2017b:2687:429"; - /* /Goto5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:430"] = "msg=&block=BLDCmotorControl_R2017b:2687:430"; - /* /Goto6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:431"] = "msg=&block=BLDCmotorControl_R2017b:2687:431"; - /* /Goto7 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:432"] = "msg=&block=BLDCmotorControl_R2017b:2687:432"; - /* /Goto8 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:433"] = "msg=&block=BLDCmotorControl_R2017b:2687:433"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:215"] = "BLDC_controller.c:384,447"; /* /If1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:434"] = "BLDC_controller.c:352,451,673&BLDC_controller.h:52"; - /* /Implemented_control_methods */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:457"] = "msg=&block=BLDCmotorControl_R2017b:2687:457"; - /* /Model_Info */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:589"] = "msg=&block=BLDCmotorControl_R2017b:2687:589"; - /* /DC_phaA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:447"] = "msg=&block=BLDCmotorControl_R2017b:2687:447"; - /* /DC_phaB */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:448"] = "msg=&block=BLDCmotorControl_R2017b:2687:448"; - /* /DC_phaC */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:449"] = "msg=&block=BLDCmotorControl_R2017b:2687:449"; - /* /n_mot */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:450"] = "msg=&block=BLDCmotorControl_R2017b:2687:450"; - /* /a_elecAngle */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:451"] = "msg=&block=BLDCmotorControl_R2017b:2687:451"; - /* /b_hallA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:7"] = "msg=&block=BLDCmotorControl_R2017b:2687:7"; - /* /b_hallB */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:8"] = "msg=&block=BLDCmotorControl_R2017b:2687:8"; - /* /b_hallC */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:9"] = "msg=&block=BLDCmotorControl_R2017b:2687:9"; - /* /r_DC */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1375"] = "msg=&block=BLDCmotorControl_R2017b:2687:1375"; - /* /F01_01_Edge_Detector */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:26"] = "msg=&block=BLDCmotorControl_R2017b:2687:26"; - /* /F01_02_Position_Calculation */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:10"] = "msg=&block=BLDCmotorControl_R2017b:2687:10"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:434"] = "BLDC_controller.c:363,450,668&BLDC_controller.h:52"; /* /F01_03_Direction_Detection */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:38"] = "BLDC_controller.c:205,242"; - /* /F01_04_Speed_Calculation */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:59"] = "msg=&block=BLDCmotorControl_R2017b:2687:59"; - /* /From */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1377"] = "msg=&block=BLDCmotorControl_R2017b:2687:1377"; - /* /From1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:179"] = "msg=&block=BLDCmotorControl_R2017b:2687:179"; - /* /From10 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:180"] = "msg=&block=BLDCmotorControl_R2017b:2687:180"; - /* /From11 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1378"] = "msg=&block=BLDCmotorControl_R2017b:2687:1378"; - /* /From12 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1481"] = "msg=&block=BLDCmotorControl_R2017b:2687:1481"; - /* /From13 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:183"] = "msg=&block=BLDCmotorControl_R2017b:2687:183"; - /* /From14 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:184"] = "msg=&block=BLDCmotorControl_R2017b:2687:184"; - /* /From15 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1633"] = "msg=&block=BLDCmotorControl_R2017b:2687:1633"; - /* /From16 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1482"] = "msg=&block=BLDCmotorControl_R2017b:2687:1482"; - /* /From18 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1382"] = "msg=&block=BLDCmotorControl_R2017b:2687:1382"; - /* /From2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:186"] = "msg=&block=BLDCmotorControl_R2017b:2687:186"; - /* /From3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:187"] = "msg=&block=BLDCmotorControl_R2017b:2687:187"; - /* /From36 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:188"] = "msg=&block=BLDCmotorControl_R2017b:2687:188"; - /* /From38 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:189"] = "msg=&block=BLDCmotorControl_R2017b:2687:189"; - /* /From4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:190"] = "msg=&block=BLDCmotorControl_R2017b:2687:190"; - /* /From5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:191"] = "msg=&block=BLDCmotorControl_R2017b:2687:191"; - /* /From6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:192"] = "msg=&block=BLDCmotorControl_R2017b:2687:192"; - /* /From7 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:193"] = "msg=&block=BLDCmotorControl_R2017b:2687:193"; - /* /From8 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:194"] = "msg=&block=BLDCmotorControl_R2017b:2687:194"; - /* /From9 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:195"] = "msg=&block=BLDCmotorControl_R2017b:2687:195"; - /* /Goto */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:196"] = "msg=&block=BLDCmotorControl_R2017b:2687:196"; - /* /Goto1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:197"] = "msg=&block=BLDCmotorControl_R2017b:2687:197"; - /* /Goto16 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:198"] = "msg=&block=BLDCmotorControl_R2017b:2687:198"; - /* /Goto18 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1376"] = "msg=&block=BLDCmotorControl_R2017b:2687:1376"; - /* /Goto2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:199"] = "msg=&block=BLDCmotorControl_R2017b:2687:199"; - /* /Goto21 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:200"] = "msg=&block=BLDCmotorControl_R2017b:2687:200"; - /* /Goto3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1384"] = "msg=&block=BLDCmotorControl_R2017b:2687:1384"; - /* /Goto4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:202"] = "msg=&block=BLDCmotorControl_R2017b:2687:202"; - /* /Goto5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1489"] = "msg=&block=BLDCmotorControl_R2017b:2687:1489"; - /* /Goto6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1490"] = "msg=&block=BLDCmotorControl_R2017b:2687:1490"; - /* /Goto7 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:205"] = "msg=&block=BLDCmotorControl_R2017b:2687:205"; - /* /Goto8 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:206"] = "msg=&block=BLDCmotorControl_R2017b:2687:206"; - /* /Goto9 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1634"] = "msg=&block=BLDCmotorControl_R2017b:2687:1634"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:38"] = "BLDC_controller.c:216,253"; /* /If2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1313"] = "BLDC_controller.c:195"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1313"] = "BLDC_controller.c:206"; /* /z_ctrlTypSel1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:208"] = "ert_main.c:78&BLDC_controller.c:353,454,556&BLDC_controller.h:165"; - /* /z_ctrlTypSel */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:209"] = "msg=&block=BLDCmotorControl_R2017b:2687:209"; - /* /z_pos */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:210"] = "msg=&block=BLDCmotorControl_R2017b:2687:210"; - /* /z_dir */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:211"] = "msg=&block=BLDCmotorControl_R2017b:2687:211"; - /* /z_counter */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1483"] = "msg=&block=BLDCmotorControl_R2017b:2687:1483"; - /* /z_counterRaw */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1484"] = "msg=&block=BLDCmotorControl_R2017b:2687:1484"; - /* /b_advCtrlEna */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1383"] = "msg=&block=BLDCmotorControl_R2017b:2687:1383"; - /* /n_mot */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:212"] = "msg=&block=BLDCmotorControl_R2017b:2687:212"; - /* /r_DC */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:535"] = "msg=&block=BLDCmotorControl_R2017b:2687:535"; - /* /z_pos */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:216"] = "msg=&block=BLDCmotorControl_R2017b:2687:216"; - /* /z_dir */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:217"] = "msg=&block=BLDCmotorControl_R2017b:2687:217"; - /* /z_counter */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1460"] = "msg=&block=BLDCmotorControl_R2017b:2687:1460"; - /* /z_counterRaw */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1461"] = "msg=&block=BLDCmotorControl_R2017b:2687:1461"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:208"] = "ert_main.c:78&BLDC_controller.c:364,453,552&BLDC_controller.h:165"; /* /Action Port */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:221"] = "BLDC_controller.c:374"; - /* /Abs2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:595"] = "BLDC_controller.c:414,423"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:221"] = "BLDC_controller.c:385"; /* /Constant16 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1464"] = "BLDC_controller.c:378"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1464"] = "BLDC_controller.c:389"; /* /Constant2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1465"] = "msg=&block=BLDCmotorControl_R2017b:2687:1465"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1465"] = "msg=rtwMsg_CodeGenerationReducedBlock&block=BLDCmotorControl_R2017b:2687:1465"; /* /Divide4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1466"] = "BLDC_controller.c:401"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1466"] = "BLDC_controller.c:412"; /* /Divide5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1467"] = "BLDC_controller.c:402"; - /* /From10 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:231"] = "msg=&block=BLDCmotorControl_R2017b:2687:231"; - /* /From11 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:518"] = "msg=&block=BLDCmotorControl_R2017b:2687:518"; - /* /From12 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:534"] = "msg=&block=BLDCmotorControl_R2017b:2687:534"; - /* /From2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:232"] = "msg=&block=BLDCmotorControl_R2017b:2687:232"; - /* /From3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:233"] = "msg=&block=BLDCmotorControl_R2017b:2687:233"; - /* /From5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:235"] = "msg=&block=BLDCmotorControl_R2017b:2687:235"; - /* /From51 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1468"] = "msg=&block=BLDCmotorControl_R2017b:2687:1468"; - /* /From52 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1469"] = "msg=&block=BLDCmotorControl_R2017b:2687:1469"; - /* /From53 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1470"] = "msg=&block=BLDCmotorControl_R2017b:2687:1470"; - /* /From54 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1471"] = "msg=&block=BLDCmotorControl_R2017b:2687:1471"; - /* /From59 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1472"] = "msg=&block=BLDCmotorControl_R2017b:2687:1472"; - /* /From6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:241"] = "msg=&block=BLDCmotorControl_R2017b:2687:241"; - /* /From7 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:542"] = "msg=&block=BLDCmotorControl_R2017b:2687:542"; - /* /From9 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:543"] = "msg=&block=BLDCmotorControl_R2017b:2687:543"; - /* /Goto */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:242"] = "msg=&block=BLDCmotorControl_R2017b:2687:242"; - /* /Goto1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:243"] = "msg=&block=BLDCmotorControl_R2017b:2687:243"; - /* /Goto2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1462"] = "msg=&block=BLDCmotorControl_R2017b:2687:1462"; - /* /Goto3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1463"] = "msg=&block=BLDCmotorControl_R2017b:2687:1463"; - /* /Goto5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:578"] = "msg=&block=BLDCmotorControl_R2017b:2687:578"; - /* /Goto7 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1473"] = "msg=&block=BLDCmotorControl_R2017b:2687:1473"; - /* /Goto8 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:536"] = "msg=&block=BLDCmotorControl_R2017b:2687:536"; - /* /Goto9 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:538"] = "msg=&block=BLDCmotorControl_R2017b:2687:538"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1467"] = "BLDC_controller.c:413"; /* /Math Function */ this.urlHashMap["BLDCmotorControl_R2017b:2687:623"] = "BLDC_controller.c:440"; - /* /Mux */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:258"] = "msg=&block=BLDCmotorControl_R2017b:2687:258"; /* /Product2 */ this.urlHashMap["BLDCmotorControl_R2017b:2687:545"] = "BLDC_controller.c:436"; /* /Product6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1474"] = "BLDC_controller.c:403"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1474"] = "BLDC_controller.c:414"; /* /Relational Operator7 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1475"] = "BLDC_controller.c:384"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1475"] = "BLDC_controller.c:395"; /* /Scope */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:262"] = "msg=&block=BLDCmotorControl_R2017b:2687:262"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:262"] = "msg=rtwMsg_reducedBlock&block=BLDCmotorControl_R2017b:2687:262"; /* /Sum1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1476"] = "BLDC_controller.c:387"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1476"] = "BLDC_controller.c:398"; /* /Sum2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1477"] = "BLDC_controller.c:404"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1477"] = "BLDC_controller.c:415"; /* /Sum3 */ this.urlHashMap["BLDCmotorControl_R2017b:2687:546"] = "BLDC_controller.c:434"; /* /Switch3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1478"] = "BLDC_controller.c:376,397"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1478"] = "BLDC_controller.c:387,408"; /* /Switch_PhaAdv */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:514"] = "BLDC_controller.c:409,447&BLDC_controller.h:39"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:514"] = "BLDC_controller.c:420,446&BLDC_controller.h:39"; /* /a_elecAngle1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1479"] = "BLDC_controller.c:400"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1479"] = "BLDC_controller.c:411"; /* /a_elecPeriod1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:512"] = "ert_main.c:83&BLDC_controller.c:410&BLDC_controller.h:168"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:512"] = "ert_main.c:83&BLDC_controller.c:421&BLDC_controller.h:168"; /* /a_elecPeriod2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:547"] = "msg=&block=BLDCmotorControl_R2017b:2687:547"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:547"] = "msg=rtwMsg_CodeGenerationReducedBlock&block=BLDCmotorControl_R2017b:2687:547"; /* /a_phaAdv_M2 */ this.urlHashMap["BLDCmotorControl_R2017b:2687:521"] = "ert_main.c:63&BLDC_controller.c:430&BLDC_controller.h:156"; /* /r_phaAdvDC_XA */ this.urlHashMap["BLDCmotorControl_R2017b:2687:522"] = "ert_main.c:58&BLDC_controller.c:425&BLDC_controller.h:153"; /* /a_elecAngleAdv */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:278"] = "BLDC_controller.c:363"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:278"] = "BLDC_controller.c:374"; /* /a_elecAngle */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:279"] = "BLDC_controller.c:367"; - /* /z_ctrlTypSel */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:283"] = "msg=&block=BLDCmotorControl_R2017b:2687:283"; - /* /a_elecAngleAdv */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:284"] = "msg=&block=BLDCmotorControl_R2017b:2687:284"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:279"] = "BLDC_controller.c:378"; /* /F03_01_Pure_Trapezoidal_Method */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:285"] = "BLDC_controller.c:458,477"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:285"] = "BLDC_controller.c:457,476"; /* /F03_02_Sinusoidal_Method */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:305"] = "BLDC_controller.c:481,500"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:305"] = "BLDC_controller.c:480,499"; /* /F03_03_Sinusoidal3rd_Method */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:295"] = "BLDC_controller.c:504,523"; - /* /From */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:315"] = "msg=&block=BLDCmotorControl_R2017b:2687:315"; - /* /From10 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:316"] = "msg=&block=BLDCmotorControl_R2017b:2687:316"; - /* /From13 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:317"] = "msg=&block=BLDCmotorControl_R2017b:2687:317"; - /* /From14 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:318"] = "msg=&block=BLDCmotorControl_R2017b:2687:318"; - /* /From15 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:319"] = "msg=&block=BLDCmotorControl_R2017b:2687:319"; - /* /From16 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:320"] = "msg=&block=BLDCmotorControl_R2017b:2687:320"; - /* /From17 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:321"] = "msg=&block=BLDCmotorControl_R2017b:2687:321"; - /* /From18 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:322"] = "msg=&block=BLDCmotorControl_R2017b:2687:322"; - /* /From19 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:323"] = "msg=&block=BLDCmotorControl_R2017b:2687:323"; - /* /From20 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:324"] = "msg=&block=BLDCmotorControl_R2017b:2687:324"; - /* /From4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:325"] = "msg=&block=BLDCmotorControl_R2017b:2687:325"; - /* /From5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:326"] = "msg=&block=BLDCmotorControl_R2017b:2687:326"; - /* /From6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:327"] = "msg=&block=BLDCmotorControl_R2017b:2687:327"; - /* /From7 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:328"] = "msg=&block=BLDCmotorControl_R2017b:2687:328"; - /* /From8 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:329"] = "msg=&block=BLDCmotorControl_R2017b:2687:329"; - /* /From9 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:330"] = "msg=&block=BLDCmotorControl_R2017b:2687:330"; - /* /Goto */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:331"] = "msg=&block=BLDCmotorControl_R2017b:2687:331"; - /* /Goto1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:332"] = "msg=&block=BLDCmotorControl_R2017b:2687:332"; - /* /Goto10 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:333"] = "msg=&block=BLDCmotorControl_R2017b:2687:333"; - /* /Goto11 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:334"] = "msg=&block=BLDCmotorControl_R2017b:2687:334"; - /* /Goto12 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:335"] = "msg=&block=BLDCmotorControl_R2017b:2687:335"; - /* /Goto14 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:336"] = "msg=&block=BLDCmotorControl_R2017b:2687:336"; - /* /Goto2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:337"] = "msg=&block=BLDCmotorControl_R2017b:2687:337"; - /* /Goto3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:338"] = "msg=&block=BLDCmotorControl_R2017b:2687:338"; - /* /Goto4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:339"] = "msg=&block=BLDCmotorControl_R2017b:2687:339"; - /* /Goto5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:340"] = "msg=&block=BLDCmotorControl_R2017b:2687:340"; - /* /Goto6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:341"] = "msg=&block=BLDCmotorControl_R2017b:2687:341"; - /* /Goto7 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:342"] = "msg=&block=BLDCmotorControl_R2017b:2687:342"; - /* /Goto8 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:343"] = "msg=&block=BLDCmotorControl_R2017b:2687:343"; - /* /Goto9 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:344"] = "msg=&block=BLDCmotorControl_R2017b:2687:344"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:295"] = "BLDC_controller.c:503,522"; /* /Merge */ this.urlHashMap["BLDCmotorControl_R2017b:2687:345"] = "BLDC_controller.h:41"; /* /Merge1 */ @@ -374,465 +71,195 @@ Operator7 */ /* /Merge2 */ this.urlHashMap["BLDCmotorControl_R2017b:2687:347"] = "BLDC_controller.h:43"; /* /Switch Case */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:348"] = "BLDC_controller.c:453,527"; - /* /signal_log1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:349"] = "msg=&block=BLDCmotorControl_R2017b:2687:349"; - /* /signal_log2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:352"] = "msg=&block=BLDCmotorControl_R2017b:2687:352"; - /* /signal_log6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:355"] = "msg=&block=BLDCmotorControl_R2017b:2687:355"; - /* /r_phaA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:358"] = "msg=&block=BLDCmotorControl_R2017b:2687:358"; - /* /r_phaB */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:359"] = "msg=&block=BLDCmotorControl_R2017b:2687:359"; - /* /r_phaC */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:360"] = "msg=&block=BLDCmotorControl_R2017b:2687:360"; - /* /r_DC */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:362"] = "msg=&block=BLDCmotorControl_R2017b:2687:362"; - /* /r_phaA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:364"] = "msg=&block=BLDCmotorControl_R2017b:2687:364"; - /* /r_phaB */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:365"] = "msg=&block=BLDCmotorControl_R2017b:2687:365"; - /* /r_phaC */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:366"] = "msg=&block=BLDCmotorControl_R2017b:2687:366"; - /* /z_pos */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:367"] = "msg=&block=BLDCmotorControl_R2017b:2687:367"; - /* /b_advCtrlEna */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1385"] = "msg=&block=BLDCmotorControl_R2017b:2687:1385"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:348"] = "BLDC_controller.c:452,526"; /* /Constant1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:370"] = "BLDC_controller.c:620,626,656"; - /* /Demux */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:372"] = "msg=&block=BLDCmotorControl_R2017b:2687:372"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:370"] = "BLDC_controller.c:615,621,651"; /* /Divide1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:373"] = "BLDC_controller.c:621,627,657"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:373"] = "BLDC_controller.c:616,622,652"; /* /Divide2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:374"] = "BLDC_controller.c:560"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:374"] = "BLDC_controller.c:556"; /* /Divide4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:375"] = "BLDC_controller.c:561"; - /* /From */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1389"] = "msg=&block=BLDCmotorControl_R2017b:2687:1389"; - /* /From1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:376"] = "msg=&block=BLDCmotorControl_R2017b:2687:376"; - /* /From10 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:377"] = "msg=&block=BLDCmotorControl_R2017b:2687:377"; - /* /From2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:378"] = "msg=&block=BLDCmotorControl_R2017b:2687:378"; - /* /From27 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:379"] = "msg=&block=BLDCmotorControl_R2017b:2687:379"; - /* /From39 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:380"] = "msg=&block=BLDCmotorControl_R2017b:2687:380"; - /* /From40 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:381"] = "msg=&block=BLDCmotorControl_R2017b:2687:381"; - /* /From41 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:382"] = "msg=&block=BLDCmotorControl_R2017b:2687:382"; - /* /From8 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:385"] = "msg=&block=BLDCmotorControl_R2017b:2687:385"; - /* /From9 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:386"] = "msg=&block=BLDCmotorControl_R2017b:2687:386"; - /* /Goto */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:387"] = "msg=&block=BLDCmotorControl_R2017b:2687:387"; - /* /Goto1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:388"] = "msg=&block=BLDCmotorControl_R2017b:2687:388"; - /* /Goto10 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1386"] = "msg=&block=BLDCmotorControl_R2017b:2687:1386"; - /* /Goto2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:389"] = "msg=&block=BLDCmotorControl_R2017b:2687:389"; - /* /Goto4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:391"] = "msg=&block=BLDCmotorControl_R2017b:2687:391"; - /* /Goto6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:393"] = "msg=&block=BLDCmotorControl_R2017b:2687:393"; - /* /Goto7 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:394"] = "msg=&block=BLDCmotorControl_R2017b:2687:394"; - /* /Goto8 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:395"] = "msg=&block=BLDCmotorControl_R2017b:2687:395"; - /* /Goto9 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:396"] = "msg=&block=BLDCmotorControl_R2017b:2687:396"; - /* /Mux2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:398"] = "msg=&block=BLDCmotorControl_R2017b:2687:398"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:375"] = "BLDC_controller.c:557"; /* /Switch1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:401"] = "BLDC_controller.c:552,617"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:401"] = "BLDC_controller.c:548,612"; /* /z_commutMap_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:411"] = "BLDC_controller.c:559,569,580,582,587,589,594,598,604,608&BLDC_controller.h:108&BLDC_controller_data.c:86"; - /* /DC_phaA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:412"] = "msg=&block=BLDCmotorControl_R2017b:2687:412"; - /* /DC_phaB */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:413"] = "msg=&block=BLDCmotorControl_R2017b:2687:413"; - /* /DC_phaC */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:414"] = "msg=&block=BLDCmotorControl_R2017b:2687:414"; - /* /b_hallA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:27"] = "msg=&block=BLDCmotorControl_R2017b:2687:27"; - /* /b_hallB */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:28"] = "msg=&block=BLDCmotorControl_R2017b:2687:28"; - /* /b_hallC */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:29"] = "msg=&block=BLDCmotorControl_R2017b:2687:29"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:411"] = "BLDC_controller.c:555,565,575,577,582,584,589,593,599,603&BLDC_controller.h:108&BLDC_controller_data.c:86"; /* /Bitwise Operator */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1535"] = "BLDC_controller.c:179"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1535"] = "BLDC_controller.c:190"; /* /UnitDelay */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:31"] = "BLDC_controller.c:183,631&BLDC_controller.h:53"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:31"] = "BLDC_controller.c:194,626&BLDC_controller.h:53"; /* /UnitDelay1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:32"] = "BLDC_controller.c:184,636&BLDC_controller.h:54"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:32"] = "BLDC_controller.c:195,631&BLDC_controller.h:54"; /* /UnitDelay2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:33"] = "BLDC_controller.c:185,641&BLDC_controller.h:55"; - /* /b_edge */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:37"] = "msg=&block=BLDCmotorControl_R2017b:2687:37"; - /* /b_hallA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:11"] = "msg=&block=BLDCmotorControl_R2017b:2687:11"; - /* /b_hallB */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:12"] = "msg=&block=BLDCmotorControl_R2017b:2687:12"; - /* /b_hallC */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:13"] = "msg=&block=BLDCmotorControl_R2017b:2687:13"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:33"] = "BLDC_controller.c:196,636&BLDC_controller.h:55"; /* /Selector */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:14"] = "BLDC_controller.c:213,238,385,567,596,606"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:14"] = "BLDC_controller.c:224,249,396,563,591,601"; /* /Sum */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:15"] = "BLDC_controller.c:169,386"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:15"] = "BLDC_controller.c:169,397"; /* /g_Ha */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:17"] = "BLDC_controller.c:170,379"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:17"] = "BLDC_controller.c:170,390"; /* /g_Hb */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:18"] = "BLDC_controller.c:171,380"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:18"] = "BLDC_controller.c:171,391"; /* /vec_hallToPos */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:22"] = "BLDC_controller.c:212,237,377,553,595,605&BLDC_controller.h:113&BLDC_controller_data.c:92"; - /* /z_pos */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:23"] = "msg=&block=BLDCmotorControl_R2017b:2687:23"; - /* /z_pos */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:39"] = "msg=&block=BLDCmotorControl_R2017b:2687:39"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:22"] = "BLDC_controller.c:223,248,388,549,590,600&BLDC_controller.h:113&BLDC_controller_data.c:92"; /* /Action Port */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1314"] = "BLDC_controller.c:206"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1314"] = "BLDC_controller.c:217"; /* /Constant20 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:42"] = "BLDC_controller.c:220"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:42"] = "BLDC_controller.c:231"; /* /Constant23 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:43"] = "BLDC_controller.c:221"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:43"] = "BLDC_controller.c:232"; /* /Constant24 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:44"] = "BLDC_controller.c:222"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:44"] = "BLDC_controller.c:233"; /* /Constant8 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:45"] = "BLDC_controller.c:223"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:45"] = "BLDC_controller.c:234"; /* /Logical Operator3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:48"] = "BLDC_controller.c:224"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:48"] = "BLDC_controller.c:235"; /* /Relational Operator1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:49"] = "BLDC_controller.c:225"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:49"] = "BLDC_controller.c:236"; /* /Relational Operator6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:50"] = "BLDC_controller.c:226"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:50"] = "BLDC_controller.c:237"; /* /Sum2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:51"] = "BLDC_controller.c:211"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:51"] = "BLDC_controller.c:222"; /* /Switch2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:52"] = "BLDC_controller.c:219,234&BLDC_controller.h:50"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:52"] = "BLDC_controller.c:230,245&BLDC_controller.h:50"; /* /UnitDelay1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1631"] = "BLDC_controller.c:208&BLDC_controller.h:49"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1631"] = "BLDC_controller.c:219&BLDC_controller.h:49"; /* /UnitDelay2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1318"] = "BLDC_controller.c:214,236&BLDC_controller.h:51"; - /* /z_dir */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:57"] = "msg=&block=BLDCmotorControl_R2017b:2687:57"; - /* /z_dirPrev */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1632"] = "msg=&block=BLDCmotorControl_R2017b:2687:1632"; - /* /r_DC */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1373"] = "msg=&block=BLDCmotorControl_R2017b:2687:1373"; - /* /z_ctrlTypSel */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1370"] = "msg=&block=BLDCmotorControl_R2017b:2687:1370"; - /* /b_edge */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:60"] = "msg=&block=BLDCmotorControl_R2017b:2687:60"; - /* /z_dir */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:61"] = "msg=&block=BLDCmotorControl_R2017b:2687:61"; - /* /z_dirPrev */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1629"] = "msg=&block=BLDCmotorControl_R2017b:2687:1629"; - /* /Abs1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1319"] = "BLDC_controller.c:529,541"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1318"] = "BLDC_controller.c:225,247&BLDC_controller.h:51"; /* /Abs2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1366"] = "BLDC_controller.c:334,341"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1366"] = "BLDC_controller.c:345,352"; /* /Abs5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1320"] = "BLDC_controller.c:316,323"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1320"] = "BLDC_controller.c:327,334"; /* /CTRL_COMM */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1321"] = "BLDC_controller.c:554"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1321"] = "BLDC_controller.c:550"; /* /Constant6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:64"] = "BLDC_controller.c:192,251"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:64"] = "BLDC_controller.c:203,262"; /* /Counter_Hold_and_Error_Calculation */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1340"] = "BLDC_controller.c:245,263,682,689"; - /* /From */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:80"] = "msg=&block=BLDCmotorControl_R2017b:2687:80"; - /* /From1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:81"] = "msg=&block=BLDCmotorControl_R2017b:2687:81"; - /* /From10 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:660"] = "msg=&block=BLDCmotorControl_R2017b:2687:660"; - /* /From11 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:83"] = "msg=&block=BLDCmotorControl_R2017b:2687:83"; - /* /From12 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1486"] = "msg=&block=BLDCmotorControl_R2017b:2687:1486"; - /* /From13 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1523"] = "msg=&block=BLDCmotorControl_R2017b:2687:1523"; - /* /From14 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1641"] = "msg=&block=BLDCmotorControl_R2017b:2687:1641"; - /* /From15 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1642"] = "msg=&block=BLDCmotorControl_R2017b:2687:1642"; - /* /From16 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:86"] = "msg=&block=BLDCmotorControl_R2017b:2687:86"; - /* /From18 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1380"] = "msg=&block=BLDCmotorControl_R2017b:2687:1380"; - /* /From19 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1455"] = "msg=&block=BLDCmotorControl_R2017b:2687:1455"; - /* /From2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1361"] = "msg=&block=BLDCmotorControl_R2017b:2687:1361"; - /* /From28 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1322"] = "msg=&block=BLDCmotorControl_R2017b:2687:1322"; - /* /From29 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1323"] = "msg=&block=BLDCmotorControl_R2017b:2687:1323"; - /* /From3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1517"] = "msg=&block=BLDCmotorControl_R2017b:2687:1517"; - /* /From30 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1324"] = "msg=&block=BLDCmotorControl_R2017b:2687:1324"; - /* /From4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:92"] = "msg=&block=BLDCmotorControl_R2017b:2687:92"; - /* /From42 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1397"] = "msg=&block=BLDCmotorControl_R2017b:2687:1397"; - /* /From5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1485"] = "msg=&block=BLDCmotorControl_R2017b:2687:1485"; - /* /From6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1521"] = "msg=&block=BLDCmotorControl_R2017b:2687:1521"; - /* /From7 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:972"] = "msg=&block=BLDCmotorControl_R2017b:2687:972"; - /* /From8 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1395"] = "msg=&block=BLDCmotorControl_R2017b:2687:1395"; - /* /From9 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1533"] = "msg=&block=BLDCmotorControl_R2017b:2687:1533"; - /* /Goto */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:99"] = "msg=&block=BLDCmotorControl_R2017b:2687:99"; - /* /Goto1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:100"] = "msg=&block=BLDCmotorControl_R2017b:2687:100"; - /* /Goto15 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1398"] = "msg=&block=BLDCmotorControl_R2017b:2687:1398"; - /* /Goto16 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1371"] = "msg=&block=BLDCmotorControl_R2017b:2687:1371"; - /* /Goto17 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1372"] = "msg=&block=BLDCmotorControl_R2017b:2687:1372"; - /* /Goto18 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1374"] = "msg=&block=BLDCmotorControl_R2017b:2687:1374"; - /* /Goto2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1630"] = "msg=&block=BLDCmotorControl_R2017b:2687:1630"; - /* /Goto22 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:106"] = "msg=&block=BLDCmotorControl_R2017b:2687:106"; - /* /Goto5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:786"] = "msg=&block=BLDCmotorControl_R2017b:2687:786"; - /* /Goto6 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1400"] = "msg=&block=BLDCmotorControl_R2017b:2687:1400"; - /* /Goto8 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:108"] = "msg=&block=BLDCmotorControl_R2017b:2687:108"; - /* /Goto9 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1362"] = "msg=&block=BLDCmotorControl_R2017b:2687:1362"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1340"] = "BLDC_controller.c:256,274,677,684"; /* /If1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1339"] = "BLDC_controller.c:191,280"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1339"] = "BLDC_controller.c:202,291"; /* /Logical Operator2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1325"] = "BLDC_controller.c:558"; - /* /Motor_Speed_Calculation */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1401"] = "msg=&block=BLDCmotorControl_R2017b:2687:1401"; - /* /Mux1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:659"] = "msg=&block=BLDCmotorControl_R2017b:2687:659"; - /* /Mux2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:842"] = "msg=&block=BLDCmotorControl_R2017b:2687:842"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1325"] = "BLDC_controller.c:554"; /* /Relational Operator1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1524"] = "BLDC_controller.c:562"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1524"] = "BLDC_controller.c:558"; /* /Relational Operator3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1326"] = "BLDC_controller.c:563"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1326"] = "BLDC_controller.c:559"; /* /Relational Operator4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1327"] = "BLDC_controller.c:564"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1327"] = "BLDC_controller.c:560"; /* /Scope2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:141"] = "msg=&block=BLDCmotorControl_R2017b:2687:141"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:141"] = "msg=rtwMsg_reducedBlock&block=BLDCmotorControl_R2017b:2687:141"; /* /Sign */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1525"] = "BLDC_controller.c:543,550"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1525"] = "BLDC_controller.c:528,535"; /* /Sign1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1526"] = "BLDC_controller.c:531"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1526"] = "BLDC_controller.c:537,546"; /* /Sum1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:142"] = "BLDC_controller.c:198,254,282,293"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:142"] = "BLDC_controller.c:209,265,293,304"; /* /UnitDelay1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1507"] = "BLDC_controller.c:201,255,649&BLDC_controller.h:47"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1507"] = "BLDC_controller.c:212,266,644&BLDC_controller.h:47"; /* /dz_counter */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1518"] = "ert_main.c:68,73&BLDC_controller.c:343,565&BLDC_controller.h:57,159,162"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1518"] = "ert_main.c:68,73&BLDC_controller.c:354,561&BLDC_controller.h:57,159,162"; /* /n_commDeacv */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1328"] = "ert_main.c:43,48&BLDC_controller.c:325,566&BLDC_controller.h:56,144,147"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1328"] = "ert_main.c:43,48&BLDC_controller.c:336,562&BLDC_controller.h:56,144,147"; /* /r_commDCDeacv */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1329"] = "ert_main.c:53&BLDC_controller.c:555&BLDC_controller.h:150"; - /* /rst_DelayLim */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651"] = "msg=&block=BLDCmotorControl_R2017b:2687:1651"; - /* /n_mot */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:173"] = "msg=&block=BLDCmotorControl_R2017b:2687:173"; - /* /b_advCtrlEna */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1381"] = "msg=&block=BLDCmotorControl_R2017b:2687:1381"; - /* /z_counter */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1487"] = "msg=&block=BLDCmotorControl_R2017b:2687:1487"; - /* /z_counterRaw */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1488"] = "msg=&block=BLDCmotorControl_R2017b:2687:1488"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1329"] = "ert_main.c:53&BLDC_controller.c:551&BLDC_controller.h:150"; /* /z_counterRawPrev */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1341"] = "BLDC_controller.c:196,253&BLDC_controller.h:44"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1341"] = "BLDC_controller.c:207,264&BLDC_controller.h:44"; /* /Action Port */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1344"] = "BLDC_controller.c:246"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1344"] = "BLDC_controller.c:257"; /* /Sum4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1454"] = "BLDC_controller.c:250&BLDC_controller.h:45"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1454"] = "BLDC_controller.c:261&BLDC_controller.h:45"; /* /z_counter2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:169"] = "BLDC_controller.c:256,260,683&BLDC_controller.h:48"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:169"] = "BLDC_controller.c:267,271,678&BLDC_controller.h:48"; /* /z_counter */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1358"] = "BLDC_controller.c:686"; - /* /dz_counter */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1359"] = "msg=&block=BLDCmotorControl_R2017b:2687:1359"; - /* /z_dir */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1431"] = "msg=&block=BLDCmotorControl_R2017b:2687:1431"; - /* /z_dirPrev */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1640"] = "msg=&block=BLDCmotorControl_R2017b:2687:1640"; - /* /z_counter */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1430"] = "msg=&block=BLDCmotorControl_R2017b:2687:1430"; - /* /z_counterRaw */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1639"] = "msg=&block=BLDCmotorControl_R2017b:2687:1639"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1358"] = "BLDC_controller.c:681"; /* /Constant1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1637"] = "BLDC_controller.c:286"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1637"] = "BLDC_controller.c:297"; /* /Constant2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1433"] = "BLDC_controller.c:304"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1433"] = "BLDC_controller.c:315"; /* /Constant3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1434"] = "BLDC_controller.c:305"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1434"] = "BLDC_controller.c:316"; /* /Divide1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1435"] = "BLDC_controller.c:307"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1435"] = "BLDC_controller.c:318"; /* /Divide2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1436"] = "BLDC_controller.c:303"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1436"] = "BLDC_controller.c:314"; /* /Divide3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1437"] = "BLDC_controller.c:308"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1437"] = "BLDC_controller.c:319"; /* /Divide4 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1438"] = "BLDC_controller.c:290"; - /* /From1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1439"] = "msg=&block=BLDCmotorControl_R2017b:2687:1439"; - /* /From14 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1623"] = "msg=&block=BLDCmotorControl_R2017b:2687:1623"; - /* /From15 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1635"] = "msg=&block=BLDCmotorControl_R2017b:2687:1635"; - /* /From17 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1636"] = "msg=&block=BLDCmotorControl_R2017b:2687:1636"; - /* /From42 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1645"] = "msg=&block=BLDCmotorControl_R2017b:2687:1645"; - /* /From8 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1646"] = "msg=&block=BLDCmotorControl_R2017b:2687:1646"; - /* /Goto */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1647"] = "msg=&block=BLDCmotorControl_R2017b:2687:1647"; - /* /Goto1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1648"] = "msg=&block=BLDCmotorControl_R2017b:2687:1648"; - /* /Goto2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1649"] = "msg=&block=BLDCmotorControl_R2017b:2687:1649"; - /* /Goto22 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1440"] = "msg=&block=BLDCmotorControl_R2017b:2687:1440"; - /* /Goto3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1650"] = "msg=&block=BLDCmotorControl_R2017b:2687:1650"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1438"] = "BLDC_controller.c:301"; /* /Logical Operator1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1627"] = "BLDC_controller.c:289"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1627"] = "BLDC_controller.c:300"; /* /Relational Operator2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1624"] = "BLDC_controller.c:291"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1624"] = "BLDC_controller.c:302"; /* /Relational Operator5 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1628"] = "BLDC_controller.c:292"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1628"] = "BLDC_controller.c:303"; /* /Sum1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1443"] = "BLDC_controller.c:309"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1443"] = "BLDC_controller.c:320"; /* /Sum2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1444"] = "BLDC_controller.c:310"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1444"] = "BLDC_controller.c:321"; /* /Switch1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1638"] = "BLDC_controller.c:285,301"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1638"] = "BLDC_controller.c:296,312"; /* /UnitDelay2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1446"] = "BLDC_controller.c:311,652&BLDC_controller.h:40"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1446"] = "BLDC_controller.c:322,647&BLDC_controller.h:40"; /* /cf_spdCoef */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1447"] = "ert_main.c:33&BLDC_controller.c:287&BLDC_controller.h:138"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1447"] = "ert_main.c:33&BLDC_controller.c:298&BLDC_controller.h:138"; /* /cf_speedFilt */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1448"] = "ert_main.c:38&BLDC_controller.c:306&BLDC_controller.h:141"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1448"] = "ert_main.c:38&BLDC_controller.c:317&BLDC_controller.h:141"; /* /z_maxCntRst */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1625"] = "BLDC_controller.c:288"; - /* /n_motRaw */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1450"] = "msg=&block=BLDCmotorControl_R2017b:2687:1450"; - /* /n_mot */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1451"] = "msg=&block=BLDCmotorControl_R2017b:2687:1451"; - /* /u */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1614"] = "msg=&block=BLDCmotorControl_R2017b:2687:1651:1614"; - /* /rst */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1615"] = "msg=&block=BLDCmotorControl_R2017b:2687:1651:1615"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1625"] = "BLDC_controller.c:299"; /* /Constant1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1616"] = "BLDC_controller.c:193,272"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1616"] = "BLDC_controller.c:204,283"; /* /Constant23 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1617"] = "BLDC_controller.c:194,252"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1617"] = "BLDC_controller.c:205,263"; /* /Relational Operator1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1618"] = "BLDC_controller.c:197"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1618"] = "BLDC_controller.c:208"; /* /Switch1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1619"] = "BLDC_controller.c:199"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1619"] = "BLDC_controller.c:210"; /* /Switch2 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1620"] = "BLDC_controller.c:200,266,271"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1620"] = "BLDC_controller.c:211,277,282"; /* /UnitDelay1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1621"] = "BLDC_controller.c:202,267,646,679&BLDC_controller.h:46"; - /* /y */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1622"] = "msg=&block=BLDCmotorControl_R2017b:2687:1651:1622"; - /* /a_elecAngleAdv */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:286"] = "msg=&block=BLDCmotorControl_R2017b:2687:286"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:1651:1621"] = "BLDC_controller.c:213,278,641,674&BLDC_controller.h:46"; /* /Action Port */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:287"] = "BLDC_controller.c:459"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:287"] = "BLDC_controller.c:458"; /* /a_trapElecAngle_XA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:288"] = "BLDC_controller.c:461"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:288"] = "BLDC_controller.c:460"; /* /r_trapPhaA_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:289"] = "BLDC_controller.c:465&BLDC_controller.h:63&BLDC_controller_data.c:29"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:289"] = "BLDC_controller.c:464&BLDC_controller.h:63&BLDC_controller_data.c:29"; /* /r_trapPhaB_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:290"] = "BLDC_controller.c:469&BLDC_controller.h:68&BLDC_controller_data.c:34"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:290"] = "BLDC_controller.c:468&BLDC_controller.h:68&BLDC_controller_data.c:34"; /* /r_trapPhaC_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:291"] = "BLDC_controller.c:473&BLDC_controller.h:73&BLDC_controller_data.c:39"; - /* /r_phaA_Trap */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:292"] = "msg=&block=BLDCmotorControl_R2017b:2687:292"; - /* /r_phaB_Trap */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:293"] = "msg=&block=BLDCmotorControl_R2017b:2687:293"; - /* /r_phaC_Trap */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:294"] = "msg=&block=BLDCmotorControl_R2017b:2687:294"; - /* /a_elecAngleAdv */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:306"] = "msg=&block=BLDCmotorControl_R2017b:2687:306"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:291"] = "BLDC_controller.c:472&BLDC_controller.h:73&BLDC_controller_data.c:39"; /* /Action Port */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:307"] = "BLDC_controller.c:482"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:307"] = "BLDC_controller.c:481"; /* /a_sinElecAngle_XA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:308"] = "BLDC_controller.c:484"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:308"] = "BLDC_controller.c:483"; /* /r_sinPhaA_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:309"] = "BLDC_controller.c:488&BLDC_controller.h:78&BLDC_controller_data.c:44"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:309"] = "BLDC_controller.c:487&BLDC_controller.h:78&BLDC_controller_data.c:44"; /* /r_sinPhaB_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:310"] = "BLDC_controller.c:492&BLDC_controller.h:83&BLDC_controller_data.c:51"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:310"] = "BLDC_controller.c:491&BLDC_controller.h:83&BLDC_controller_data.c:51"; /* /r_sinPhaC_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:311"] = "BLDC_controller.c:496&BLDC_controller.h:88&BLDC_controller_data.c:58"; - /* /r_phaA_Sin */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:312"] = "msg=&block=BLDCmotorControl_R2017b:2687:312"; - /* /r_phaB_Sin */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:313"] = "msg=&block=BLDCmotorControl_R2017b:2687:313"; - /* /r_phaC_Sin */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:314"] = "msg=&block=BLDCmotorControl_R2017b:2687:314"; - /* /a_elecAngleAdv */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:296"] = "msg=&block=BLDCmotorControl_R2017b:2687:296"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:311"] = "BLDC_controller.c:495&BLDC_controller.h:88&BLDC_controller_data.c:58"; /* /Action Port */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:297"] = "BLDC_controller.c:505"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:297"] = "BLDC_controller.c:504"; /* /a_sinElecAngle_XA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:298"] = "BLDC_controller.c:507"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:298"] = "BLDC_controller.c:506"; /* /r_sin3PhaA_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:299"] = "BLDC_controller.c:511&BLDC_controller.h:93&BLDC_controller_data.c:65"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:299"] = "BLDC_controller.c:510&BLDC_controller.h:93&BLDC_controller_data.c:65"; /* /r_sin3PhaB_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:300"] = "BLDC_controller.c:515&BLDC_controller.h:98&BLDC_controller_data.c:72"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:300"] = "BLDC_controller.c:514&BLDC_controller.h:98&BLDC_controller_data.c:72"; /* /r_sin3PhaC_M1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:301"] = "BLDC_controller.c:519&BLDC_controller.h:103&BLDC_controller_data.c:79"; - /* /r_phaA_Sin3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:302"] = "msg=&block=BLDCmotorControl_R2017b:2687:302"; - /* /r_phaB_Sin3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:303"] = "msg=&block=BLDCmotorControl_R2017b:2687:303"; - /* /r_phaC_Sin3 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:304"] = "msg=&block=BLDCmotorControl_R2017b:2687:304"; - /* /r_phaB */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:350"] = "msg=&block=BLDCmotorControl_R2017b:2687:350"; - /* /Terminator_1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:351"] = "msg=&block=BLDCmotorControl_R2017b:2687:351"; - /* /r_phaC */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:353"] = "msg=&block=BLDCmotorControl_R2017b:2687:353"; - /* /Terminator_1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:354"] = "msg=&block=BLDCmotorControl_R2017b:2687:354"; - /* /r_phaA */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:356"] = "msg=&block=BLDCmotorControl_R2017b:2687:356"; - /* /Terminator_1 */ - this.urlHashMap["BLDCmotorControl_R2017b:2687:357"] = "msg=&block=BLDCmotorControl_R2017b:2687:357"; + this.urlHashMap["BLDCmotorControl_R2017b:2687:301"] = "BLDC_controller.c:518&BLDC_controller.h:103&BLDC_controller_data.c:79"; this.getUrlHash = function(sid) { return this.urlHashMap[sid];} } RTW_Sid2UrlHash.instance = new RTW_Sid2UrlHash(); @@ -959,6 +386,8 @@ function RTW_rtwnameSIDMap() { this.sidHashMap["BLDCmotorControl_R2017b:2687:4"] = {rtwname: "/b_hallC"}; this.rtwnameHashMap["/r_DC"] = {sid: "BLDCmotorControl_R2017b:2687:5"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:5"] = {rtwname: "/r_DC"}; + this.rtwnameHashMap["/Abs1"] = {sid: "BLDCmotorControl_R2017b:2687:1660"}; + this.sidHashMap["BLDCmotorControl_R2017b:2687:1660"] = {rtwname: "/Abs1"}; this.rtwnameHashMap["/F01_Preliminary_Calculations"] = {sid: "BLDCmotorControl_R2017b:2687:6"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:6"] = {rtwname: "/F01_Preliminary_Calculations"}; this.rtwnameHashMap["/F02_Electrical_Angle_Calculation"] = {sid: "BLDCmotorControl_R2017b:2687:215"}; @@ -973,6 +402,8 @@ function RTW_rtwnameSIDMap() { this.sidHashMap["BLDCmotorControl_R2017b:2687:417"] = {rtwname: "/From1"}; this.rtwnameHashMap["/From10"] = {sid: "BLDCmotorControl_R2017b:2687:1379"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:1379"] = {rtwname: "/From10"}; + this.rtwnameHashMap["/From11"] = {sid: "BLDCmotorControl_R2017b:2687:1667"}; + this.sidHashMap["BLDCmotorControl_R2017b:2687:1667"] = {rtwname: "/From11"}; this.rtwnameHashMap["/From2"] = {sid: "BLDCmotorControl_R2017b:2687:418"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:418"] = {rtwname: "/From2"}; this.rtwnameHashMap["/From3"] = {sid: "BLDCmotorControl_R2017b:2687:419"}; @@ -1007,6 +438,8 @@ function RTW_rtwnameSIDMap() { this.sidHashMap["BLDCmotorControl_R2017b:2687:432"] = {rtwname: "/Goto7"}; this.rtwnameHashMap["/Goto8"] = {sid: "BLDCmotorControl_R2017b:2687:433"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:433"] = {rtwname: "/Goto8"}; + this.rtwnameHashMap["/Goto9"] = {sid: "BLDCmotorControl_R2017b:2687:1659"}; + this.sidHashMap["BLDCmotorControl_R2017b:2687:1659"] = {rtwname: "/Goto9"}; this.rtwnameHashMap["/If1"] = {sid: "BLDCmotorControl_R2017b:2687:434"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:434"] = {rtwname: "/If1"}; this.rtwnameHashMap["/Implemented_control_methods"] = {sid: "BLDCmotorControl_R2017b:2687:457"}; @@ -1047,6 +480,8 @@ function RTW_rtwnameSIDMap() { this.sidHashMap["BLDCmotorControl_R2017b:2687:9"] = {rtwname: "/b_hallC"}; this.rtwnameHashMap["/r_DC"] = {sid: "BLDCmotorControl_R2017b:2687:1375"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:1375"] = {rtwname: "/r_DC"}; + this.rtwnameHashMap["/r_DCabs"] = {sid: "BLDCmotorControl_R2017b:2687:1661"}; + this.sidHashMap["BLDCmotorControl_R2017b:2687:1661"] = {rtwname: "/r_DCabs"}; this.rtwnameHashMap["/F01_01_Edge_Detector"] = {sid: "BLDCmotorControl_R2017b:2687:26"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:26"] = {rtwname: "/F01_01_Edge_Detector"}; this.rtwnameHashMap["/F01_02_Position_Calculation"] = {sid: "BLDCmotorControl_R2017b:2687:10"}; @@ -1073,6 +508,8 @@ function RTW_rtwnameSIDMap() { this.sidHashMap["BLDCmotorControl_R2017b:2687:1633"] = {rtwname: "/From15"}; this.rtwnameHashMap["/From16"] = {sid: "BLDCmotorControl_R2017b:2687:1482"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:1482"] = {rtwname: "/From16"}; + this.rtwnameHashMap["/From17"] = {sid: "BLDCmotorControl_R2017b:2687:1666"}; + this.sidHashMap["BLDCmotorControl_R2017b:2687:1666"] = {rtwname: "/From17"}; this.rtwnameHashMap["/From18"] = {sid: "BLDCmotorControl_R2017b:2687:1382"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:1382"] = {rtwname: "/From18"}; this.rtwnameHashMap["/From2"] = {sid: "BLDCmotorControl_R2017b:2687:186"}; @@ -1099,6 +536,8 @@ function RTW_rtwnameSIDMap() { this.sidHashMap["BLDCmotorControl_R2017b:2687:196"] = {rtwname: "/Goto"}; this.rtwnameHashMap["/Goto1"] = {sid: "BLDCmotorControl_R2017b:2687:197"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:197"] = {rtwname: "/Goto1"}; + this.rtwnameHashMap["/Goto10"] = {sid: "BLDCmotorControl_R2017b:2687:1662"}; + this.sidHashMap["BLDCmotorControl_R2017b:2687:1662"] = {rtwname: "/Goto10"}; this.rtwnameHashMap["/Goto16"] = {sid: "BLDCmotorControl_R2017b:2687:198"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:198"] = {rtwname: "/Goto16"}; this.rtwnameHashMap["/Goto18"] = {sid: "BLDCmotorControl_R2017b:2687:1376"}; @@ -1139,8 +578,8 @@ function RTW_rtwnameSIDMap() { this.sidHashMap["BLDCmotorControl_R2017b:2687:1383"] = {rtwname: "/b_advCtrlEna"}; this.rtwnameHashMap["/n_mot "] = {sid: "BLDCmotorControl_R2017b:2687:212"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:212"] = {rtwname: "/n_mot "}; - this.rtwnameHashMap["/r_DC"] = {sid: "BLDCmotorControl_R2017b:2687:535"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:535"] = {rtwname: "/r_DC"}; + this.rtwnameHashMap["/r_DCabs"] = {sid: "BLDCmotorControl_R2017b:2687:535"}; + this.sidHashMap["BLDCmotorControl_R2017b:2687:535"] = {rtwname: "/r_DCabs"}; this.rtwnameHashMap["/z_pos"] = {sid: "BLDCmotorControl_R2017b:2687:216"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:216"] = {rtwname: "/z_pos"}; this.rtwnameHashMap["/z_dir"] = {sid: "BLDCmotorControl_R2017b:2687:217"}; @@ -1151,8 +590,6 @@ function RTW_rtwnameSIDMap() { this.sidHashMap["BLDCmotorControl_R2017b:2687:1461"] = {rtwname: "/z_counterRaw"}; this.rtwnameHashMap["/Action Port"] = {sid: "BLDCmotorControl_R2017b:2687:221"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:221"] = {rtwname: "/Action Port"}; - this.rtwnameHashMap["/Abs2"] = {sid: "BLDCmotorControl_R2017b:2687:595"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:595"] = {rtwname: "/Abs2"}; this.rtwnameHashMap["/Constant16"] = {sid: "BLDCmotorControl_R2017b:2687:1464"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:1464"] = {rtwname: "/Constant16"}; this.rtwnameHashMap["/Constant2"] = {sid: "BLDCmotorControl_R2017b:2687:1465"}; @@ -1469,6 +906,8 @@ function RTW_rtwnameSIDMap() { this.sidHashMap["BLDCmotorControl_R2017b:2687:1632"] = {rtwname: "/z_dirPrev"}; this.rtwnameHashMap["/r_DC"] = {sid: "BLDCmotorControl_R2017b:2687:1373"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:1373"] = {rtwname: "/r_DC"}; + this.rtwnameHashMap["/r_DCabs"] = {sid: "BLDCmotorControl_R2017b:2687:1663"}; + this.sidHashMap["BLDCmotorControl_R2017b:2687:1663"] = {rtwname: "/r_DCabs"}; this.rtwnameHashMap["/z_ctrlTypSel"] = {sid: "BLDCmotorControl_R2017b:2687:1370"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:1370"] = {rtwname: "/z_ctrlTypSel"}; this.rtwnameHashMap["/b_edge"] = {sid: "BLDCmotorControl_R2017b:2687:60"}; @@ -1477,8 +916,6 @@ function RTW_rtwnameSIDMap() { this.sidHashMap["BLDCmotorControl_R2017b:2687:61"] = {rtwname: "/z_dir"}; this.rtwnameHashMap["/z_dirPrev"] = {sid: "BLDCmotorControl_R2017b:2687:1629"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:1629"] = {rtwname: "/z_dirPrev"}; - this.rtwnameHashMap["/Abs1"] = {sid: "BLDCmotorControl_R2017b:2687:1319"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1319"] = {rtwname: "/Abs1"}; this.rtwnameHashMap["/Abs2"] = {sid: "BLDCmotorControl_R2017b:2687:1366"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:1366"] = {rtwname: "/Abs2"}; this.rtwnameHashMap["/Abs5"] = {sid: "BLDCmotorControl_R2017b:2687:1320"}; @@ -1507,14 +944,14 @@ function RTW_rtwnameSIDMap() { this.sidHashMap["BLDCmotorControl_R2017b:2687:1642"] = {rtwname: "/From15"}; this.rtwnameHashMap["/From16"] = {sid: "BLDCmotorControl_R2017b:2687:86"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:86"] = {rtwname: "/From16"}; + this.rtwnameHashMap["/From17"] = {sid: "BLDCmotorControl_R2017b:2687:1665"}; + this.sidHashMap["BLDCmotorControl_R2017b:2687:1665"] = {rtwname: "/From17"}; this.rtwnameHashMap["/From18"] = {sid: "BLDCmotorControl_R2017b:2687:1380"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:1380"] = {rtwname: "/From18"}; this.rtwnameHashMap["/From19"] = {sid: "BLDCmotorControl_R2017b:2687:1455"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:1455"] = {rtwname: "/From19"}; this.rtwnameHashMap["/From2"] = {sid: "BLDCmotorControl_R2017b:2687:1361"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:1361"] = {rtwname: "/From2"}; - this.rtwnameHashMap["/From28"] = {sid: "BLDCmotorControl_R2017b:2687:1322"}; - this.sidHashMap["BLDCmotorControl_R2017b:2687:1322"] = {rtwname: "/From28"}; this.rtwnameHashMap["/From29"] = {sid: "BLDCmotorControl_R2017b:2687:1323"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:1323"] = {rtwname: "/From29"}; this.rtwnameHashMap["/From3"] = {sid: "BLDCmotorControl_R2017b:2687:1517"}; @@ -1539,6 +976,8 @@ function RTW_rtwnameSIDMap() { this.sidHashMap["BLDCmotorControl_R2017b:2687:99"] = {rtwname: "/Goto"}; this.rtwnameHashMap["/Goto1"] = {sid: "BLDCmotorControl_R2017b:2687:100"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:100"] = {rtwname: "/Goto1"}; + this.rtwnameHashMap["/Goto10"] = {sid: "BLDCmotorControl_R2017b:2687:1664"}; + this.sidHashMap["BLDCmotorControl_R2017b:2687:1664"] = {rtwname: "/Goto10"}; this.rtwnameHashMap["/Goto15"] = {sid: "BLDCmotorControl_R2017b:2687:1398"}; this.sidHashMap["BLDCmotorControl_R2017b:2687:1398"] = {rtwname: "/Goto15"}; this.rtwnameHashMap["/Goto16"] = {sid: "BLDCmotorControl_R2017b:2687:1371"}; diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/codeMetrics.mat b/01_Matlab/BLDC_controller_ert_rtw/html/codeMetrics.mat index 75de091..6c7e9da 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/codeMetrics.mat and b/01_Matlab/BLDC_controller_ert_rtw/html/codeMetrics.mat differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/define.js b/01_Matlab/BLDC_controller_ert_rtw/html/define.js index c81096f..bba83e1 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/define.js +++ b/01_Matlab/BLDC_controller_ert_rtw/html/define.js @@ -12,7 +12,7 @@ this.def["plook_u8s32u32n31_evenc_s"] = {file: "BLDC_controller_c.html",line:93, this.def["intrp1d_s16s32s32u8u32n31l_s"] = {file: "BLDC_controller_c.html",line:127,type:"fcn"}; this.def["div_nde_s32_floor"] = {file: "BLDC_controller_c.html",line:143,type:"fcn"}; this.def["BLDC_controller_step"] = {file: "BLDC_controller_c.html",line:150,type:"fcn"}; -this.def["BLDC_controller_initialize"] = {file: "BLDC_controller_c.html",line:668,type:"fcn"}; +this.def["BLDC_controller_initialize"] = {file: "BLDC_controller_c.html",line:663,type:"fcn"}; this.def["RT_MODEL"] = {file: "BLDC_controller_h.html",line:35,type:"type"}; this.def["DW"] = {file: "BLDC_controller_h.html",line:58,type:"type"}; this.def["ConstP"] = {file: "BLDC_controller_h.html",line:116,type:"type"}; diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/ert_main_c.html b/01_Matlab/BLDC_controller_ert_rtw/html/ert_main_c.html index 2681359..13c7da7 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/ert_main_c.html +++ b/01_Matlab/BLDC_controller_ert_rtw/html/ert_main_c.html @@ -21,9 +21,9 @@
7 * 8 * Code generated for Simulink model 'BLDC_controller'. 9 * - 10 * Model version : 1.877 + 10 * Model version : 1.879 11 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - 12 * C/C++ source code generated on : Wed Jun 5 22:29:28 2019 + 12 * C/C++ source code generated on : Thu Jun 6 17:49:29 2019 13 * 14 * Target selection: ert.tlc 15 * Embedded hardware selection: ARM Compatible->ARM Cortex diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/rtwtypes_h.html b/01_Matlab/BLDC_controller_ert_rtw/html/rtwtypes_h.html index 43427ac..54a75ea 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/rtwtypes_h.html +++ b/01_Matlab/BLDC_controller_ert_rtw/html/rtwtypes_h.html @@ -21,9 +21,9 @@ 7 * 8 * Code generated for Simulink model 'BLDC_controller'. 9 * - 10 * Model version : 1.877 + 10 * Model version : 1.879 11 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - 12 * C/C++ source code generated on : Wed Jun 5 22:29:28 2019 + 12 * C/C++ source code generated on : Thu Jun 6 17:49:29 2019 13 * 14 * Target selection: ert.tlc 15 * Embedded hardware selection: ARM Compatible->ARM Cortex diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/traceInfo.mat b/01_Matlab/BLDC_controller_ert_rtw/html/traceInfo.mat index 992b682..36b37c9 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/traceInfo.mat and b/01_Matlab/BLDC_controller_ert_rtw/html/traceInfo.mat differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview.json index a67cd61..6bbb7e4 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview.json @@ -8,7 +8,7 @@ "sid":"BLDCmotorControl_R2017b", "name":"BLDCmotorControl_R2017b", "fullname":"BLDCmotorControl_R2017b", - "label":"BLDCmotorControl_R2017b*", + "label":"BLDCmotorControl_R2017b", "parent":0, "descendants":[ 2, diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1828_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1828_d.svg index f057162..2365fc0 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1828_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1828_d.svg @@ -174,5 +174,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1831_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1831_d.svg index 4e39842..8818e06 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1831_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1831_d.svg @@ -174,5 +174,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1834_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1834_d.svg index d839458..e2afa4a 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1834_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1834_d.svg @@ -174,5 +174,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1837_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1837_d.svg index 7e2f534..f88f009 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1837_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_1837_d.svg @@ -174,5 +174,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_10_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_10_d.svg index 4ca6caf..79c0120 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_10_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_10_d.svg @@ -700,5 +700,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1340_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1340_d.json index 8cd47d6..42aa94b 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1340_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1340_d.json @@ -159,54 +159,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_R2017b:2687:169", - "className":"Simulink.UnitDelay", - "icon":"WebViewIcon2", - "name":"z_counter2", - "label":"z_counter2", - "parent":"BLDCmotorControl_R2017b:2687:1340", - "inspector":{ - "params":[ - "InitialCondition", - "InputProcessing", - "SampleTime", - "CodeGenStateStorageTypeQualifier", - "StateMustResolveToSignalObject", - "StateName", - "StateSignalObject", - "StateStorageClass" - ], - "values":[ - "z_maxCntRst", - "Elements as channels (sample based)", - "-1", - "", - "off", - "", - [ - ], - "Auto" - ], - "tabs":[ - "Main", - "-Other" - ], - "tabs_idx":[ - 0, - 3 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"UnitDelay", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_R2017b:2687:1454", "className":"Simulink.Sum", @@ -264,6 +216,54 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_R2017b:2687:169", + "className":"Simulink.UnitDelay", + "icon":"WebViewIcon2", + "name":"z_counter2", + "label":"z_counter2", + "parent":"BLDCmotorControl_R2017b:2687:1340", + "inspector":{ + "params":[ + "InitialCondition", + "InputProcessing", + "SampleTime", + "CodeGenStateStorageTypeQualifier", + "StateMustResolveToSignalObject", + "StateName", + "StateSignalObject", + "StateStorageClass" + ], + "values":[ + "z_maxCntRst", + "Elements as channels (sample based)", + "-1", + "", + "off", + "", + [ + ], + "Auto" + ], + "tabs":[ + "Main", + "-Other" + ], + "tabs_idx":[ + 0, + 3 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"UnitDelay", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_R2017b:2687:1344", "className":"Simulink.ActionPort", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1340_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1340_d.svg index 74bda04..44cd1b2 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1340_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1340_d.svg @@ -107,11 +107,75 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + - + @@ -119,35 +183,35 @@ - + - + - + - + - + - + - + - + @@ -173,75 +237,11 @@ - + - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + int16 @@ -255,7 +255,7 @@ - + @@ -446,5 +446,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1401_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1401_d.json index 9cf89c5..11be9d3 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1401_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1401_d.json @@ -448,6 +448,86 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_R2017b:2687:1450", + "className":"Simulink.Outport", + "icon":"WebViewIcon2", + "name":"n_motRaw", + "label":"n_motRaw", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "1", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_R2017b:2687:1625", "className":"Simulink.Constant", @@ -497,6 +577,287 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_R2017b:2687:1443", + "className":"Simulink.Sum", + "icon":"WebViewIcon2", + "name":"Sum1", + "label":"Sum1", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "AccumDataTypeStr", + "OutDataTypeStr", + "CollapseDim", + "CollapseMode", + "IconShape", + "InputSameDT", + "Inputs", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow" + ], + "values":[ + "Inherit: Same as first input", + "Inherit: Same as first input", + "1", + "All dimensions", + "rectangular", + "on", + "++", + "off", + "[]", + "[]", + "Simplest", + "-1", + "off" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Sum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1638", + "className":"Simulink.Switch", + "icon":"WebViewIcon2", + "name":"Switch1", + "label":"Switch1", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "OutDataTypeStr", + "AllowDiffInputSizes", + "Criteria", + "InputSameDT", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "Threshold", + "ZeroCross" + ], + "values":[ + "Inherit: Inherit via back propagation", + "off", + "u2 ~= 0", + "off", + "off", + "[]", + "[]", + "Zero", + "-1", + "off", + "0", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Switch", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1624", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon2", + "name":"Relational Operator2", + "label":"Relational Operator2", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "OutDataTypeStr", + "InputSameDT", + "Operator", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "boolean", + "off", + ">", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1650", + "className":"Simulink.Goto", + "icon":"WebViewIcon2", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_counterRaw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1645", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From42", + "label":"From42", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1623", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From14", + "label":"From14", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counterRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1646", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From8", + "label":"From8", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counter", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_R2017b:2687:1448", "className":"Simulink.Constant", @@ -546,6 +907,313 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_R2017b:2687:1439", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From1", + "label":"From1", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_motRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1636", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From17", + "label":"From17", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dirPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1635", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From15", + "label":"From15", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1628", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon2", + "name":"Relational Operator5", + "label":"Relational Operator5", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "OutDataTypeStr", + "InputSameDT", + "Operator", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "boolean", + "off", + "~=", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1436", + "className":"Simulink.Product", + "icon":"WebViewIcon2", + "name":"Divide2", + "label":"Divide2", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "OutDataTypeStr", + "CollapseDim", + "CollapseMode", + "InputSameDT", + "Inputs", + "LockScale", + "Multiplication", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow" + ], + "values":[ + "Inherit: Same as first input", + "1", + "All dimensions", + "off", + "*/", + "off", + "Element-wise(.*)", + "[]", + "[]", + "Simplest", + "-1", + "off" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Product", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1637", + "className":"Simulink.Constant", + "icon":"WebViewIcon2", + "name":"Constant1", + "label":"Constant1", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "Value", + "OutDataTypeStr", + "FramePeriod", + "LockScale", + "OutMax", + "OutMin", + "SampleTime", + "VectorParams1D" + ], + "values":[ + "0", + "Inherit: Inherit via back propagation", + "inf", + "off", + "[]", + "[]", + "inf", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 2 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1639", + "className":"Simulink.Inport", + "icon":"WebViewIcon2", + "name":"z_counterRaw", + "label":"z_counterRaw", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "4", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_R2017b:2687:1446", "className":"Simulink.UnitDelay", @@ -651,292 +1319,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_R2017b:2687:1443", - "className":"Simulink.Sum", - "icon":"WebViewIcon2", - "name":"Sum1", - "label":"Sum1", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "AccumDataTypeStr", - "OutDataTypeStr", - "CollapseDim", - "CollapseMode", - "IconShape", - "InputSameDT", - "Inputs", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow" - ], - "values":[ - "Inherit: Same as first input", - "Inherit: Same as first input", - "1", - "All dimensions", - "rectangular", - "on", - "++", - "off", - "[]", - "[]", - "Simplest", - "-1", - "off" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Sum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1628", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon2", - "name":"Relational Operator5", - "label":"Relational Operator5", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "OutDataTypeStr", - "InputSameDT", - "Operator", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "boolean", - "off", - "~=", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1645", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From42", - "label":"From42", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dir", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1636", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From17", - "label":"From17", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dirPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1646", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From8", - "label":"From8", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counter", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1635", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From15", - "label":"From15", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dir", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1623", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From14", - "label":"From14", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counterRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1439", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From1", - "label":"From1", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_R2017b:2687:1648", "className":"Simulink.Goto", @@ -970,82 +1352,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_R2017b:2687:1624", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon2", - "name":"Relational Operator2", - "label":"Relational Operator2", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "OutDataTypeStr", - "InputSameDT", - "Operator", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "boolean", - "off", - ">", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1647", - "className":"Simulink.Goto", - "icon":"WebViewIcon2", - "name":"Goto", - "label":"Goto", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_dir", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_R2017b:2687:1434", "className":"Simulink.Constant", @@ -1095,6 +1401,39 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_R2017b:2687:1649", + "className":"Simulink.Goto", + "icon":"WebViewIcon2", + "name":"Goto2", + "label":"Goto2", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_counter", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_R2017b:2687:1433", "className":"Simulink.Constant", @@ -1145,11 +1484,111 @@ } }, { - "sid":"BLDCmotorControl_R2017b:2687:1436", + "sid":"BLDCmotorControl_R2017b:2687:1647", + "className":"Simulink.Goto", + "icon":"WebViewIcon2", + "name":"Goto", + "label":"Goto", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_dir", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1640", + "className":"Simulink.Inport", + "icon":"WebViewIcon2", + "name":"z_dirPrev", + "label":"z_dirPrev", + "parent":"BLDCmotorControl_R2017b:2687:1401", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1437", "className":"Simulink.Product", "icon":"WebViewIcon2", - "name":"Divide2", - "label":"Divide2", + "name":"Divide3", + "label":"Divide3", "parent":"BLDCmotorControl_R2017b:2687:1401", "inspector":{ "params":[ @@ -1171,7 +1610,7 @@ "1", "All dimensions", "off", - "*/", + "**", "off", "Element-wise(.*)", "[]", @@ -1254,445 +1693,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_R2017b:2687:1437", - "className":"Simulink.Product", - "icon":"WebViewIcon2", - "name":"Divide3", - "label":"Divide3", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "OutDataTypeStr", - "CollapseDim", - "CollapseMode", - "InputSameDT", - "Inputs", - "LockScale", - "Multiplication", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow" - ], - "values":[ - "Inherit: Same as first input", - "1", - "All dimensions", - "off", - "**", - "off", - "Element-wise(.*)", - "[]", - "[]", - "Simplest", - "-1", - "off" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Product", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1637", - "className":"Simulink.Constant", - "icon":"WebViewIcon2", - "name":"Constant1", - "label":"Constant1", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "Value", - "OutDataTypeStr", - "FramePeriod", - "LockScale", - "OutMax", - "OutMin", - "SampleTime", - "VectorParams1D" - ], - "values":[ - "0", - "Inherit: Inherit via back propagation", - "inf", - "off", - "[]", - "[]", - "inf", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 2 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1650", - "className":"Simulink.Goto", - "icon":"WebViewIcon2", - "name":"Goto3", - "label":"Goto3", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_counterRaw", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1639", - "className":"Simulink.Inport", - "icon":"WebViewIcon2", - "name":"z_counterRaw", - "label":"z_counterRaw", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "4", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1450", - "className":"Simulink.Outport", - "icon":"WebViewIcon2", - "name":"n_motRaw", - "label":"n_motRaw", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "1", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1640", - "className":"Simulink.Inport", - "icon":"WebViewIcon2", - "name":"z_dirPrev", - "label":"z_dirPrev", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1638", - "className":"Simulink.Switch", - "icon":"WebViewIcon2", - "name":"Switch1", - "label":"Switch1", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "OutDataTypeStr", - "AllowDiffInputSizes", - "Criteria", - "InputSameDT", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "Threshold", - "ZeroCross" - ], - "values":[ - "Inherit: Inherit via back propagation", - "off", - "u2 ~= 0", - "off", - "off", - "[]", - "[]", - "Zero", - "-1", - "off", - "0", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Switch", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1649", - "className":"Simulink.Goto", - "icon":"WebViewIcon2", - "name":"Goto2", - "label":"Goto2", - "parent":"BLDCmotorControl_R2017b:2687:1401", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_counter", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_R2017b:2687:1627", "className":"Simulink.Logic", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1401_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1401_d.svg index fe9e2cf..429c55a 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1401_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1401_d.svg @@ -266,7 +266,7 @@ - + @@ -432,6 +432,54 @@ + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + n_motRaw + + + + + + + + @@ -444,11 +492,11 @@ - + - + z_maxCntRst @@ -466,11 +514,11 @@ - + - + z_maxCntRst @@ -481,11 +529,11 @@ - + - + int16 @@ -495,213 +543,6 @@ - - - - - - - - - - - - - - - - - - cf_speedFilt - - - - - - - - - - - - - - - - - - - - - - cf_speedFilt - - - - - - - - - - - - - - - int32 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int32 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int32 - - - - - - - - @@ -714,35 +555,35 @@ - + - + - + - + - + - + - + - + @@ -760,11 +601,11 @@ - + - + int32 @@ -776,347 +617,187 @@ - - - + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - + + - - + + - - [z_dir] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + T + + + + + + + + F - - + + - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dirPrev] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - + - - + + - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counterRaw] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motRaw] - - - - - - - - - - - - - - - - - - - - - + int32 @@ -1126,39 +807,6 @@ - - - - - - - - - - - - - - - - - - [z_dirPrev] - - - - - - - - - - - - - - - @@ -1171,19 +819,19 @@ - + - + - + - + @@ -1209,11 +857,11 @@ - + - + boolean @@ -1225,28 +873,28 @@ - - + + - + - + - - [z_dir] + + [z_counterRaw] - + @@ -1258,43 +906,202 @@ - - - + + + - - + + - - + + - - 100 + + [z_dir] - - + + - + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counterRaw] + + + + + + + + + + + + + - - + + - + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + cf_speedFilt + + + + + + + + + + + + + + + + + + + + + + cf_speedFilt + + + + + + + + + + + + + + int32 @@ -1306,43 +1113,43 @@ - - - + + + - - + + - - + + - - 100 + + [n_motRaw] - - + + - + - - + + - + int32 @@ -1352,6 +1159,166 @@ + + + + + + + + + + + + + + + + + + [z_dirPrev] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + @@ -1364,35 +1331,35 @@ - + - + - + - + - + - + - + - + @@ -1411,123 +1378,11 @@ - + - - int32 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int32 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + int32 @@ -1549,11 +1404,11 @@ - + - + 0 @@ -1571,11 +1426,11 @@ - + - + int32 @@ -1585,39 +1440,6 @@ - - - - - - - - - - - - - - - - - - [z_counterRaw] - - - - - - - - - - - - - - - @@ -1630,11 +1452,11 @@ - + - + 4 @@ -1652,11 +1474,11 @@ - + - + z_counterRaw @@ -1667,11 +1489,11 @@ - + - + int16 @@ -1683,298 +1505,220 @@ - - - + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - 1 - - - + + - - - + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + - + - - n_motRaw + + + + + + + + + + - - - - - - - - - - - - - - - - - - - + - - 2 + + - - - - - - - - - - - - - - - - - z_dirPrev + + - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - T - - - - - - - - F - - - - - - - - - - - - - + - - + + - + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dirPrev] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 100 + + + + + + + + + + + + + + + + + + + + + int32 @@ -1996,11 +1740,11 @@ - + - + [z_counter] @@ -2017,6 +1761,262 @@ + + + + + + + + + + + + + + + + + + 100 + + + + + + + + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + z_dirPrev + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int32 + + + + + + + + @@ -2543,5 +2543,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1651_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1651_d.json index 59ce0f7..a3dacb9 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1651_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1651_d.json @@ -420,49 +420,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_R2017b:2687:1651:1618", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon2", - "name":"Relational Operator1", - "label":"Relational Operator1", - "parent":"BLDCmotorControl_R2017b:2687:1651", - "inspector":{ - "params":[ - "OutDataTypeStr", - "InputSameDT", - "Operator", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "boolean", - "off", - "<", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_R2017b:2687:1651:1616", "className":"Simulink.Constant", @@ -512,6 +469,49 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_R2017b:2687:1651:1618", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon2", + "name":"Relational Operator1", + "label":"Relational Operator1", + "parent":"BLDCmotorControl_R2017b:2687:1651", + "inspector":{ + "params":[ + "OutDataTypeStr", + "InputSameDT", + "Operator", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "boolean", + "off", + "<", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_R2017b:2687:1651:1620#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1651_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1651_d.png index 13483f5..348a606 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1651_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1651_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1651_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1651_d.svg index e848687..994beef 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1651_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_1651_d.svg @@ -689,11 +689,59 @@ + + + + + + + + + + + + + + + + + + z_cntMaxLim + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + - + @@ -701,19 +749,19 @@ - + - + - + - + @@ -739,11 +787,11 @@ - + - + boolean @@ -753,54 +801,6 @@ - - - - - - - - - - - - - - - - - - z_cntMaxLim - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - @@ -955,5 +955,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_215_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_215_d.json index 983fb3a..eb5eda7 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_215_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_215_d.json @@ -1019,7 +1019,7 @@ "IconDisplay" ], "values":[ - "r_DC", + "r_DCabs", "Tag" ], "tabs":[ @@ -1072,8 +1072,8 @@ "sid":"BLDCmotorControl_R2017b:2687:535", "className":"Simulink.Inport", "icon":"WebViewIcon2", - "name":"r_DC", - "label":"r_DC", + "name":"r_DCabs", + "label":"r_DCabs", "parent":"BLDCmotorControl_R2017b:2687:215", "inspector":{ "params":[ @@ -1149,7 +1149,7 @@ "IconDisplay" ], "values":[ - "r_DC", + "r_DCabs", "local", "Tag" ], @@ -1457,53 +1457,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_R2017b:2687:595", - "className":"Simulink.Abs", - "icon":"WebViewIcon2", - "name":"Abs2", - "label":"Abs2", - "parent":"BLDCmotorControl_R2017b:2687:215", - "inspector":{ - "params":[ - "OutDataTypeStr", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" - ], - "values":[ - "Inherit: Inherit via back propagation", - "off", - "[]", - "[]", - "Simplest", - "-1", - "off", - "off" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Abs", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_R2017b:2687:623", "className":"Simulink.Math", @@ -3440,57 +3393,6 @@ "finder":[ ] }, - { - "sid":"BLDCmotorControl_R2017b:2687:595#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon4", - "name":"", - "label":"", - "parent":"BLDCmotorControl_R2017b:2687:215", - "inspector":{ - "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" - ], - "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" - ], - "tabs":[ - "Parameter Attributes", - "Logging and Accessibility", - "Code Generation", - "Documentation" - ], - "tabs_idx":[ - 0, - 3, - 5, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":[ - ] - }, { "sid":"BLDCmotorControl_R2017b:2687:547#out:1", "className":"Simulink.Line", diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_215_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_215_d.png index 2874f6a..0873809 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_215_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_215_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_215_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_215_d.svg index 8c2723d..787631a 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_215_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_215_d.svg @@ -1,10 +1,10 @@ - + - + @@ -14,7 +14,7 @@ - + @@ -22,7 +22,7 @@ - + Phase Advance map as a function of the Duty Cycle. @@ -38,7 +38,7 @@ - + @@ -57,7 +57,7 @@ - + @@ -103,7 +103,7 @@ - + @@ -118,7 +118,7 @@ - + @@ -166,7 +166,7 @@ - + @@ -181,7 +181,7 @@ - + @@ -295,7 +295,7 @@ - + @@ -343,7 +343,7 @@ - + @@ -360,7 +360,7 @@ - + @@ -391,7 +391,7 @@ - + @@ -488,7 +488,7 @@ - + @@ -536,7 +536,7 @@ - + @@ -584,7 +584,7 @@ - + @@ -632,7 +632,7 @@ - + @@ -680,7 +680,7 @@ - + @@ -728,7 +728,7 @@ - + @@ -744,10 +744,10 @@ - + - + @@ -757,29 +757,29 @@ - + b_phaAdvEna - + - + - + - + boolean @@ -792,156 +792,156 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T @@ -949,29 +949,29 @@ - + F - + - + - + - + int32 @@ -984,116 +984,116 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + 1-D T(k,f) @@ -1101,7 +1101,7 @@ - + k1 @@ -1109,44 +1109,44 @@ - + f1 - + - + - + - + a_phaAdv_M2 - + - + - + int16 @@ -1159,10 +1159,10 @@ - + - + @@ -1172,7 +1172,7 @@ - + @@ -1180,7 +1180,7 @@ - + @@ -1188,7 +1188,7 @@ - + @@ -1196,7 +1196,7 @@ - + @@ -1204,7 +1204,7 @@ - + @@ -1212,7 +1212,7 @@ - + @@ -1220,7 +1220,7 @@ - + @@ -1228,7 +1228,7 @@ - + @@ -1236,7 +1236,7 @@ - + @@ -1244,7 +1244,7 @@ - + @@ -1252,7 +1252,7 @@ - + @@ -1260,7 +1260,7 @@ - + @@ -1268,7 +1268,7 @@ - + @@ -1276,7 +1276,7 @@ - + @@ -1284,7 +1284,7 @@ - + @@ -1292,7 +1292,7 @@ - + @@ -1300,7 +1300,7 @@ - + @@ -1308,7 +1308,7 @@ - + @@ -1316,7 +1316,7 @@ - + @@ -1324,7 +1324,7 @@ - + @@ -1332,7 +1332,7 @@ - + @@ -1347,52 +1347,52 @@ - + - + - + - + r_phaAdvDC_XA - + - + - + ufix32_En31 - + - + - + uint8 @@ -1405,10 +1405,10 @@ - + - + @@ -1418,29 +1418,29 @@ - - [r_DC] + + [r_DCabs] - + - + - + - + int32 @@ -1453,10 +1453,10 @@ - + - + @@ -1466,29 +1466,29 @@ - + [a_elecAngle] - + - + - + - + int32 @@ -1529,15 +1529,15 @@ - + - + - - r_DC + + r_DCabs @@ -1548,7 +1548,7 @@ - + @@ -1578,7 +1578,7 @@ - [r_DC] + [r_DCabs] @@ -1597,10 +1597,10 @@ - + - + @@ -1610,14 +1610,14 @@ - + [a_elecAngleAdv] - + @@ -1630,10 +1630,10 @@ - + - + @@ -1643,29 +1643,29 @@ - + a_elecPeriod - + - + - + - + int32 @@ -1678,66 +1678,66 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + int32 @@ -1750,10 +1750,10 @@ - + - + @@ -1763,29 +1763,29 @@ - + [a_elecAngle] - + - + - + - + int32 @@ -1798,50 +1798,50 @@ - + - + - + - + - + - + - + - + - + - + int16 @@ -1854,10 +1854,10 @@ - + - + @@ -1867,29 +1867,29 @@ - + [z_dir] - + - + - + - + int8 @@ -1902,10 +1902,10 @@ - + - + @@ -1915,14 +1915,14 @@ - + [a_phaAdv_M1] - + @@ -1932,111 +1932,31 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int32 - - - - - - - - - + - + - + - + - + - + @@ -2051,22 +1971,22 @@ - + - + - - + + - + int32 @@ -2088,11 +2008,11 @@ - + - + 4 @@ -2110,11 +2030,11 @@ - - + + - + z_counter @@ -2125,11 +2045,11 @@ - - + + - + int16 @@ -2151,11 +2071,11 @@ - + - + [z_counter] @@ -2184,11 +2104,11 @@ - + - + 5 @@ -2206,11 +2126,11 @@ - - + + - + z_counterRaw @@ -2221,11 +2141,11 @@ - - + + - + int16 @@ -2247,11 +2167,11 @@ - + - + [z_counterRaw] @@ -2280,35 +2200,35 @@ - + - + - + - + - + - + - + - + @@ -2326,11 +2246,11 @@ - - + + - + int32 @@ -2352,11 +2272,11 @@ - + - + [z_counter] @@ -2374,11 +2294,11 @@ - - + + - + int16 @@ -2400,19 +2320,19 @@ - + - + - + - + @@ -2430,11 +2350,11 @@ - - + + - + int32 @@ -2456,11 +2376,11 @@ - + - + [z_counterRaw] @@ -2478,11 +2398,11 @@ - - + + - + int16 @@ -2504,11 +2424,11 @@ - + - + a_elecAngle @@ -2526,11 +2446,11 @@ - - + + - + int32 @@ -2552,51 +2472,51 @@ - + - + - + - + - + - + - + - + - + - + - + - + @@ -2615,11 +2535,11 @@ - - + + - + int32 @@ -2641,27 +2561,27 @@ - + - + - + - + - + - + @@ -2687,11 +2607,11 @@ - - + + - + boolean @@ -2713,11 +2633,11 @@ - + - + 1 @@ -2735,11 +2655,11 @@ - - + + - + int8 @@ -2761,155 +2681,155 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + T - + - + F @@ -2927,11 +2847,11 @@ - - + + - + int8 @@ -2953,11 +2873,11 @@ - + - + [z_dir] @@ -2975,11 +2895,11 @@ - - + + - + int8 @@ -3001,11 +2921,11 @@ - + - + [z_pos] @@ -3023,11 +2943,11 @@ - - + + - + int8 @@ -3049,19 +2969,19 @@ - + - + - + - + @@ -3079,11 +2999,11 @@ - - + + - + int32 @@ -3105,11 +3025,11 @@ - + - + [z_dir] @@ -3127,11 +3047,11 @@ - - + + - + int8 @@ -3153,11 +3073,11 @@ - + - + [a_elecAngle] @@ -3186,35 +3106,35 @@ - + - + - + - + - + - + - + - + @@ -3232,11 +3152,11 @@ - - + + - + int8 @@ -3258,11 +3178,11 @@ - + - + 1 @@ -3280,11 +3200,11 @@ - - + + - + int8 @@ -3298,31 +3218,31 @@ - + - + - + - + - + - + @@ -3331,11 +3251,11 @@ - + - + @@ -3457,11 +3377,11 @@ - + - + @@ -3471,11 +3391,11 @@ - + - + @@ -3485,11 +3405,11 @@ - + - + @@ -3499,11 +3419,11 @@ - + - + @@ -3527,11 +3447,11 @@ - + - + @@ -3541,11 +3461,11 @@ - + - + @@ -3555,11 +3475,11 @@ - + - + @@ -3569,25 +3489,11 @@ - + - - - - - - - - - - - - - - - + @@ -3597,11 +3503,11 @@ - + - + @@ -3611,11 +3517,11 @@ - + - + @@ -3625,11 +3531,11 @@ - + - + @@ -3916,5 +3822,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_26_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_26_d.svg index 27a031b..2c587a4 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_26_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_26_d.svg @@ -15,7 +15,7 @@ - + @@ -95,7 +95,7 @@ - + @@ -175,7 +175,7 @@ - + @@ -492,7 +492,7 @@ - + @@ -704,5 +704,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_282_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_282_d.svg index b23a2ae..c237230 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_282_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_282_d.svg @@ -403,31 +403,16 @@ - - - - - - - - - - - action - - - - - + - + action @@ -438,11 +423,26 @@ - + - + + action + + + + + + + + + + + + + + action @@ -649,16 +649,16 @@ - - + + - + - - int16 + + action @@ -712,16 +712,16 @@ - - + + - + - - action + + int16 @@ -885,15 +885,15 @@ - + - + - + int16 @@ -906,16 +906,16 @@ - - + + - + - - action + + int16 @@ -927,16 +927,16 @@ - - + + - + - - int16 + + action @@ -2435,16 +2435,16 @@ - - + + - + - - int16 + + action @@ -2456,16 +2456,16 @@ - - + + - + - - action + + int16 @@ -3046,5 +3046,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_285_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_285_d.svg index 9f9563b..43266fb 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_285_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_285_d.svg @@ -126,7 +126,7 @@ - + @@ -269,7 +269,7 @@ - + @@ -412,7 +412,7 @@ - + @@ -651,7 +651,7 @@ - + @@ -897,7 +897,7 @@ - + @@ -971,10 +971,10 @@ - + - + @@ -1092,5 +1092,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_295_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_295_d.svg index 599a56b..22f3feb 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_295_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_295_d.svg @@ -126,7 +126,7 @@ - + @@ -509,7 +509,7 @@ - + @@ -892,7 +892,7 @@ - + @@ -1371,7 +1371,7 @@ - + @@ -1580,31 +1580,31 @@ - - + + - + - - ufix32_En31 + + uint8 - - + + - + - - uint8 + + ufix32_En31 @@ -1617,7 +1617,7 @@ - + @@ -1745,10 +1745,10 @@ - + - + @@ -1812,5 +1812,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_305_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_305_d.svg index 4562ff8..03a1ca1 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_305_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_305_d.svg @@ -126,7 +126,7 @@ - + @@ -509,7 +509,7 @@ - + @@ -892,7 +892,7 @@ - + @@ -1371,7 +1371,7 @@ - + @@ -1617,7 +1617,7 @@ - + @@ -1691,10 +1691,10 @@ - + - + @@ -1812,5 +1812,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_349_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_349_d.svg index 1bbf1bd..721f3eb 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_349_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_349_d.svg @@ -174,5 +174,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_352_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_352_d.svg index bda3ce8..7aebe92 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_352_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_352_d.svg @@ -174,5 +174,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_355_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_355_d.svg index dd5c608..35ed215 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_355_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_355_d.svg @@ -174,5 +174,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_361_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_361_d.svg index 644e5ee..eac706c 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_361_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_361_d.svg @@ -1210,31 +1210,16 @@ - - - - - - - - - - - int32 - - - - - + - + int32 @@ -1245,11 +1230,26 @@ - + - + + int32 + + + + + + + + + + + + + + int32 @@ -2434,5 +2434,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_38_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_38_d.svg index b4571af..ed835a2 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_38_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_38_d.svg @@ -1264,5 +1264,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_457_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_457_d.svg index d6e2414..65de2a4 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_457_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_457_d.svg @@ -10,5 +10,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_589_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_589_d.svg index e201a42..049d9df 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_589_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_589_d.svg @@ -10,5 +10,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_59_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_59_d.json index 84e335e..909125f 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_59_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_59_d.json @@ -556,7 +556,7 @@ "OutputFunctionCall" ], "values":[ - "3", + "4", "Port number", "[]", "[]", @@ -798,7 +798,7 @@ "OutputFunctionCall" ], "values":[ - "4", + "5", "Port number", "[]", "[]", @@ -950,166 +950,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_R2017b:2687:1487", - "className":"Simulink.Outport", - "icon":"WebViewIcon2", - "name":"z_counter", - "label":"z_counter", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "3", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "0", - "off", - "reset", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1381", - "className":"Simulink.Outport", - "icon":"WebViewIcon2", - "name":"b_advCtrlEna", - "label":"b_advCtrlEna", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "EnsureOutportIsVirtual", - "InitialOutput", - "MustResolveToSignalObject", - "OutputWhenDisabled", - "OutputWhenUnConnected", - "OutputWhenUnconnectedValue", - "SignalName", - "SignalObject", - "SourceOfInitialOutputValue", - "StorageClass", - "VectorParamsAs1DForOutWhenUnconnected" - ], - "values":[ - "2", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "off", - "[]", - "off", - "held", - "off", - "0", - "", - [ - ], - "Dialog", - "Auto", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Outport", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_R2017b:2687:1328", "className":"Simulink.Relay", @@ -1165,6 +1005,61 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_R2017b:2687:1518", + "className":"Simulink.Relay", + "icon":"WebViewIcon2", + "name":"dz_counter", + "label":"dz_counter", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "OnSwitchValue", + "OffSwitchValue", + "OnOutputValue", + "OffOutputValue", + "OutDataTypeStr", + "InputProcessing", + "LockScale", + "OutMax", + "OutMin", + "SampleTime", + "ZeroCross" + ], + "values":[ + "dz_counterHi", + "dz_counterLo", + "0", + "1", + "boolean", + "Elements as channels (sample based)", + "off", + "[]", + "[]", + "-1", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 4, + 5 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Relay", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_R2017b:2687:1507", "className":"Simulink.UnitDelay", @@ -1245,36 +1140,73 @@ } }, { - "sid":"BLDCmotorControl_R2017b:2687:1327", - "className":"Simulink.RelationalOperator", + "sid":"BLDCmotorControl_R2017b:2687:1525", + "className":"Simulink.Signum", "icon":"WebViewIcon2", - "name":"Relational Operator4", - "label":"Relational Operator4", + "name":"Sign", + "label":"Sign", "parent":"BLDCmotorControl_R2017b:2687:59", "inspector":{ "params":[ - "OutDataTypeStr", - "InputSameDT", - "Operator", - "RndMeth", - "SampleTime", - "ZeroCross" + "ZeroCross", + "SampleTime" ], "values":[ - "boolean", + "on", + "-1" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Signum", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1329", + "className":"Simulink.Constant", + "icon":"WebViewIcon2", + "name":"r_commDCDeacv", + "label":"r_commDCDeacv", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "Value", + "OutDataTypeStr", + "FramePeriod", + "LockScale", + "OutMax", + "OutMin", + "SampleTime", + "VectorParams1D" + ], + "values":[ + "r_commDCDeacv", + "Inherit: Inherit via back propagation", + "inf", "off", - ">", - "Simplest", - "-1", + "[]", + "[]", + "inf", "on" ], "tabs":[ - "Data Type", + "Main", + "Signal Attributes", "-Other" ], "tabs_idx":[ 0, - 1 + 1, + 2 ] }, "viewer":{ @@ -1283,79 +1215,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1326", - "className":"Simulink.RelationalOperator", - "icon":"WebViewIcon2", - "name":"Relational Operator3", - "label":"Relational Operator3", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "OutDataTypeStr", - "InputSameDT", - "Operator", - "RndMeth", - "SampleTime", - "ZeroCross" - ], - "values":[ - "boolean", - "off", - "~=", - "Simplest", - "-1", - "on" - ], - "tabs":[ - "Data Type", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"RelationalOperator", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1651", - "className":"Simulink.SubSystem", - "icon":"WebViewIcon6", - "name":"rst_DelayLim", - "label":"rst_DelayLim", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "z_cntMaxLim" - ], - "values":[ - "z_maxCntRst" - ], - "tabs":[ - ], - "tabs_idx":[ - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ContainerHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"SubSystem", + "blocktype":"Constant", "masktype":"" } }, @@ -1421,388 +1281,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_R2017b:2687:1362", - "className":"Simulink.Goto", - "icon":"WebViewIcon2", - "name":"Goto9", - "label":"Goto9", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "dz_counter", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1400", - "className":"Simulink.Goto", - "icon":"WebViewIcon2", - "name":"Goto6", - "label":"Goto6", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_motRaw", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1374", - "className":"Simulink.Goto", - "icon":"WebViewIcon2", - "name":"Goto18", - "label":"Goto18", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_DC", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1371", - "className":"Simulink.Goto", - "icon":"WebViewIcon2", - "name":"Goto16", - "label":"Goto16", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_ctrlTypSel", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1398", - "className":"Simulink.Goto", - "icon":"WebViewIcon2", - "name":"Goto15", - "label":"Goto15", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "n_mot", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1533", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From9", - "label":"From9", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_edge", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1521", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From6", - "label":"From6", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dir", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1485", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From5", - "label":"From5", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counterRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1324", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From30", - "label":"From30", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_ctrlTypSel", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1517", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From3", - "label":"From3", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_advCtrlEna", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1323", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From29", - "label":"From29", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_mot", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1322", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From28", - "label":"From28", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "r_DC", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_R2017b:2687:1401", "className":"Simulink.SubSystem", @@ -1900,6 +1378,82 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_R2017b:2687:1400", + "className":"Simulink.Goto", + "icon":"WebViewIcon2", + "name":"Goto6", + "label":"Goto6", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "n_motRaw", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1326", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon2", + "name":"Relational Operator3", + "label":"Relational Operator3", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "OutDataTypeStr", + "InputSameDT", + "Operator", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "boolean", + "off", + "~=", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_R2017b:2687:1372", "className":"Simulink.Goto", @@ -1934,19 +1488,21 @@ } }, { - "sid":"BLDCmotorControl_R2017b:2687:1455", - "className":"Simulink.From", + "sid":"BLDCmotorControl_R2017b:2687:1664", + "className":"Simulink.Goto", "icon":"WebViewIcon2", - "name":"From19", - "label":"From19", + "name":"Goto10", + "label":"Goto10", "parent":"BLDCmotorControl_R2017b:2687:59", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "dz_counter", + "r_DCabs", + "local", "Tag" ], "tabs":[ @@ -1960,24 +1516,26 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_R2017b:2687:1380", - "className":"Simulink.From", + "sid":"BLDCmotorControl_R2017b:2687:1398", + "className":"Simulink.Goto", "icon":"WebViewIcon2", - "name":"From18", - "label":"From18", + "name":"Goto15", + "label":"Goto15", "parent":"BLDCmotorControl_R2017b:2687:59", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "b_advCtrlEna", + "n_mot", + "local", "Tag" ], "tabs":[ @@ -1991,16 +1549,16 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, { - "sid":"BLDCmotorControl_R2017b:2687:1641", + "sid":"BLDCmotorControl_R2017b:2687:1533", "className":"Simulink.From", "icon":"WebViewIcon2", - "name":"From14", - "label":"From14", + "name":"From9", + "label":"From9", "parent":"BLDCmotorControl_R2017b:2687:59", "inspector":{ "params":[ @@ -2008,7 +1566,7 @@ "IconDisplay" ], "values":[ - "z_dirPrev", + "b_edge", "Tag" ], "tabs":[ @@ -2059,6 +1617,338 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_R2017b:2687:1362", + "className":"Simulink.Goto", + "icon":"WebViewIcon2", + "name":"Goto9", + "label":"Goto9", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "dz_counter", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1395", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From8", + "label":"From8", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counter", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:972", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From7", + "label":"From7", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_motRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1521", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From6", + "label":"From6", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1485", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From5", + "label":"From5", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counterRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1381", + "className":"Simulink.Outport", + "icon":"WebViewIcon2", + "name":"b_advCtrlEna", + "label":"b_advCtrlEna", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "[]", + "off", + "held", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1371", + "className":"Simulink.Goto", + "icon":"WebViewIcon2", + "name":"Goto16", + "label":"Goto16", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "z_ctrlTypSel", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1517", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From3", + "label":"From3", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_advCtrlEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1642", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From15", + "label":"From15", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counterRaw", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_R2017b:2687:1523", "className":"Simulink.From", @@ -2153,19 +2043,21 @@ } }, { - "sid":"BLDCmotorControl_R2017b:2687:1642", - "className":"Simulink.From", + "sid":"BLDCmotorControl_R2017b:2687:786", + "className":"Simulink.Goto", "icon":"WebViewIcon2", - "name":"From15", - "label":"From15", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_R2017b:2687:59", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ - "z_counterRaw", + "z_counter", + "local", "Tag" ], "tabs":[ @@ -2179,38 +2071,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1397", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From42", - "label":"From42", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dir", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -2257,6 +2118,269 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_R2017b:2687:1455", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From19", + "label":"From19", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "dz_counter", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1380", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From18", + "label":"From18", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "b_advCtrlEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1321", + "className":"Simulink.Constant", + "icon":"WebViewIcon2", + "name":"CTRL_COMM", + "label":"CTRL_COMM", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "Value", + "OutDataTypeStr", + "FramePeriod", + "LockScale", + "OutMax", + "OutMin", + "SampleTime", + "VectorParams1D" + ], + "values":[ + "CTRL_COMM", + "Inherit: Inherit via back propagation", + "inf", + "off", + "[]", + "[]", + "inf", + "on" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1, + 2 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Constant", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1327", + "className":"Simulink.RelationalOperator", + "icon":"WebViewIcon2", + "name":"Relational Operator4", + "label":"Relational Operator4", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "OutDataTypeStr", + "InputSameDT", + "Operator", + "RndMeth", + "SampleTime", + "ZeroCross" + ], + "values":[ + "boolean", + "off", + ">", + "Simplest", + "-1", + "on" + ], + "tabs":[ + "Data Type", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"RelationalOperator", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1361", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From2", + "label":"From2", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counterRawPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1366", + "className":"Simulink.Abs", + "icon":"WebViewIcon2", + "name":"Abs2", + "label":"Abs2", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "OutDataTypeStr", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" + ], + "values":[ + "Inherit: Inherit via back propagation", + "off", + "[]", + "[]", + "Zero", + "-1", + "off", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Abs", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1323", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From29", + "label":"From29", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "n_mot", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_R2017b:2687:1340", "className":"Simulink.SubSystem", @@ -2354,244 +2478,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_R2017b:2687:1320", - "className":"Simulink.Abs", - "icon":"WebViewIcon2", - "name":"Abs5", - "label":"Abs5", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "OutDataTypeStr", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" - ], - "values":[ - "Inherit: Inherit via back propagation", - "off", - "[]", - "[]", - "Zero", - "-1", - "off", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Abs", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:972", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From7", - "label":"From7", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "n_motRaw", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1395", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From8", - "label":"From8", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counter", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1525", - "className":"Simulink.Signum", - "icon":"WebViewIcon2", - "name":"Sign", - "label":"Sign", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "ZeroCross", - "SampleTime" - ], - "values":[ - "on", - "-1" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Signum", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1321", - "className":"Simulink.Constant", - "icon":"WebViewIcon2", - "name":"CTRL_COMM", - "label":"CTRL_COMM", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "Value", - "OutDataTypeStr", - "FramePeriod", - "LockScale", - "OutMax", - "OutMin", - "SampleTime", - "VectorParams1D" - ], - "values":[ - "CTRL_COMM", - "Inherit: Inherit via back propagation", - "inf", - "off", - "[]", - "[]", - "inf", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 2 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1329", - "className":"Simulink.Constant", - "icon":"WebViewIcon2", - "name":"r_commDCDeacv", - "label":"r_commDCDeacv", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "Value", - "OutDataTypeStr", - "FramePeriod", - "LockScale", - "OutMax", - "OutMin", - "SampleTime", - "VectorParams1D" - ], - "values":[ - "r_commDCDeacv", - "Inherit: Inherit via back propagation", - "inf", - "off", - "[]", - "[]", - "inf", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1, - 2 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Constant", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_R2017b:2687:1629", "className":"Simulink.Inport", @@ -2620,176 +2506,7 @@ "OutputFunctionCall" ], "values":[ - "5", - "Port number", - "[]", - "[]", - "Inherit: auto", - "off", - "inherit", - "-1", - "Inherit", - "-1", - "auto", - "off", - "", - "on", - "off", - "off", - "off" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 2, - 11 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Inport", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1366", - "className":"Simulink.Abs", - "icon":"WebViewIcon2", - "name":"Abs2", - "label":"Abs2", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "OutDataTypeStr", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" - ], - "values":[ - "Inherit: Inherit via back propagation", - "off", - "[]", - "[]", - "Zero", - "-1", - "off", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Abs", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1518", - "className":"Simulink.Relay", - "icon":"WebViewIcon2", - "name":"dz_counter", - "label":"dz_counter", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "OnSwitchValue", - "OffSwitchValue", - "OnOutputValue", - "OffOutputValue", - "OutDataTypeStr", - "InputProcessing", - "LockScale", - "OutMax", - "OutMin", - "SampleTime", - "ZeroCross" - ], - "values":[ - "dz_counterHi", - "dz_counterLo", - "0", - "1", - "boolean", - "Elements as channels (sample based)", - "off", - "[]", - "[]", - "-1", - "on" - ], - "tabs":[ - "Main", - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 4, - 5 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Relay", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1370", - "className":"Simulink.Inport", - "icon":"WebViewIcon2", - "name":"z_ctrlTypSel", - "label":"z_ctrlTypSel", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "Port", - "IconDisplay", - "OutMin", - "OutMax", - "OutDataTypeStr", - "LockScale", - "Unit", - "PortDimensions", - "VarSizeSig", - "SampleTime", - "SignalType", - "BusOutputAsStruct", - "InputConnect", - "Interpolate", - "LatchByDelayingOutsideSignal", - "LatchInputForFeedbackSignals", - "OutputFunctionCall" - ], - "values":[ - "2", + "6", "Port number", "[]", "[]", @@ -2867,6 +2584,453 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_R2017b:2687:1374", + "className":"Simulink.Goto", + "icon":"WebViewIcon2", + "name":"Goto18", + "label":"Goto18", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_DC", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1370", + "className":"Simulink.Inport", + "icon":"WebViewIcon2", + "name":"z_ctrlTypSel", + "label":"z_ctrlTypSel", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1324", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From30", + "label":"From30", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_ctrlTypSel", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1641", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From14", + "label":"From14", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dirPrev", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1663", + "className":"Simulink.Inport", + "icon":"WebViewIcon2", + "name":"r_DCabs", + "label":"r_DCabs", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "2", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1397", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From42", + "label":"From42", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_dir", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1651", + "className":"Simulink.SubSystem", + "icon":"WebViewIcon6", + "name":"rst_DelayLim", + "label":"rst_DelayLim", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "z_cntMaxLim" + ], + "values":[ + "z_maxCntRst" + ], + "tabs":[ + ], + "tabs_idx":[ + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ContainerHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"SubSystem", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1320", + "className":"Simulink.Abs", + "icon":"WebViewIcon2", + "name":"Abs5", + "label":"Abs5", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "OutDataTypeStr", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" + ], + "values":[ + "Inherit: Inherit via back propagation", + "off", + "[]", + "[]", + "Zero", + "-1", + "off", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Abs", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1665", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From17", + "label":"From17", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_DCabs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1487", + "className":"Simulink.Outport", + "icon":"WebViewIcon2", + "name":"z_counter", + "label":"z_counter", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "EnsureOutportIsVirtual", + "InitialOutput", + "MustResolveToSignalObject", + "OutputWhenDisabled", + "OutputWhenUnConnected", + "OutputWhenUnconnectedValue", + "SignalName", + "SignalObject", + "SourceOfInitialOutputValue", + "StorageClass", + "VectorParamsAs1DForOutWhenUnconnected" + ], + "values":[ + "3", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "off", + "0", + "off", + "reset", + "off", + "0", + "", + [ + ], + "Dialog", + "Auto", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Outport", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_R2017b:2687:1373", "className":"Simulink.Inport", @@ -2934,117 +3098,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_R2017b:2687:786", - "className":"Simulink.Goto", - "icon":"WebViewIcon2", - "name":"Goto5", - "label":"Goto5", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "z_counter", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1361", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From2", - "label":"From2", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_counterRawPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1319", - "className":"Simulink.Abs", - "icon":"WebViewIcon2", - "name":"Abs1", - "label":"Abs1", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "OutDataTypeStr", - "LockScale", - "OutMax", - "OutMin", - "RndMeth", - "SampleTime", - "SaturateOnIntegerOverflow", - "ZeroCross" - ], - "values":[ - "Inherit: Inherit via back propagation", - "off", - "[]", - "[]", - "Zero", - "-1", - "off", - "on" - ], - "tabs":[ - "Signal Attributes", - "-Other" - ], - "tabs_idx":[ - 0, - 1 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Abs", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_R2017b:2687:1325", "className":"Simulink.Logic", @@ -4058,58 +4111,7 @@ ] }, { - "sid":"BLDCmotorControl_R2017b:2687:1319#out:1", - "className":"Simulink.Line", - "icon":"WebViewIcon4", - "name":"", - "label":"", - "parent":"BLDCmotorControl_R2017b:2687:59", - "inspector":{ - "params":[ - "SignalNameFromLabel", - "MustResolveToSignal", - "ShowPropagatedSignal", - "DataLogging", - "TestPoint", - "SignalObjectPackage", - "StorageClass", - "Description", - "documentLink" - ], - "values":[ - "", - "off", - "off", - "off", - "off", - "Simulink", - "Auto", - "", - "" - ], - "tabs":[ - "Parameter Attributes", - "Logging and Accessibility", - "Code Generation", - "Documentation" - ], - "tabs_idx":[ - 0, - 3, - 5, - 7 - ] - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":[ - ] - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1322#out:1", + "sid":"BLDCmotorControl_R2017b:2687:1665#out:1", "className":"Simulink.Line", "icon":"WebViewIcon4", "name":"", @@ -5739,5 +5741,56 @@ ], "finder":[ ] + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1663#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon4", + "name":"", + "label":"", + "parent":"BLDCmotorControl_R2017b:2687:59", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] } ] \ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_59_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_59_d.png index 9aee11c..c8468ec 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_59_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_59_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_59_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_59_d.svg index 269f18a..8a281cb 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_59_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_59_d.svg @@ -1,10 +1,10 @@ - + - + @@ -14,7 +14,7 @@ - + @@ -22,7 +22,7 @@ - + Authorize advance method only it is selected. @@ -33,7 +33,7 @@ - + @@ -41,7 +41,7 @@ - + Authorize advance method only if @@ -49,7 +49,7 @@ - + command is larger than a threshold. @@ -60,7 +60,7 @@ - + @@ -68,7 +68,7 @@ - + Authorize advance method @@ -76,7 +76,7 @@ - + only if error is small enough. @@ -87,7 +87,7 @@ - + @@ -95,7 +95,7 @@ - + Authorize advance method only if @@ -103,7 +103,7 @@ - + command is in the spinning direction. @@ -114,7 +114,7 @@ - + @@ -122,7 +122,7 @@ - + Authorize advance method only @@ -130,7 +130,7 @@ - + if speed is above a threshold. @@ -141,10 +141,10 @@ - - + + - + @@ -154,7 +154,7 @@ - + @@ -162,7 +162,7 @@ - + @@ -177,7 +177,7 @@ - + @@ -190,66 +190,66 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + int16 @@ -262,10 +262,10 @@ - + - + @@ -275,29 +275,29 @@ - + 1 - + - + - + - + int16 @@ -310,10 +310,10 @@ - + - + @@ -323,14 +323,14 @@ - + [z_counterRaw] - + @@ -343,10 +343,10 @@ - + - + @@ -356,29 +356,29 @@ - + [b_edge] - + - + - + - + uint8 @@ -391,10 +391,10 @@ - + - + @@ -404,29 +404,29 @@ - + [b_edge] - + - + - + - + uint8 @@ -439,10 +439,10 @@ - + - + @@ -452,29 +452,29 @@ - + [z_counterRaw] - + - + - + - + int16 @@ -487,10 +487,10 @@ - + - + @@ -500,14 +500,14 @@ - + [z_counterRawPrev] - + @@ -520,10 +520,10 @@ - + - + @@ -533,44 +533,44 @@ - - 3 + + 4 - + - + - + - + b_edge - + - + - + uint8 @@ -583,27 +583,27 @@ - + - + - + - + [b_edge] - + @@ -616,10 +616,10 @@ - + - + @@ -629,29 +629,29 @@ - + 1 - + - + - + - + n_mot @@ -664,10 +664,10 @@ - + - + @@ -677,29 +677,29 @@ - + [n_mot] - + - + - + - + int32 @@ -712,10 +712,10 @@ - + - + @@ -725,29 +725,29 @@ - + [n_mot] - + - + - + - + int32 @@ -760,10 +760,10 @@ - + - + @@ -773,44 +773,44 @@ - - 4 + + 5 - + - + - + - + z_dir - + - + - + int8 @@ -823,27 +823,27 @@ - + - + - + - + [z_dir] - + @@ -856,10 +856,10 @@ - + - + @@ -869,29 +869,29 @@ - + 4 - + - + - + - + z_counterRaw @@ -901,159 +901,63 @@ - - - - - - - - - - - - - - - - - - 3 - - - - - - - - - - - - - - - - - - - - - - z_counter - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - b_advCtrlEna - - - - - - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -1068,37 +972,148 @@ - + - + - - + + - + n_commDeacv - + - - + + - + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + dz_counter + + + + + + + + + + + + + + boolean @@ -1111,44 +1126,44 @@ - + - + - + - + - + - + - + - + - + - + @@ -1163,22 +1178,22 @@ - + - + - - + + - + int16 @@ -1191,44 +1206,44 @@ - + - + - + - + - + - + - + - + - + - + @@ -1243,22 +1258,22 @@ - + - + - - + + - + int32 @@ -1270,30 +1285,46 @@ - - - + + + - - + + - - + + - - + + - - + + - - + + + + + + + + + + + + + + + + + + @@ -1307,23 +1338,369 @@ - - + + - - + + - - + + - - boolean + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + r_commDCDeacv + + + + + + + + + + + + + + + + + + + + + + r_commDCDeacv + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + z_dir + + + + + + + + z_dirPrev + + + + + + + + z_counter + + + + + + + + z_counterRaw + + + + + + + + n_motRaw + + + + + + + + n_mot + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Motor_Speed_Calculation + + + + + + + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motRaw] + + + + + + + @@ -1335,28 +1712,28 @@ - - + + - + - + - + - + - + @@ -1371,22 +1748,22 @@ - + - + - - + + - + boolean @@ -1398,244 +1775,28 @@ - - - - - - - - - - - - - - - - u - - - - - - - - rst - - - - - - - - y - - - - - - - - 1 - - - - - - - - z - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int32 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - + + - + - + - - [dz_counter] + + [b_advCtrlEna] - + @@ -1647,94 +1808,28 @@ - - + + - + - + - - [n_motRaw] + + [r_DCabs] - - - - - - - - - - - - - - - - - - - - - - - - - - - - [r_DC] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - + @@ -1747,27 +1842,27 @@ - + - + - + - + [n_mot] - + @@ -1780,42 +1875,42 @@ - + - + - - + + - + [b_edge] - + - + - - + + - + uint8 @@ -1827,43 +1922,205 @@ - - - + + + - - + + - - + + - - [z_dir] + + [z_dirPrev] - + + + + + + + + + + + + + + + + + + + + + + + + + + + + [dz_counter] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + - + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_motRaw] + + + + + + + + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + - - + + - + int8 @@ -1876,42 +2133,42 @@ - + - + - + - + [z_counterRaw] - + - + - - + + - + int16 @@ -1923,44 +2180,77 @@ - - - + + + - - + + - - + + - + + 2 + + + + + + + + + + + + + + + + + + + + + + b_advCtrlEna + + + + + + + + + + + + + + + + + + + + + + + + + [z_ctrlTypSel] - - - - - - - - - - - - - - - - - uint8 + + @@ -1972,42 +2262,42 @@ - + - + - + - + [b_advCtrlEna] - + - + - - + + - + boolean @@ -2019,326 +2309,43 @@ - - + + - + - + - - [n_mot] + + [z_counterRaw] - + - + - - + + - - int32 - - - - - - - - - - - - - - - - - - - - - - - - - - [r_DC] - - - - - - - - - - - - - - - - - - - - - - int32 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - z_dir - - - - - - - - z_dirPrev - - - - - - - - z_counter - - - - - - - - z_counterRaw - - - - - - - - n_motRaw - - - - - - - - n_mot - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Motor_Speed_Calculation - - - - - - - - - - - - - - - - - - - - - int32 - - - - - - - - - - - - - - - - - - - - - int32 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [b_advCtrlEna] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - [dz_counter] - - - - - - - - - - - - - - - - - - - - - + int16 @@ -2348,142 +2355,13 @@ - - - - - - - - - - - - - - - - - - [b_advCtrlEna] - - - - - - - - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dirPrev] - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dirPrev] - - - - - - - - - - - - - - - - + - + @@ -2493,29 +2371,29 @@ - + [r_DC] - + - + - + - + int32 @@ -2528,10 +2406,10 @@ - + - + @@ -2541,29 +2419,29 @@ - + [z_counter] - + - + - + - + int16 @@ -2576,10 +2454,10 @@ - + - + @@ -2589,29 +2467,29 @@ - + [z_counter] - + - + - + - + int16 @@ -2623,92 +2501,29 @@ - - - + + + - - + + - + - - [z_counterRaw] + + [z_counter] - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_dir] - - - - - - - - - - - - - - - - - - - - - - int8 + + @@ -2720,36 +2535,36 @@ - - + + - + - + - + - + - + - + - + @@ -2764,22 +2579,22 @@ - + - + - - + + - + boolean @@ -2789,11 +2604,395 @@ + + + + + + + + + + + + + + + + + + [dz_counter] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_advCtrlEna] + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + CTRL_COMM + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + boolean + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counterRawPrev] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + [n_mot] + + + + + + + + + + + + + + + + + + + + + + int32 + + + + + + + + - - + + @@ -2801,41 +3000,41 @@ - + - + - + z_counterRawPrev - + - + z_counter - + - + dz_counter - + - + if { } @@ -2848,7 +3047,7 @@ - + @@ -2861,15 +3060,15 @@ - + - - + + - + Counter_Hold_and_Error_Calculation @@ -2882,15 +3081,15 @@ - + - - + + - + int16 @@ -2903,16 +3102,16 @@ - - + + - - + + - - action + + int16 @@ -2924,761 +3123,15 @@ - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int32 - - - - - - - - - - - - - - - - - - - - - - - - - - [n_motRaw] - - - - - - - - - - - - - - - - - - - - - - int32 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_counter] - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - CTRL_COMM - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - r_commDCDeacv - - - - - - - - - - - - - - - - - - - - - - r_commDCDeacv - - - - - - - + + - + - - int32 - - - - - - - - - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - z_dirPrev - - - - - - - - - - - - - - - int8 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - int16 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - dz_counter - - - - - - - - - - - - - - - boolean - - - - - - - - - - - - - - - - - - - - - - - - - - 2 - - - - - - - - - - - - - - - - - - - - - - z_ctrlTypSel - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - + action @@ -3690,59 +3143,65 @@ - - + + + + + + + + - + - + - - 1 + + 6 - + - - + + - - + + - - r_DC + + z_dirPrev - - + + - - + + - - int32 + + int8 @@ -3753,28 +3212,84 @@ - - - + + + - - + + - - + + - - [z_counter] + + u1 + + + + + + + + if(u1 ~= 0) - + + + + + + + + + + + + + + + + + action + + + + + + + + + + + + + + + + + + + + + + + + + + [r_DC] + + + + + + @@ -3786,44 +3301,59 @@ - - - + + + - - + + - - + + - - [z_counterRawPrev] + + 3 - - + + + + + + + + + + + + + + + + + z_ctrlTypSel - + - - + + - - int16 + + uint8 @@ -3834,45 +3364,372 @@ - - - + + + - + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dirPrev] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + 2 + + + + + + + + + + + + + + + + + + + + + + r_DCabs + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dir] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + u + + + + + + + + rst + + + + + + + + y + + + + + + + + 1 + + + + + + + + z + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + - + - + - + - + - + - + @@ -3887,22 +3744,181 @@ - + - + - - + + - + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_DCabs] + + + + + + + + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + 3 + + + + + + + + + + + + + + + + + + + + + + z_counter + + + + + + + + + + + + + + + + + + + + + + + + + + 1 + + + + + + + + + + + + + + + + + + + + + + r_DC + + + + + + + + + + + + + + int32 @@ -3915,28 +3931,28 @@ - + - + - + - + - + - + @@ -3947,22 +3963,22 @@ - + - - + + - + boolean - + @@ -3979,11 +3995,11 @@ - + - + @@ -3993,11 +4009,11 @@ - + - + @@ -4007,11 +4023,11 @@ - + - + @@ -4021,11 +4037,11 @@ - + - + @@ -4035,11 +4051,11 @@ - + - + @@ -4049,11 +4065,11 @@ - + - + @@ -4063,11 +4079,11 @@ - + - + @@ -4077,11 +4093,11 @@ - + - + @@ -4091,11 +4107,11 @@ - + - + @@ -4105,11 +4121,11 @@ - + - + @@ -4120,51 +4136,51 @@ - + - + - + - + - + - + - + - + - + - + @@ -4173,11 +4189,11 @@ - + - + @@ -4187,11 +4203,11 @@ - + - + @@ -4201,11 +4217,11 @@ - + - + @@ -4215,11 +4231,11 @@ - + - + @@ -4229,11 +4245,11 @@ - + - + @@ -4243,11 +4259,11 @@ - + - + @@ -4257,11 +4273,11 @@ - + - + @@ -4271,39 +4287,25 @@ - + - + - + - + - - - - - - - - - - - - - - - + @@ -4313,11 +4315,11 @@ - + - + @@ -4327,11 +4329,11 @@ - + - + @@ -4341,11 +4343,11 @@ - + - + @@ -4355,11 +4357,11 @@ - + - + @@ -4369,11 +4371,11 @@ - + - + @@ -4383,11 +4385,11 @@ - + - + @@ -4397,11 +4399,11 @@ - + - + @@ -4411,11 +4413,11 @@ - + - + @@ -4425,11 +4427,11 @@ - + - + @@ -4439,11 +4441,11 @@ - + - + @@ -4453,11 +4455,11 @@ - + - + @@ -4467,11 +4469,11 @@ - + - + @@ -4481,11 +4483,11 @@ - + - + @@ -4495,11 +4497,11 @@ - + - + @@ -4509,11 +4511,11 @@ - + - + @@ -4523,11 +4525,11 @@ - + - + @@ -4537,11 +4539,11 @@ - + - + @@ -4551,11 +4553,11 @@ - + - + @@ -4565,11 +4567,11 @@ - + - + @@ -4579,11 +4581,11 @@ - + - + @@ -4593,11 +4595,11 @@ - + - + @@ -4607,11 +4609,11 @@ - + - + @@ -4621,11 +4623,11 @@ - + - + @@ -4635,11 +4637,11 @@ - + - + @@ -4649,11 +4651,11 @@ - + - + @@ -4663,11 +4665,11 @@ - + - + @@ -4677,11 +4679,11 @@ - + - + @@ -4691,11 +4693,11 @@ - + - + @@ -4705,11 +4707,11 @@ - + - + @@ -4719,11 +4721,11 @@ - + - + @@ -4733,11 +4735,25 @@ - + - + + + + + + + + + + + + + + + @@ -4746,5 +4762,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_6_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_6_d.json index 75644b0..d292d82 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_6_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_6_d.json @@ -1655,125 +1655,6 @@ "masktype":"" } }, - { - "sid":"BLDCmotorControl_R2017b:2687:1484", - "className":"Simulink.Outport", - "icon":"WebViewIcon2", - "name":"z_counterRaw", - "label":"z_counterRaw", - "parent":"BLDCmotorControl_R2017b:2687:6", - "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":"BLDCmotorControl_R2017b:2687:1313", - "className":"Simulink.If", - "icon":"WebViewIcon2", - "name":"If2", - "label":"If2", - "parent":"BLDCmotorControl_R2017b:2687:6", - "inspector":{ - "params":[ - "NumInputs", - "IfExpression", - "ElseIfExpressions", - "ShowElse", - "ZeroCross", - "SampleTime" - ], - "values":[ - "1", - "u1 ~= 0", - "", - "off", - "on", - "-1" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"If", - "masktype":"" - } - }, { "sid":"BLDCmotorControl_R2017b:2687:1634", "className":"Simulink.Goto", @@ -1841,22 +1722,28 @@ } }, { - "sid":"BLDCmotorControl_R2017b:2687:1384", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_R2017b:2687:1313", + "className":"Simulink.If", "icon":"WebViewIcon2", - "name":"Goto3", - "label":"Goto3", + "name":"If2", + "label":"If2", "parent":"BLDCmotorControl_R2017b:2687:6", "inspector":{ "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" + "NumInputs", + "IfExpression", + "ElseIfExpressions", + "ShowElse", + "ZeroCross", + "SampleTime" ], "values":[ - "b_advCtrlEna", - "local", - "Tag" + "1", + "u1 ~= 0", + "", + "off", + "on", + "-1" ], "tabs":[ "Parameter Attributes" @@ -1869,102 +1756,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1376", - "className":"Simulink.Goto", - "icon":"WebViewIcon2", - "name":"Goto18", - "label":"Goto18", - "parent":"BLDCmotorControl_R2017b:2687:6", - "inspector":{ - "params":[ - "GotoTag", - "TagVisibility", - "IconDisplay" - ], - "values":[ - "r_DC", - "local", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"Goto", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1382", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From18", - "label":"From18", - "parent":"BLDCmotorControl_R2017b:2687:6", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "b_advCtrlEna", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", - "masktype":"" - } - }, - { - "sid":"BLDCmotorControl_R2017b:2687:1633", - "className":"Simulink.From", - "icon":"WebViewIcon2", - "name":"From15", - "label":"From15", - "parent":"BLDCmotorControl_R2017b:2687:6", - "inspector":{ - "params":[ - "GotoTag", - "IconDisplay" - ], - "values":[ - "z_dirPrev", - "Tag" - ], - "tabs":[ - "Parameter Attributes" - ], - "tabs_idx":0 - }, - "viewer":{ - "jshandler":"webview/handlers/ElementHandler" - }, - "obj_viewer":[ - ], - "finder":{ - "blocktype":"From", + "blocktype":"If", "masktype":"" } }, @@ -2049,19 +1841,196 @@ } }, { - "sid":"BLDCmotorControl_R2017b:2687:1378", + "sid":"BLDCmotorControl_R2017b:2687:1484", + "className":"Simulink.Outport", + "icon":"WebViewIcon2", + "name":"z_counterRaw", + "label":"z_counterRaw", + "parent":"BLDCmotorControl_R2017b:2687:6", + "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":"BLDCmotorControl_R2017b:2687:1382", "className":"Simulink.From", "icon":"WebViewIcon2", - "name":"From11", - "label":"From11", + "name":"From18", + "label":"From18", "parent":"BLDCmotorControl_R2017b:2687:6", "inspector":{ "params":[ "GotoTag", "IconDisplay" ], + "values":[ + "b_advCtrlEna", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1662", + "className":"Simulink.Goto", + "icon":"WebViewIcon2", + "name":"Goto10", + "label":"Goto10", + "parent":"BLDCmotorControl_R2017b:2687:6", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_DCabs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1376", + "className":"Simulink.Goto", + "icon":"WebViewIcon2", + "name":"Goto18", + "label":"Goto18", + "parent":"BLDCmotorControl_R2017b:2687:6", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], "values":[ "r_DC", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1481", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From12", + "label":"From12", + "parent":"BLDCmotorControl_R2017b:2687:6", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "z_counterRaw", "Tag" ], "tabs":[ @@ -2110,6 +2079,70 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_R2017b:2687:1666", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From17", + "label":"From17", + "parent":"BLDCmotorControl_R2017b:2687:6", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_DCabs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1384", + "className":"Simulink.Goto", + "icon":"WebViewIcon2", + "name":"Goto3", + "label":"Goto3", + "parent":"BLDCmotorControl_R2017b:2687:6", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "b_advCtrlEna", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_R2017b:2687:1483", "className":"Simulink.Outport", @@ -2191,11 +2224,11 @@ } }, { - "sid":"BLDCmotorControl_R2017b:2687:1481", + "sid":"BLDCmotorControl_R2017b:2687:1378", "className":"Simulink.From", "icon":"WebViewIcon2", - "name":"From12", - "label":"From12", + "name":"From11", + "label":"From11", "parent":"BLDCmotorControl_R2017b:2687:6", "inspector":{ "params":[ @@ -2203,7 +2236,7 @@ "IconDisplay" ], "values":[ - "z_counterRaw", + "r_DC", "Tag" ], "tabs":[ @@ -2222,19 +2255,88 @@ } }, { - "sid":"BLDCmotorControl_R2017b:2687:1482", - "className":"Simulink.From", + "sid":"BLDCmotorControl_R2017b:2687:1661", + "className":"Simulink.Inport", "icon":"WebViewIcon2", - "name":"From16", - "label":"From16", + "name":"r_DCabs", + "label":"r_DCabs", + "parent":"BLDCmotorControl_R2017b:2687:6", + "inspector":{ + "params":[ + "Port", + "IconDisplay", + "OutMin", + "OutMax", + "OutDataTypeStr", + "LockScale", + "Unit", + "PortDimensions", + "VarSizeSig", + "SampleTime", + "SignalType", + "BusOutputAsStruct", + "InputConnect", + "Interpolate", + "LatchByDelayingOutsideSignal", + "LatchInputForFeedbackSignals", + "OutputFunctionCall" + ], + "values":[ + "5", + "Port number", + "[]", + "[]", + "Inherit: auto", + "off", + "inherit", + "-1", + "Inherit", + "-1", + "auto", + "off", + "", + "on", + "off", + "off", + "off" + ], + "tabs":[ + "Main", + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 2, + 11 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Inport", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1489", + "className":"Simulink.Goto", + "icon":"WebViewIcon2", + "name":"Goto5", + "label":"Goto5", "parent":"BLDCmotorControl_R2017b:2687:6", "inspector":{ "params":[ "GotoTag", + "TagVisibility", "IconDisplay" ], "values":[ "z_counter", + "local", "Tag" ], "tabs":[ @@ -2248,7 +2350,7 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"From", + "blocktype":"Goto", "masktype":"" } }, @@ -2320,21 +2422,19 @@ } }, { - "sid":"BLDCmotorControl_R2017b:2687:1489", - "className":"Simulink.Goto", + "sid":"BLDCmotorControl_R2017b:2687:1633", + "className":"Simulink.From", "icon":"WebViewIcon2", - "name":"Goto5", - "label":"Goto5", + "name":"From15", + "label":"From15", "parent":"BLDCmotorControl_R2017b:2687:6", "inspector":{ "params":[ "GotoTag", - "TagVisibility", "IconDisplay" ], "values":[ - "z_counter", - "local", + "z_dirPrev", "Tag" ], "tabs":[ @@ -2348,7 +2448,38 @@ "obj_viewer":[ ], "finder":{ - "blocktype":"Goto", + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1482", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From16", + "label":"From16", + "parent":"BLDCmotorControl_R2017b:2687:6", + "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":"" } }, @@ -4085,5 +4216,107 @@ ], "finder":[ ] + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1661#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon4", + "name":"", + "label":"", + "parent":"BLDCmotorControl_R2017b:2687:6", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1666#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon4", + "name":"", + "label":"", + "parent":"BLDCmotorControl_R2017b:2687:6", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] } ] \ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_6_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_6_d.png index 9ca164e..1d9279c 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_6_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_6_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_6_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_6_d.svg index 522ebba..edf231c 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_6_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_6_d.svg @@ -1,10 +1,10 @@ - + - + @@ -46,7 +46,7 @@ - + @@ -61,7 +61,7 @@ - + @@ -109,7 +109,7 @@ - + @@ -124,7 +124,7 @@ - + @@ -172,7 +172,7 @@ - + @@ -187,7 +187,7 @@ - + @@ -235,7 +235,7 @@ - + @@ -252,7 +252,7 @@ - + @@ -325,7 +325,7 @@ - + @@ -346,7 +346,7 @@ - + @@ -400,7 +400,7 @@ - + @@ -448,7 +448,7 @@ - + @@ -496,7 +496,7 @@ - + @@ -544,7 +544,7 @@ - + @@ -592,7 +592,7 @@ - + @@ -640,7 +640,7 @@ - + @@ -754,7 +754,7 @@ - + @@ -771,7 +771,7 @@ - + @@ -844,7 +844,7 @@ - + @@ -865,7 +865,7 @@ - + @@ -886,7 +886,7 @@ - + @@ -907,7 +907,7 @@ - + @@ -961,7 +961,7 @@ - + @@ -1110,7 +1110,7 @@ - + @@ -1133,66 +1133,74 @@ - + - - z_ctrlTypSel + + r_DCabs - + - - b_edge + + z_ctrlTypSel - + - - z_dir + + b_edge - + - - z_dirPrev + + z_dir - + - - n_mot + + z_dirPrev - + - - b_advCtrlEna + + n_mot - + - - z_counter + + b_advCtrlEna + + + + + z_counter + + + - + z_counterRaw @@ -1222,11 +1230,11 @@ - - + + - + F01_04_Speed_Calculation @@ -1239,16 +1247,16 @@ - - + + - - + + - - int16 + + boolean @@ -1264,11 +1272,11 @@ - - + + - + int32 @@ -1281,16 +1289,16 @@ - - + + - - + + - - boolean + + int16 @@ -1306,11 +1314,11 @@ - - + + - + int16 @@ -1330,7 +1338,7 @@ - + @@ -1344,35 +1352,35 @@ - + - + b_hallA - + - + b_hallB - + - + b_hallC - + - + z_pos @@ -1402,11 +1410,11 @@ - - + + - + F01_02_Position_Calculation @@ -1423,11 +1431,11 @@ - - + + - + int8 @@ -1446,42 +1454,42 @@ - + - + - + - + [b_edge] - + - + - - + + - + uint8 @@ -1503,11 +1511,11 @@ - + - + [n_mot] @@ -1536,11 +1544,11 @@ - + - + [n_mot] @@ -1558,11 +1566,11 @@ - - + + - + int32 @@ -1584,11 +1592,11 @@ - + - + 3 @@ -1606,11 +1614,11 @@ - - + + - + z_dir @@ -1632,11 +1640,11 @@ - + - + [z_dir] @@ -1654,11 +1662,11 @@ - - + + - + int8 @@ -1680,11 +1688,11 @@ - + - + 2 @@ -1702,11 +1710,11 @@ - - + + - + z_pos @@ -1728,11 +1736,11 @@ - + - + [z_pos] @@ -1750,11 +1758,11 @@ - - + + - + int8 @@ -1767,42 +1775,42 @@ - + - + - + - + [z_dir] - + - + - - + + - + int8 @@ -1824,11 +1832,11 @@ - + - + 1 @@ -1846,11 +1854,11 @@ - - + + - + z_ctrlTypSel @@ -1872,11 +1880,11 @@ - + - + [z_ctrlTypSel] @@ -1894,11 +1902,11 @@ - - + + - + uint8 @@ -1920,11 +1928,11 @@ - + - + [z_ctrlTypSel] @@ -1953,11 +1961,11 @@ - + - + z_ctrlTypSel @@ -1975,11 +1983,11 @@ - - + + - + uint8 @@ -1989,110 +1997,6 @@ - - - - - - - - - - - - - - - - - - 5 - - - - - - - - - - - - - - - - - - - - - - z_counterRaw - - - - - - - - - - - - - - - - - - - - - - - - - - u1 - - - - - - - - if(u1 ~= 0) - - - - - - - - - - - - - - - - - - - - - - action - - - - - - - - @@ -2105,11 +2009,11 @@ - + - + [z_dirPrev] @@ -2138,11 +2042,11 @@ - + - + [z_counterRaw] @@ -2161,29 +2065,52 @@ - - - + + + - - + + - - + + - - [b_advCtrlEna] + + u1 + + + + + + + + if(u1 ~= 0) - - + + + + + + + + + + + + + + + + + action @@ -2194,29 +2121,92 @@ - - - + + + - - + + - - + + - - [r_DC] + + 6 - - + + + + + + + + + + + + + + + + + b_advCtrlEna + + + + + + + + + + + + + + + + + + + + + + + + + + 5 + + + + + + + + + + + + + + + + + + + + + + z_counterRaw @@ -2260,7 +2250,7 @@ - + @@ -2275,44 +2265,29 @@ - - - + + + - - + + - + - - [z_dirPrev] + + [r_DCabs] - - - - - - - - - - - - - - - - - int8 + + @@ -2323,188 +2298,29 @@ - - - + + + - - + + - - + + - - 6 - - - - - - - - - - - - - - - - - - - - - - b_advCtrlEna - - - - - - - - - - - - - - - - - - - - - - - - - + [r_DC] - - - - - - - - - - - - - - - - - int32 - - - - - - - - - - - - - - - - - - - - - - - - - - [z_ctrlTypSel] - - - - - - - - - - - - - - - - - - - - - - uint8 - - - - - - - - - - - - - - - - - - - - - - - - - - 4 - - - - - - - - - - - - - - - - - - - - - - z_counter + + @@ -2525,11 +2341,11 @@ - + - + [z_counterRaw] @@ -2547,11 +2363,11 @@ - - + + - + int16 @@ -2563,11 +2379,188 @@ - - + + - + + + + + + + + + + + + [z_ctrlTypSel] + + + + + + + + + + + + + + + + + + + + + + uint8 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_DCabs] + + + + + + + + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + [b_advCtrlEna] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + z_counter + + + + + + + + + + + + + + + @@ -2577,30 +2570,30 @@ - - [z_counter] + + [r_DC] - + - + - + - - int16 + + int32 @@ -2611,11 +2604,11 @@ - - + + - + @@ -2625,44 +2618,44 @@ - - 4 + + 5 - + - - + + - + - - r_DC + + r_DCabs - + - + - + int32 @@ -2705,6 +2698,165 @@ + + + + + + + + + + + + + + + + + + 4 + + + + + + + + + + + + + + + + + + + + + + r_DC + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_dirPrev] + + + + + + + + + + + + + + + + + + + + + + int8 + + + + + + + + + + + + + + + + + + + + + + + + + + [z_counter] + + + + + + + + + + + + + + + + + + + + + + int16 + + + + + + + + @@ -2918,11 +3070,11 @@ - + - + @@ -2988,11 +3140,11 @@ - + - + @@ -3044,11 +3196,11 @@ - + - + @@ -3181,7 +3333,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_d.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_d.json index a75a11a..008b633 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_d.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_d.json @@ -1874,7 +1874,7 @@ "IconDisplay" ], "values":[ - "r_DC", + "r_DCabs", "Tag" ], "tabs":[ @@ -2020,6 +2020,117 @@ "masktype":"" } }, + { + "sid":"BLDCmotorControl_R2017b:2687:1659", + "className":"Simulink.Goto", + "icon":"WebViewIcon2", + "name":"Goto9", + "label":"Goto9", + "parent":"BLDCmotorControl_R2017b:2687", + "inspector":{ + "params":[ + "GotoTag", + "TagVisibility", + "IconDisplay" + ], + "values":[ + "r_DCabs", + "local", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Goto", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1667", + "className":"Simulink.From", + "icon":"WebViewIcon2", + "name":"From11", + "label":"From11", + "parent":"BLDCmotorControl_R2017b:2687", + "inspector":{ + "params":[ + "GotoTag", + "IconDisplay" + ], + "values":[ + "r_DCabs", + "Tag" + ], + "tabs":[ + "Parameter Attributes" + ], + "tabs_idx":0 + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"From", + "masktype":"" + } + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1660", + "className":"Simulink.Abs", + "icon":"WebViewIcon2", + "name":"Abs1", + "label":"Abs1", + "parent":"BLDCmotorControl_R2017b:2687", + "inspector":{ + "params":[ + "OutDataTypeStr", + "LockScale", + "OutMax", + "OutMin", + "RndMeth", + "SampleTime", + "SaturateOnIntegerOverflow", + "ZeroCross" + ], + "values":[ + "Inherit: Inherit via back propagation", + "off", + "[]", + "[]", + "Zero", + "-1", + "off", + "on" + ], + "tabs":[ + "Signal Attributes", + "-Other" + ], + "tabs_idx":[ + 0, + 1 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":{ + "blocktype":"Abs", + "masktype":"" + } + }, { "sid":"BLDCmotorControl_R2017b:2687:2#out:1", "className":"Simulink.Line", @@ -3600,5 +3711,107 @@ ], "finder":[ ] + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1660#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon4", + "name":"", + "label":"", + "parent":"BLDCmotorControl_R2017b:2687", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] + }, + { + "sid":"BLDCmotorControl_R2017b:2687:1667#out:1", + "className":"Simulink.Line", + "icon":"WebViewIcon4", + "name":"", + "label":"", + "parent":"BLDCmotorControl_R2017b:2687", + "inspector":{ + "params":[ + "SignalNameFromLabel", + "MustResolveToSignal", + "ShowPropagatedSignal", + "DataLogging", + "TestPoint", + "SignalObjectPackage", + "StorageClass", + "Description", + "documentLink" + ], + "values":[ + "", + "off", + "off", + "off", + "off", + "Simulink", + "Auto", + "", + "" + ], + "tabs":[ + "Parameter Attributes", + "Logging and Accessibility", + "Code Generation", + "Documentation" + ], + "tabs_idx":[ + 0, + 3, + 5, + 7 + ] + }, + "viewer":{ + "jshandler":"webview/handlers/ElementHandler" + }, + "obj_viewer":[ + ], + "finder":[ + ] } ] \ No newline at end of file diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_d.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_d.png index 5145d6d..5e917ce 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_d.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_d.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_d.svg index ac894b8..c1767cc 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_2687_d.svg @@ -472,10 +472,10 @@ - + - + @@ -485,44 +485,44 @@ - + 1 - + - + - + - + b_hallA - + - + - + uint8 @@ -535,10 +535,10 @@ - + - + @@ -548,14 +548,14 @@ - + [b_hallA] - + @@ -568,10 +568,10 @@ - + - + @@ -581,14 +581,14 @@ - + [b_hallB] - + @@ -601,10 +601,10 @@ - + - + @@ -614,14 +614,14 @@ - + [b_hallC] - + @@ -682,10 +682,10 @@ - + - + @@ -695,44 +695,44 @@ - + 2 - + - + - + - + b_hallB - + - + - + uint8 @@ -745,10 +745,10 @@ - + - + @@ -758,44 +758,44 @@ - + 3 - + - + - + - + b_hallC - + - + - + uint8 @@ -824,90 +824,98 @@ - + - + b_hallA - + - + b_hallB - + - + b_hallC - + - + r_DC - + - - z_ctrlTypSel + + r_DCabs - + - - z_pos + + z_ctrlTypSel - + - - z_dir + + z_pos - + - - z_counter + + z_dir - + - - z_counterRaw + + z_counter - + - - b_advCtrlEna + + z_counterRaw + + + + + b_advCtrlEna + + + - + n_mot @@ -937,11 +945,11 @@ - + - + F01_Preliminary_Calculations @@ -954,16 +962,16 @@ - - + + - - + + - - uint8 + + boolean @@ -975,27 +983,6 @@ - - - - - - - - - - int8 - - - - - - - - - - - @@ -1010,6 +997,27 @@ + + + + + + + + + + + + + + + + + int8 + + + + @@ -1017,16 +1025,16 @@ - + - - + + - - int16 + + uint8 @@ -1038,15 +1046,15 @@ - + - - + + - + int16 @@ -1059,16 +1067,16 @@ - - + + - - + + - - boolean + + int16 @@ -1084,11 +1092,11 @@ - + - + int32 @@ -1107,42 +1115,42 @@ - + - + - + - + [b_hallA] - + - + - - + + - + uint8 @@ -1155,42 +1163,42 @@ - + - + - + - + [b_hallB] - + - + - - + + - + uint8 @@ -1203,42 +1211,42 @@ - + - + - + - + [b_hallC] - + - + - - + + - + uint8 @@ -1266,43 +1274,43 @@ - + - + z_ctrlTypSel - + - + a_elecAngleAdv - + - + r_phaA - + - + r_phaB - + - + r_phaC @@ -1332,11 +1340,11 @@ - + - + F03_Control_Method_Selection @@ -1353,11 +1361,11 @@ - + - + int16 @@ -1374,11 +1382,11 @@ - + - + int16 @@ -1395,11 +1403,11 @@ - + - + int16 @@ -1433,67 +1441,67 @@ - + - - r_DC - - - - - - - - z_pos + + r_DCabs - + - - z_dir + + z_pos - + - - z_counter + + z_dir - + - - z_counterRaw + + z_counter - + - - a_elecAngleAdv + + z_counterRaw - + - - a_elecAngle + + a_elecAngleAdv + + + + + a_elecAngle + + + - + if { } @@ -1523,11 +1531,11 @@ - + - + F02_Electrical_Angle_Calculation @@ -1540,16 +1548,16 @@ - - + + - - + + - - action + + int32 @@ -1565,11 +1573,11 @@ - + - + int32 @@ -1582,16 +1590,16 @@ - - + + - - + + - - int32 + + action @@ -1618,19 +1626,19 @@ - + - + u1 - + - + if(u1 ~= CTRL_COMM) @@ -1648,11 +1656,11 @@ - + - + action @@ -1680,75 +1688,75 @@ - + - + r_DC - + - + r_phaA - + - + r_phaB - + - + r_phaC - + - + z_pos - + - + b_advCtrlEna - + - + DC_phaA - + - + DC_phaB - + - + DC_phaC @@ -1778,11 +1786,11 @@ - + - + F04_Control_Type_Management @@ -1799,11 +1807,11 @@ - + - + int32 @@ -1820,11 +1828,11 @@ - + - + int32 @@ -1841,11 +1849,11 @@ - + - + int32 @@ -1873,11 +1881,11 @@ - + - + [r_DC] @@ -1895,11 +1903,11 @@ - + - + int32 @@ -1921,11 +1929,11 @@ - + - + [DC_phaA] @@ -1954,11 +1962,11 @@ - + - + [DC_phaB] @@ -1987,11 +1995,11 @@ - + - + [DC_phaC] @@ -2020,11 +2028,11 @@ - + - + [n_mot] @@ -2053,11 +2061,11 @@ - + - + [n_mot] @@ -2075,11 +2083,11 @@ - + - + int32 @@ -2101,11 +2109,11 @@ - + - + [DC_phaA] @@ -2123,11 +2131,11 @@ - + - + int32 @@ -2149,11 +2157,11 @@ - + - + 2 @@ -2171,11 +2179,11 @@ - + - + DC_phaB @@ -2197,11 +2205,11 @@ - + - + [DC_phaB] @@ -2219,11 +2227,11 @@ - + - + int32 @@ -2245,11 +2253,11 @@ - + - + 3 @@ -2267,11 +2275,11 @@ - + - + DC_phaC @@ -2293,11 +2301,11 @@ - + - + [DC_phaC] @@ -2315,11 +2323,11 @@ - + - + int32 @@ -2332,27 +2340,27 @@ - + - + - + - + [r_DC] - + @@ -2365,57 +2373,57 @@ - + - + - + - + 4 - + - + - - + + - + r_DC - + - - + + - + int32 @@ -2437,11 +2445,11 @@ - + - + [a_elecAngle] @@ -2470,11 +2478,11 @@ - + - + 5 @@ -2492,11 +2500,11 @@ - + - + a_elecAngle @@ -2518,11 +2526,11 @@ - + - + [a_elecAngle] @@ -2540,11 +2548,11 @@ - + - + int32 @@ -2573,11 +2581,11 @@ - + - + Implemented_control_methods @@ -2613,12 +2621,12 @@ - + - - [r_DC] + + [r_DCabs] @@ -2635,11 +2643,11 @@ - + - + int32 @@ -2658,51 +2666,51 @@ - + - + MODEL INFO - + - - Version: 1.877 - - - - - - - - Author: Emanuel Feru + + Version: 1.879 - + - - Last modified by: eferu + + Author: Emanuel Feru - + - - Last update: + + Last modified by: 37ef + + + + + Last update: + + + - + Copyright © 2019 Emanuel FERU @@ -2717,29 +2725,29 @@ - + - + - + - + - + - + @@ -2754,42 +2762,203 @@ - + - + - + - + [r_DC] - + - + - - + + - + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + [r_DCabs] + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + [r_DCabs] + + + + + + + + + + + + + + + + + + + + + + int32 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + int32 @@ -2802,11 +2971,11 @@ - + - + @@ -2816,11 +2985,11 @@ - + - + @@ -2830,11 +2999,11 @@ - + - + @@ -2872,11 +3041,11 @@ - + - + @@ -2886,11 +3055,11 @@ - + - + @@ -2900,11 +3069,11 @@ - + - + @@ -2915,17 +3084,7 @@ - - - - - - - - - - - + @@ -2935,11 +3094,21 @@ - + - + + + + + + + + + + + @@ -3164,15 +3333,35 @@ - + + + + + + + + - + + + + + + + + + + + + + + @@ -3220,11 +3409,11 @@ - + - + @@ -3273,7 +3462,35 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_29_d.svg b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_29_d.svg index a9146fb..13d0b78 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_29_d.svg +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_29_d.svg @@ -1205,44 +1205,38 @@ - - - - - - - - - - - - - - - - - int32 - - - - - + - - - - - - + - - int32 + + + + + + + + + + + + + + + + + + + + + + @@ -1258,48 +1252,54 @@ - + - + int32 - + + + + + + + + + + + + + + + + + int32 + + + + + - - + + + + + + + - - - - - - - - - - - - - - - - - - - - - - + + int32 @@ -1311,15 +1311,15 @@ - + - + - + int32 @@ -1332,15 +1332,15 @@ - + - + - + int32 @@ -2047,5 +2047,5 @@ - + diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_29_icons.png b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_29_icons.png index 80566bd..42168d8 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_29_icons.png and b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_29_icons.png differ diff --git a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_h_1.json b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_h_1.json index a9799ba..12618b3 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_h_1.json +++ b/01_Matlab/BLDC_controller_ert_rtw/html/webview/support/slwebview_files/BLDCmotorControl_R2017b_h_1.json @@ -145,6 +145,9 @@ ":2687:537", ":2687:589", ":2687:1379", + ":2687:1659", + ":2687:1667", + ":2687:1660", ":2687:2#out:1", ":2687:3#out:1", ":2687:4#out:1", @@ -175,7 +178,9 @@ ":2687:1379#out:1", ":2687:6#out:6", ":2687:6#out:4", - ":2687:6#out:5" + ":2687:6#out:5", + ":2687:1660#out:1", + ":2687:1667#out:1" ], "sameAsElement":true }, @@ -232,22 +237,25 @@ ":2687:184", ":2687:206", ":2687:208", - ":2687:1484", - ":2687:1313", ":2687:1634", ":2687:1490", - ":2687:1384", - ":2687:1376", - ":2687:1382", - ":2687:1633", + ":2687:1313", ":2687:1383", - ":2687:1378", - ":2687:1377", - ":2687:1483", + ":2687:1484", + ":2687:1382", + ":2687:1662", + ":2687:1376", ":2687:1481", - ":2687:1482", - ":2687:1375", + ":2687:1377", + ":2687:1666", + ":2687:1384", + ":2687:1483", + ":2687:1378", + ":2687:1661", ":2687:1489", + ":2687:1375", + ":2687:1633", + ":2687:1482", ":2687:1313#out:1", ":2687:189#out:1", ":2687:188#out:1", @@ -281,7 +289,9 @@ ":2687:59#out:3", ":2687:59#out:4", ":2687:38#out:2", - ":2687:1633#out:1" + ":2687:1633#out:1", + ":2687:1661#out:1", + ":2687:1666#out:1" ], "sameAsElement":true }, @@ -438,56 +448,57 @@ ":2687:61", ":2687:100", ":2687:1488", - ":2687:1487", - ":2687:1381", ":2687:1328", + ":2687:1518", ":2687:1507", ":2687:1526", - ":2687:1327", - ":2687:1326", - ":2687:1651", + ":2687:1525", + ":2687:1329", ":2687:842", ":2687:659", - ":2687:1362", + ":2687:1401", ":2687:1400", - ":2687:1374", - ":2687:1371", + ":2687:1326", + ":2687:1372", + ":2687:1664", ":2687:1398", ":2687:1533", + ":2687:1630", + ":2687:1362", + ":2687:1395", + ":2687:972", ":2687:1521", ":2687:1485", - ":2687:1324", + ":2687:1381", + ":2687:1371", ":2687:1517", - ":2687:1323", - ":2687:1322", - ":2687:1401", - ":2687:1372", - ":2687:1455", - ":2687:1380", - ":2687:1641", - ":2687:1630", + ":2687:1642", ":2687:1523", ":2687:1486", ":2687:660", - ":2687:1642", - ":2687:1397", - ":2687:1524", - ":2687:1340", - ":2687:1320", - ":2687:972", - ":2687:1395", - ":2687:1525", - ":2687:1321", - ":2687:1329", - ":2687:1629", - ":2687:1366", - ":2687:1518", - ":2687:1370", - ":2687:1339", - ":2687:1373", ":2687:786", + ":2687:1524", + ":2687:1455", + ":2687:1380", + ":2687:1321", + ":2687:1327", ":2687:1361", - ":2687:1319", + ":2687:1366", + ":2687:1323", + ":2687:1340", + ":2687:1629", + ":2687:1339", + ":2687:1374", + ":2687:1370", + ":2687:1324", + ":2687:1641", + ":2687:1663", + ":2687:1397", + ":2687:1651", + ":2687:1320", + ":2687:1665", + ":2687:1487", + ":2687:1373", ":2687:1325", ":2687:1366#out:1", ":2687:1518#out:1", @@ -508,8 +519,7 @@ ":2687:1324#out:1", ":2687:1320#out:1", ":2687:1321#out:1", - ":2687:1319#out:1", - ":2687:1322#out:1", + ":2687:1665#out:1", ":2687:1329#out:1", ":2687:1325#out:1", ":2687:1339#out:1", @@ -540,7 +550,8 @@ ":2687:1328#out:1", ":2687:1326#out:1", ":2687:1327#out:1", - ":2687:1524#out:1" + ":2687:1524#out:1", + ":2687:1663#out:1" ], "sameAsElement":true }, @@ -561,8 +572,8 @@ "elements":[ ":2687:1359", ":2687:1358", - ":2687:169", ":2687:1454", + ":2687:169", ":2687:1344", ":2687:1341", ":2687:1341#out:1", @@ -594,33 +605,33 @@ ":2687:1438", ":2687:1451", ":2687:1440", + ":2687:1450", ":2687:1625", + ":2687:1443", + ":2687:1638", + ":2687:1624", + ":2687:1650", + ":2687:1645", + ":2687:1623", + ":2687:1646", ":2687:1448", + ":2687:1439", + ":2687:1636", + ":2687:1635", + ":2687:1628", + ":2687:1436", + ":2687:1637", + ":2687:1639", ":2687:1446", ":2687:1444", - ":2687:1443", - ":2687:1628", - ":2687:1645", - ":2687:1636", - ":2687:1646", - ":2687:1635", - ":2687:1623", - ":2687:1439", ":2687:1648", - ":2687:1624", - ":2687:1647", ":2687:1434", - ":2687:1433", - ":2687:1436", - ":2687:1435", - ":2687:1437", - ":2687:1637", - ":2687:1650", - ":2687:1639", - ":2687:1450", - ":2687:1640", - ":2687:1638", ":2687:1649", + ":2687:1433", + ":2687:1647", + ":2687:1640", + ":2687:1437", + ":2687:1435", ":2687:1627", ":2687:1439#out:1", ":2687:1448#out:1", @@ -674,8 +685,8 @@ ":2687:1651:1622", ":2687:1651:1614", ":2687:1651:1620", - ":2687:1651:1618", ":2687:1651:1616", + ":2687:1651:1618", ":2687:1651:1620#out:1", ":2687:1651:1618#out:1", ":2687:1651:1616#out:1", @@ -734,7 +745,6 @@ ":2687:545", ":2687:543", ":2687:578", - ":2687:595", ":2687:623", ":2687:1460", ":2687:1462", @@ -775,7 +785,6 @@ ":2687:545#out:1", ":2687:542#out:1", ":2687:518#out:1", - ":2687:595#out:1", ":2687:547#out:1", ":2687:623#out:1", ":2687:546#out:1", diff --git a/01_Matlab/BLDC_controller_ert_rtw/rtwtypes.h b/01_Matlab/BLDC_controller_ert_rtw/rtwtypes.h index f7698d7..ca29438 100644 --- a/01_Matlab/BLDC_controller_ert_rtw/rtwtypes.h +++ b/01_Matlab/BLDC_controller_ert_rtw/rtwtypes.h @@ -7,9 +7,9 @@ * * Code generated for Simulink model 'BLDC_controller'. * - * Model version : 1.877 + * Model version : 1.879 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Wed Jun 5 22:29:28 2019 + * C/C++ source code generated on : Thu Jun 6 17:49:29 2019 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex diff --git a/01_Matlab/BLDC_controller_ert_rtw/rtwtypeschksum.mat b/01_Matlab/BLDC_controller_ert_rtw/rtwtypeschksum.mat index ebe0736..6581ae0 100644 Binary files a/01_Matlab/BLDC_controller_ert_rtw/rtwtypeschksum.mat and b/01_Matlab/BLDC_controller_ert_rtw/rtwtypeschksum.mat differ diff --git a/01_Matlab/BLDCmotorControl_R2017b.slx b/01_Matlab/BLDCmotorControl_R2017b.slx index 066cd1e..f24d1b1 100644 Binary files a/01_Matlab/BLDCmotorControl_R2017b.slx and b/01_Matlab/BLDCmotorControl_R2017b.slx differ diff --git a/Inc/BLDC_controller.h b/Inc/BLDC_controller.h index 9d9b319..01b6ed6 100644 --- a/Inc/BLDC_controller.h +++ b/Inc/BLDC_controller.h @@ -7,9 +7,9 @@ * * Code generated for Simulink model 'BLDC_controller'. * - * Model version : 1.877 + * Model version : 1.879 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Wed Jun 5 22:29:28 2019 + * C/C++ source code generated on : Thu Jun 6 17:49:29 2019 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex diff --git a/Inc/rtwtypes.h b/Inc/rtwtypes.h index f7698d7..ca29438 100644 --- a/Inc/rtwtypes.h +++ b/Inc/rtwtypes.h @@ -7,9 +7,9 @@ * * Code generated for Simulink model 'BLDC_controller'. * - * Model version : 1.877 + * Model version : 1.879 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Wed Jun 5 22:29:28 2019 + * C/C++ source code generated on : Thu Jun 6 17:49:29 2019 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex diff --git a/Src/BLDC_controller.c b/Src/BLDC_controller.c index f8bb08c..55082cc 100644 --- a/Src/BLDC_controller.c +++ b/Src/BLDC_controller.c @@ -7,9 +7,9 @@ * * Code generated for Simulink model 'BLDC_controller'. * - * Model version : 1.877 + * Model version : 1.879 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Wed Jun 5 22:29:28 2019 + * C/C++ source code generated on : Thu Jun 6 17:49:29 2019 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex @@ -26,6 +26,8 @@ #include #endif +#define static static inline + #if ( UCHAR_MAX != (0xFFU) ) || ( SCHAR_MAX != (0x7F) ) #error Code was generated for compiler with different sized uchar/char. \ Consider adjusting Test hardware word size settings on the \ @@ -154,15 +156,15 @@ void BLDC_controller_step(RT_MODEL *const rtM) ExtU *rtU = (ExtU *) rtM->inputs; ExtY *rtY = (ExtY *) rtM->outputs; uint8_T rtb_Sum; - int32_T rtb_Sum2; + int32_T rtb_Abs1; uint8_T rtb_BitwiseOperator; + int32_T rtb_Sum2; int16_T rtb_Abs2; int16_T rtb_Sum1_a; int32_T rtb_Abs5; int8_T rtAction; int8_T rtb_Sum2_h; uint32_T rtb_r_phaAdvDC_XA_o2; - int32_T rtb_Switch1_idx_0; int32_T rtb_Switch1_idx_1; /* Outputs for Atomic SubSystem: '/BLDC_controller' */ @@ -176,6 +178,17 @@ void BLDC_controller_step(RT_MODEL *const rtM) rtb_Sum = (uint8_T)((uint32_T)(uint8_T)((uint32_T)(uint8_T)(rtU->b_hallA << 2) + (uint8_T)(rtU->b_hallB << 1)) + rtU->b_hallC); + /* Abs: '/Abs1' incorporates: + * Inport: '/r_DC' + */ + if (rtU->r_DC < 0) { + rtb_Abs1 = -rtU->r_DC; + } else { + rtb_Abs1 = rtU->r_DC; + } + + /* End of Abs: '/Abs1' */ + /* S-Function (sfix_bitop): '/Bitwise Operator' incorporates: * Inport: '/b_hallA ' * Inport: '/b_hallB' @@ -411,19 +424,8 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Outport: '/a_elecAngle' */ if (rtP->b_phaAdvEna) { - /* Abs: '/Abs2' incorporates: - * Inport: '/r_DC' - */ - if (rtU->r_DC < 0) { - rtb_Switch1_idx_0 = -rtU->r_DC; - } else { - rtb_Switch1_idx_0 = rtU->r_DC; - } - - /* End of Abs: '/Abs2' */ - /* PreLookup: '/r_phaAdvDC_XA' */ - rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtb_Switch1_idx_0, + rtb_BitwiseOperator = plook_u8s32u32n31_evenc_s(rtb_Abs1, rtP->r_phaAdvDC_XA[0], (uint32_T)rtP->r_phaAdvDC_XA[1] - rtP->r_phaAdvDC_XA[0], 10U, &rtb_r_phaAdvDC_XA_o2); @@ -435,11 +437,10 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Outport: '/a_elecAngle' * Product: '/Product2' */ - rtb_Switch1_idx_0 = (int16_T)(rtb_Abs2 * rtDW->Switch2) + rtY->a_elecAngle; + rtb_Abs5 = (int16_T)(rtb_Abs2 * rtDW->Switch2) + rtY->a_elecAngle; /* Math: '/Math Function' */ - rtDW->Switch_PhaAdv = rtb_Switch1_idx_0 - div_nde_s32_floor - (rtb_Switch1_idx_0, 360) * 360; + rtDW->Switch_PhaAdv = rtb_Abs5 - div_nde_s32_floor(rtb_Abs5, 360) * 360; } else { rtDW->Switch_PhaAdv = rtY->a_elecAngle; } @@ -526,20 +527,6 @@ void BLDC_controller_step(RT_MODEL *const rtM) /* End of SwitchCase: '/Switch Case' */ - /* Abs: '/Abs1' incorporates: - * Inport: '/r_DC' - * Signum: '/Sign1' - */ - if (rtU->r_DC < 0) { - rtb_Switch1_idx_0 = -rtU->r_DC; - rtb_Switch1_idx_1 = -1; - } else { - rtb_Switch1_idx_0 = rtU->r_DC; - rtb_Switch1_idx_1 = (rtU->r_DC > 0); - } - - /* End of Abs: '/Abs1' */ - /* Signum: '/Sign' */ if (rtDW->Switch2 < 0) { rtb_Sum2_h = -1; @@ -549,6 +536,17 @@ void BLDC_controller_step(RT_MODEL *const rtM) /* End of Signum: '/Sign' */ + /* Signum: '/Sign1' incorporates: + * Inport: '/r_DC' + */ + if (rtU->r_DC < 0) { + rtb_Abs5 = -1; + } else { + rtb_Abs5 = (rtU->r_DC > 0); + } + + /* End of Signum: '/Sign1' */ + /* Switch: '/Switch1' incorporates: * Constant: '/vec_hallToPos' * Constant: '/CTRL_COMM' @@ -569,12 +567,11 @@ void BLDC_controller_step(RT_MODEL *const rtM) * About '/z_commutMap_M1': * 2-dimensional Direct Look-Up returning a Column */ - if ((rtP->z_ctrlTypSel != 0) && (rtb_Switch1_idx_0 > rtP->r_commDCDeacv) && - (rtb_Sum2_h == rtb_Switch1_idx_1) && rtDW->n_commDeacv_Mode && - (!rtDW->dz_counter_Mode)) { - rtb_Switch1_idx_0 = rtU->r_DC * rtDW->Merge; + if ((rtP->z_ctrlTypSel != 0) && (rtb_Abs1 > rtP->r_commDCDeacv) && (rtb_Sum2_h + == rtb_Abs5) && rtDW->n_commDeacv_Mode && (!rtDW->dz_counter_Mode)) { + rtb_Abs5 = rtU->r_DC * rtDW->Merge; rtb_Switch1_idx_1 = rtU->r_DC * rtDW->Merge1; - rtb_Abs5 = rtU->r_DC * rtDW->Merge2; + rtb_Abs1 = rtU->r_DC * rtDW->Merge2; } else { if (rtConstP.vec_hallToPos_Value[rtb_Sum] > 5) { /* LookupNDDirect: '/z_commutMap_M1' @@ -608,10 +605,10 @@ void BLDC_controller_step(RT_MODEL *const rtM) * About '/z_commutMap_M1': * 2-dimensional Direct Look-Up returning a Column */ - rtb_Abs5 = rtb_Sum2_h * 3; - rtb_Switch1_idx_0 = rtU->r_DC * rtConstP.z_commutMap_M1_table[rtb_Abs5]; - rtb_Switch1_idx_1 = rtConstP.z_commutMap_M1_table[1 + rtb_Abs5] * rtU->r_DC; - rtb_Abs5 = rtConstP.z_commutMap_M1_table[2 + rtb_Abs5] * rtU->r_DC; + rtb_Abs1 = rtb_Sum2_h * 3; + rtb_Abs5 = rtU->r_DC * rtConstP.z_commutMap_M1_table[rtb_Abs1]; + rtb_Switch1_idx_1 = rtConstP.z_commutMap_M1_table[1 + rtb_Abs1] * rtU->r_DC; + rtb_Abs1 = rtConstP.z_commutMap_M1_table[2 + rtb_Abs1] * rtU->r_DC; } /* End of Switch: '/Switch1' */ @@ -620,7 +617,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Constant: '/Constant1' * Product: '/Divide1' */ - rtY->DC_phaA = rtb_Switch1_idx_0 / 1000; + rtY->DC_phaA = rtb_Abs5 / 1000; /* Outport: '/DC_phaB' incorporates: * Constant: '/Constant1' @@ -656,7 +653,7 @@ void BLDC_controller_step(RT_MODEL *const rtM) * Constant: '/Constant1' * Product: '/Divide1' */ - rtY->DC_phaC = rtb_Abs5 / 1000; + rtY->DC_phaC = rtb_Abs1 / 1000; /* End of Outputs for SubSystem: '/BLDC_controller' */ diff --git a/Src/BLDC_controller_data.c b/Src/BLDC_controller_data.c index 4c7c1b0..554f815 100644 --- a/Src/BLDC_controller_data.c +++ b/Src/BLDC_controller_data.c @@ -7,9 +7,9 @@ * * Code generated for Simulink model 'BLDC_controller'. * - * Model version : 1.877 + * Model version : 1.879 * Simulink Coder version : 8.13 (R2017b) 24-Jul-2017 - * C/C++ source code generated on : Wed Jun 5 22:29:28 2019 + * C/C++ source code generated on : Thu Jun 6 17:49:29 2019 * * Target selection: ert.tlc * Embedded hardware selection: ARM Compatible->ARM Cortex @@ -94,7 +94,6 @@ const ConstP rtConstP = { { 0, 5, 3, 4, 1, 0, 2, 0 } }; -/* Tunable parameters (auto storage) */ P rtP = { /* Variable: cf_speedCoef * Referenced by: '/cf_spdCoef' diff --git a/Src/main.c b/Src/main.c index abd50cd..cd06f2d 100644 --- a/Src/main.c +++ b/Src/main.c @@ -23,7 +23,6 @@ #include "defines.h" #include "setup.h" #include "config.h" -#include //#include "hd44780.h" // Matlab includes and defines - from auto-code generation @@ -31,8 +30,8 @@ #include "BLDC_controller.h" /* Model's header file */ #include "rtwtypes.h" -static RT_MODEL rtM_Left_; /* Real-time model */ -static RT_MODEL rtM_Right_; /* Real-time model */ +RT_MODEL rtM_Left_; /* Real-time model */ +RT_MODEL rtM_Right_; /* Real-time model */ RT_MODEL *const rtM_Left = &rtM_Left_; RT_MODEL *const rtM_Right = &rtM_Right_; @@ -263,9 +262,11 @@ int main(void) { timeout = 0; #endif + // Bypass - only for testing purposes + // cmd2 = cmd2-500; + // cmd1 = 0; + // ####### LOW-PASS FILTER ####### - cmd2 = cmd2-500; - cmd1 = 0; steer = steer * (1.0 - FILTER) + cmd1 * FILTER; speed = speed * (1.0 - FILTER) + cmd2 * FILTER; diff --git a/build/firmware.bin b/build/firmware.bin index d2a0563..3956f70 100644 Binary files a/build/firmware.bin and b/build/firmware.bin differ diff --git a/build/firmware.elf b/build/firmware.elf index 437d7e7..a821cbb 100644 Binary files a/build/firmware.elf and b/build/firmware.elf differ