static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc25_CusakisME4901InstanceStruct *chartInstance; chartInstance = (SFc25_CusakisME4901InstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _CusakisME4901MachineNumber_, 25, 1, 1, 5, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation(_CusakisME4901MachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_CusakisME4901MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _CusakisME4901MachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"u"); _SFD_SET_DATA_PROPS(1,10,0,0,"mt"); _SFD_SET_DATA_PROPS(2,2,0,1,"a"); _SFD_SET_DATA_PROPS(3,10,0,0,"mb"); _SFD_SET_DATA_PROPS(4,10,0,0,"m"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,162); _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c25_c_sf_marshallOut,(MexInFcnForType)NULL); } _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c25_b_sf_marshallOut,(MexInFcnForType) c25_b_sf_marshallIn); { unsigned int dimVector[1]; dimVector[0]= 6; _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c25_sf_marshallOut,(MexInFcnForType) c25_sf_marshallIn); } _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c25_b_sf_marshallOut,(MexInFcnForType) c25_b_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c25_b_sf_marshallOut,(MexInFcnForType) c25_b_sf_marshallIn); { real_T (*c25_u)[3]; real_T (*c25_a)[6]; c25_a = (real_T (*)[6])ssGetOutputPortSignal(chartInstance->S, 1); c25_u = (real_T (*)[3])ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, *c25_u); _SFD_SET_DATA_VALUE_PTR(1U, &chartInstance->c25_mt); _SFD_SET_DATA_VALUE_PTR(2U, *c25_a); _SFD_SET_DATA_VALUE_PTR(3U, &chartInstance->c25_mb); _SFD_SET_DATA_VALUE_PTR(4U, &chartInstance->c25_m); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _CusakisME4901MachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ if (!sim_mode_is_rtw_gen(S)) { { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_Pedal_Interpretation_exeMachineNumber_, 2, 4, 5, 2, 0, 0, 0, 0, 0, &(chartInstance.chartNumber), &(chartInstance.instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation(_Pedal_Interpretation_exeMachineNumber_, chartInstance.chartNumber); sf_debug_set_chart_disable_implicit_casting (_Pedal_Interpretation_exeMachineNumber_,chartInstance.chartNumber,1); sf_debug_set_chart_event_thresholds (_Pedal_Interpretation_exeMachineNumber_, chartInstance.chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0, "TestCase",0,NULL); _SFD_SET_DATA_PROPS(1,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"variant", 0,NULL); _SFD_STATE_INFO(0,1,0); _SFD_STATE_INFO(1,0,0); _SFD_STATE_INFO(2,0,0); _SFD_STATE_INFO(3,0,0); _SFD_CH_SUBSTATE_COUNT(4); _SFD_CH_SUBSTATE_DECOMP(0); _SFD_CH_SUBSTATE_INDEX(0,0); _SFD_CH_SUBSTATE_INDEX(1,1); _SFD_CH_SUBSTATE_INDEX(2,2); _SFD_CH_SUBSTATE_INDEX(3,3); _SFD_ST_SUBSTATE_COUNT(0,0); _SFD_ST_SUBSTATE_COUNT(1,0); _SFD_ST_SUBSTATE_COUNT(2,0); _SFD_ST_SUBSTATE_COUNT(3,0); } _SFD_CV_INIT_CHART(4,1,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } { _SFD_CV_INIT_STATE(1,0,0,0,0,0,NULL,NULL); } { _SFD_CV_INIT_STATE(2,0,0,0,0,0,NULL,NULL); } { _SFD_CV_INIT_STATE(3,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); { static unsigned int sStartGuardMap[] = { 11, 0 }; static unsigned int sEndGuardMap[] = { 15, 16 }; static int sPostFixPredicateTree[] = { 0, 1, -3 }; _SFD_CV_INIT_TRANS(1,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, &(sPostFixPredicateTree[0])); } { static unsigned int sStartGuardMap[] = { 11, 0 }; static unsigned int sEndGuardMap[] = { 15, 16 }; static int sPostFixPredicateTree[] = { 0, 1, -3 }; _SFD_CV_INIT_TRANS(2,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, &(sPostFixPredicateTree[0])); } { static unsigned int sStartGuardMap[] = { 11, 0 }; static unsigned int sEndGuardMap[] = { 15, 16 }; static int sPostFixPredicateTree[] = { 0, 1, -3 }; _SFD_CV_INIT_TRANS(3,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, &(sPostFixPredicateTree[0])); } { static unsigned int sStartGuardMap[] = { 12, 0 }; static unsigned int sEndGuardMap[] = { 16, 17 }; static int sPostFixPredicateTree[] = { 0, 1, -3 }; _SFD_CV_INIT_TRANS(4,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, &(sPostFixPredicateTree[0])); } _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } _SFD_TRANS_COV_WTS(1,0,2,0,0); if (chartAlreadyPresent==0) { static unsigned int sStartGuardMap[] = { 11, 0 }; static unsigned int sEndGuardMap[] = { 15, 16 }; _SFD_TRANS_COV_MAPS(1, 0,NULL,NULL, 2,&(sStartGuardMap[0]),&(sEndGuardMap[0]), 0,NULL,NULL, 0,NULL,NULL); } _SFD_TRANS_COV_WTS(2,0,2,0,0); if (chartAlreadyPresent==0) { static unsigned int sStartGuardMap[] = { 11, 0 }; static unsigned int sEndGuardMap[] = { 15, 16 }; _SFD_TRANS_COV_MAPS(2, 0,NULL,NULL, 2,&(sStartGuardMap[0]),&(sEndGuardMap[0]), 0,NULL,NULL, 0,NULL,NULL); } _SFD_TRANS_COV_WTS(3,0,2,0,0); if (chartAlreadyPresent==0) { static unsigned int sStartGuardMap[] = { 11, 0 }; static unsigned int sEndGuardMap[] = { 15, 16 }; _SFD_TRANS_COV_MAPS(3, 0,NULL,NULL, 2,&(sStartGuardMap[0]),&(sEndGuardMap[0]), 0,NULL,NULL, 0,NULL,NULL); } _SFD_TRANS_COV_WTS(4,0,2,1,0); if (chartAlreadyPresent==0) { static unsigned int sStartGuardMap[] = { 12, 0 }; static unsigned int sEndGuardMap[] = { 16, 17 }; _SFD_TRANS_COV_MAPS(4, 0,NULL,NULL, 2,&(sStartGuardMap[0]),&(sEndGuardMap[0]), 1,NULL,NULL, 0,NULL,NULL); } { real_T *c2_TestCase; real_T *c2_variant; c2_TestCase = (real_T *)ssGetOutputPortSignal(chartInstance.S, 1); c2_variant = (real_T *)ssGetOutputPortSignal(chartInstance.S, 2); _SFD_SET_DATA_VALUE_PTR(0U, c2_TestCase); _SFD_SET_DATA_VALUE_PTR(1U, c2_variant); } } } } else { sf_debug_reset_current_state_configuration (_Pedal_Interpretation_exeMachineNumber_,chartInstance.chartNumber, chartInstance.instanceNumber); } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc2_ARP_02_RPSsmile_WirelessGlove_RachelInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc2_ARP_02_RPSsmile_WirelessGlove_RachelInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _ARP_02_RPSsmile_WirelessGlove_RachelMachineNumber_, 2, 1, 1, 0, 6, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation (_ARP_02_RPSsmile_WirelessGlove_RachelMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct, _ARP_02_RPSsmile_WirelessGlove_RachelMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _ARP_02_RPSsmile_WirelessGlove_RachelMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"gameStatus"); _SFD_SET_DATA_PROPS(1,1,1,0,"bradHand"); _SFD_SET_DATA_PROPS(2,1,1,0,"userHand"); _SFD_SET_DATA_PROPS(3,1,1,0,"win"); _SFD_SET_DATA_PROPS(4,1,1,0,"bTotal"); _SFD_SET_DATA_PROPS(5,1,1,0,"uTotal"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,268); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c2_gameStatus; real_T *c2_bradHand; real_T *c2_userHand; real_T *c2_win; real_T *c2_bTotal; real_T *c2_uTotal; c2_uTotal = (real_T *)ssGetInputPortSignal(chartInstance->S, 5); c2_bTotal = (real_T *)ssGetInputPortSignal(chartInstance->S, 4); c2_win = (real_T *)ssGetInputPortSignal(chartInstance->S, 3); c2_userHand = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c2_bradHand = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c2_gameStatus = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c2_gameStatus); _SFD_SET_DATA_VALUE_PTR(1U, c2_bradHand); _SFD_SET_DATA_VALUE_PTR(2U, c2_userHand); _SFD_SET_DATA_VALUE_PTR(3U, c2_win); _SFD_SET_DATA_VALUE_PTR(4U, c2_bTotal); _SFD_SET_DATA_VALUE_PTR(5U, c2_uTotal); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _ARP_02_RPSsmile_WirelessGlove_RachelMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S) { if(ssIsFirstInitCond(S)) { /* do this only if simulation is starting */ if(!sim_mode_is_rtw_gen(S)) { { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart(_MPC_frameworkMachineNumber_, 4, 1, 1, 11, 0, 0, 0, 0, &(chartInstance.chartNumber), &(chartInstance.instanceNumber), ssGetPath(S), (void *)S); if(chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting(_MPC_frameworkMachineNumber_,chartInstance.chartNumber,1); sf_debug_set_chart_event_thresholds(_MPC_frameworkMachineNumber_, chartInstance.chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(3,1,1,0,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,"a0",0); _SFD_SET_DATA_PROPS(9,1,1,0,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,"a1",0); _SFD_SET_DATA_PROPS(1,1,1,0,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,"a2",0); _SFD_SET_DATA_PROPS(8,1,1,0,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,"a3",0); _SFD_SET_DATA_PROPS(0,1,1,0,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,"a4",0); _SFD_SET_DATA_PROPS(6,1,1,0,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,"a5",0); _SFD_SET_DATA_PROPS(4,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"t_sim",0); _SFD_SET_DATA_PROPS(2,2,0,1,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,"qa",0); _SFD_SET_DATA_PROPS(10,2,0,1,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,"qap",0); _SFD_SET_DATA_PROPS(7,2,0,1,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,"qapp",0); _SFD_SET_DATA_PROPS(5,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"t_end",0); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of EML Model Coverage */ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,412); _SFD_CV_INIT_EML_IF(0,0,161,178,-1,202); _SFD_TRANS_COV_WTS(0,0,0,1,0); if(chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } _SFD_SET_DATA_VALUE_PTR(3U, c4_a0()); _SFD_SET_DATA_VALUE_PTR(9U, c4_a1()); _SFD_SET_DATA_VALUE_PTR(1U, c4_a2()); _SFD_SET_DATA_VALUE_PTR(8U, c4_a3()); _SFD_SET_DATA_VALUE_PTR(0U, c4_a4()); _SFD_SET_DATA_VALUE_PTR(6U, c4_a5()); _SFD_SET_DATA_VALUE_PTR(4U, c4_t_sim()); _SFD_SET_DATA_VALUE_PTR(2U, c4_qa()); _SFD_SET_DATA_VALUE_PTR(10U, c4_qap()); _SFD_SET_DATA_VALUE_PTR(7U, c4_qapp()); _SFD_SET_DATA_VALUE_PTR(5U, c4_t_end()); } } } else { sf_debug_reset_current_state_configuration(_MPC_frameworkMachineNumber_,chartInstance.chartNumber,chartInstance.instanceNumber); } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc6_motor_control_with_homebrew_SVPWMInstanceStruct *chartInstance; chartInstance = (SFc6_motor_control_with_homebrew_SVPWMInstanceStruct *) ((ChartInfoStruct *)(ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_motor_control_with_homebrew_SVPWMMachineNumber_, 6, 1, 1, 5, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation (_motor_control_with_homebrew_SVPWMMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (_motor_control_with_homebrew_SVPWMMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds (_motor_control_with_homebrew_SVPWMMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"Xd"); _SFD_SET_DATA_PROPS(1,2,0,1,"Xalpha"); _SFD_SET_DATA_PROPS(2,1,1,0,"Xq"); _SFD_SET_DATA_PROPS(3,1,1,0,"theta"); _SFD_SET_DATA_PROPS(4,2,0,1,"Xbeta"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,234); _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c6_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c6_sf_marshallOut,(MexInFcnForType)c6_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c6_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c6_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c6_sf_marshallOut,(MexInFcnForType)c6_sf_marshallIn); { real_T *c6_Xd; real_T *c6_Xalpha; real_T *c6_Xq; real_T *c6_theta; real_T *c6_Xbeta; c6_Xbeta = (real_T *)ssGetOutputPortSignal(chartInstance->S, 2); c6_theta = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c6_Xq = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c6_Xalpha = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c6_Xd = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c6_Xd); _SFD_SET_DATA_VALUE_PTR(1U, c6_Xalpha); _SFD_SET_DATA_VALUE_PTR(2U, c6_Xq); _SFD_SET_DATA_VALUE_PTR(3U, c6_theta); _SFD_SET_DATA_VALUE_PTR(4U, c6_Xbeta); } } } else { sf_debug_reset_current_state_configuration (_motor_control_with_homebrew_SVPWMMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc21_dEMO_EP_IdleRandMerg2InstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc21_dEMO_EP_IdleRandMerg2InstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _dEMO_EP_IdleRandMerg2MachineNumber_, 21, 1, 1, 0, 3, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_dEMO_EP_IdleRandMerg2MachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_dEMO_EP_IdleRandMerg2MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _dEMO_EP_IdleRandMerg2MachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"R"); _SFD_SET_DATA_PROPS(1,1,1,0,"L"); _SFD_SET_DATA_PROPS(2,2,0,1,"y"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,5,4,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"tt_blk_kernel",0,-1,744); _SFD_CV_INIT_EML_FCN(0,1,"aFcnTruthTableAction_1",744,-1,801); _SFD_CV_INIT_EML_FCN(0,2,"aFcnTruthTableAction_2",801,-1,861); _SFD_CV_INIT_EML_FCN(0,3,"aFcnTruthTableAction_3",861,-1,920); _SFD_CV_INIT_EML_FCN(0,4,"aFcnTruthTableAction_4",920,-1,979); _SFD_CV_INIT_EML_IF(0,1,0,438,468,499,742); _SFD_CV_INIT_EML_IF(0,1,1,499,533,564,742); _SFD_CV_INIT_EML_IF(0,1,2,564,598,629,742); _SFD_CV_INIT_EML_IF(0,1,3,629,663,694,742); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c21_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c21_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c21_sf_marshallOut,(MexInFcnForType)c21_sf_marshallIn); { real_T *c21_R; real_T *c21_L; real_T *c21_y; c21_y = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c21_L = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c21_R = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c21_R); _SFD_SET_DATA_VALUE_PTR(1U, c21_L); _SFD_SET_DATA_VALUE_PTR(2U, c21_y); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _dEMO_EP_IdleRandMerg2MachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_adcs_v15_integral_Power_nom_no_charge_in_detumbMachineNumber_, 19, 1, 1, 6, 0, 0, 0, 0, 0, &(chartInstance.chartNumber), &(chartInstance.instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation (_adcs_v15_integral_Power_nom_no_charge_in_detumbMachineNumber_, chartInstance.chartNumber); sf_debug_set_chart_disable_implicit_casting (_adcs_v15_integral_Power_nom_no_charge_in_detumbMachineNumber_, chartInstance.chartNumber,1); sf_debug_set_chart_event_thresholds (_adcs_v15_integral_Power_nom_no_charge_in_detumbMachineNumber_, chartInstance.chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0, "Latitude",0,(MexFcnForType)c19_sf_marshall); _SFD_SET_DATA_PROPS(1,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0, "Longitude",0,(MexFcnForType)c19_sf_marshall); _SFD_SET_DATA_PROPS(2,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0, "Downlink_power",0,(MexFcnForType)c19_sf_marshall); _SFD_SET_DATA_PROPS(3,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0, "flag_downlink",0,(MexFcnForType)c19_sf_marshall); _SFD_SET_DATA_PROPS(4,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0, "flag_france",0,(MexFcnForType)c19_sf_marshall); _SFD_SET_DATA_PROPS(5,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0, "flag_india",0,(MexFcnForType)c19_sf_marshall); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of EML Model Coverage */ _SFD_CV_INIT_EML(0,1,2,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,475); _SFD_CV_INIT_EML_IF(0,0,141,228,272,426); _SFD_CV_INIT_EML_IF(0,1,272,350,395,426); _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } { real_T *c19_Latitude; real_T *c19_Longitude; real_T *c19_Downlink_power; real_T *c19_flag_downlink; real_T *c19_flag_france; real_T *c19_flag_india; c19_flag_france = (real_T *)ssGetOutputPortSignal(chartInstance.S, 3); c19_Longitude = (real_T *)ssGetInputPortSignal(chartInstance.S, 1); c19_flag_downlink = (real_T *)ssGetOutputPortSignal(chartInstance.S, 2); c19_flag_india = (real_T *)ssGetOutputPortSignal(chartInstance.S, 4); c19_Latitude = (real_T *)ssGetInputPortSignal(chartInstance.S, 0); c19_Downlink_power = (real_T *)ssGetOutputPortSignal(chartInstance.S, 1); _SFD_SET_DATA_VALUE_PTR(0U, c19_Latitude); _SFD_SET_DATA_VALUE_PTR(1U, c19_Longitude); _SFD_SET_DATA_VALUE_PTR(2U, c19_Downlink_power); _SFD_SET_DATA_VALUE_PTR(3U, c19_flag_downlink); _SFD_SET_DATA_VALUE_PTR(4U, c19_flag_france); _SFD_SET_DATA_VALUE_PTR(5U, c19_flag_india); } } } else { sf_debug_reset_current_state_configuration (_adcs_v15_integral_Power_nom_no_charge_in_detumbMachineNumber_, chartInstance.chartNumber,chartInstance.instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_adcs_v15_integral_Power_distMachineNumber_, 31, 1, 1, 3, 0, 0, 0, 0, 0, &(chartInstance.chartNumber), &(chartInstance.instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation (_adcs_v15_integral_Power_distMachineNumber_, chartInstance.chartNumber); sf_debug_set_chart_disable_implicit_casting (_adcs_v15_integral_Power_distMachineNumber_, chartInstance.chartNumber,1); sf_debug_set_chart_event_thresholds (_adcs_v15_integral_Power_distMachineNumber_, chartInstance.chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"Vbat",0, (MexFcnForType)c31_sf_marshall); _SFD_SET_DATA_PROPS(1,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"pow",0, (MexFcnForType)c31_sf_marshall); _SFD_SET_DATA_PROPS(2,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0, "pow_drawn",0,(MexFcnForType)c31_sf_marshall); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of EML Model Coverage */ _SFD_CV_INIT_EML(0,1,2,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,254); _SFD_CV_INIT_EML_IF(0,0,134,145,163,188); _SFD_CV_INIT_EML_IF(0,1,190,205,227,254); _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } { real_T *c31_Vbat; real_T *c31_pow; real_T *c31_pow_drawn; c31_pow = (real_T *)ssGetInputPortSignal(chartInstance.S, 1); c31_Vbat = (real_T *)ssGetInputPortSignal(chartInstance.S, 0); c31_pow_drawn = (real_T *)ssGetOutputPortSignal(chartInstance.S, 1); _SFD_SET_DATA_VALUE_PTR(0U, c31_Vbat); _SFD_SET_DATA_VALUE_PTR(1U, c31_pow); _SFD_SET_DATA_VALUE_PTR(2U, c31_pow_drawn); } } } else { sf_debug_reset_current_state_configuration (_adcs_v15_integral_Power_distMachineNumber_,chartInstance.chartNumber, chartInstance.instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S) { if(ssIsFirstInitCond(S)) { /* do this only if simulation is starting */ if(!sim_mode_is_rtw_gen(S)) { { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart(_object_tracker_without_centroidMachineNumber_, 3, 1, 1, 4, 0, 0, 0, 0, &(chartInstance.chartNumber), &(chartInstance.instanceNumber), ssGetPath(S), (void *)S); if(chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting(_object_tracker_without_centroidMachineNumber_,chartInstance.chartNumber,1); sf_debug_set_chart_event_thresholds(_object_tracker_without_centroidMachineNumber_, chartInstance.chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(2,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"CentroidCol",0); { unsigned int dimVector[1]; dimVector[0]= 2; _SFD_SET_DATA_PROPS(3,1,1,0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,1.0,0,"StartCoords",0); } _SFD_SET_DATA_PROPS(0,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"DirectionCode",0); _SFD_SET_DATA_PROPS(1,1,1,0,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,"BlobCount",0); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of EML Model Coverage */ _SFD_CV_INIT_EML(0,1,3,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,421); _SFD_CV_INIT_EML_IF(0,0,175,193,219,410); _SFD_CV_INIT_EML_IF(0,1,219,269,295,410); _SFD_CV_INIT_EML_IF(0,2,295,345,372,410); _SFD_TRANS_COV_WTS(0,0,0,1,0); if(chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } _SFD_SET_DATA_VALUE_PTR(2U, c3_CentroidCol()); _SFD_SET_DATA_VALUE_PTR(3U, c3_StartCoords()); _SFD_SET_DATA_VALUE_PTR(0U, c3_DirectionCode()); _SFD_SET_DATA_VALUE_PTR(1U, c3_BlobCount()); } } } else { sf_debug_reset_current_state_configuration(_object_tracker_without_centroidMachineNumber_,chartInstance.chartNumber,chartInstance.instanceNumber); } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc55_Expriment_AllInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc55_Expriment_AllInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _Expriment_AllMachineNumber_, 55, 1, 1, 0, 2, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_Expriment_AllMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_Expriment_AllMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _Expriment_AllMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,2,0,1,"v2"); _SFD_SET_DATA_PROPS(1,1,1,0,"v1"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,4,2,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"tt_blk_kernel",0,-1,364); _SFD_CV_INIT_EML_FCN(0,1,"aFcnTruthTableAction_1",364,-1,408); _SFD_CV_INIT_EML_FCN(0,2,"aFcnTruthTableAction_2",408,-1,452); _SFD_CV_INIT_EML_FCN(0,3,"aFcnTruthTableAction_3",452,-1,494); _SFD_CV_INIT_EML_IF(0,1,0,188,218,249,362); _SFD_CV_INIT_EML_IF(0,1,1,249,283,314,362); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c55_sf_marshallOut,(MexInFcnForType)c55_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c55_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c55_v2; real_T *c55_v1; c55_v1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); c55_v2 = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); _SFD_SET_DATA_VALUE_PTR(0U, c55_v2); _SFD_SET_DATA_VALUE_PTR(1U, c55_v1); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _Expriment_AllMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc2_LedaInstanceStruct *chartInstance; chartInstance = (SFc2_LedaInstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart(_LedaMachineNumber_, 2, 1, 1, 1, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation(_LedaMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting(_LedaMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_LedaMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"nota"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,3,0,0,1,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,600); _SFD_CV_INIT_EML_IF(0,1,0,98,114,-1,239); _SFD_CV_INIT_EML_IF(0,1,1,301,312,-1,330); _SFD_CV_INIT_EML_IF(0,1,2,331,343,-1,361); _SFD_CV_INIT_EML_FOR(0,1,0,152,165,235); _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_b_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c2_nota; c2_nota = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c2_nota); } } } else { sf_debug_reset_current_state_configuration(_LedaMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc13_Final_Project_v3bInstanceStruct *chartInstance; chartInstance = (SFc13_Final_Project_v3bInstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _Final_Project_v3bMachineNumber_, 13, 1, 1, 9, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation(_Final_Project_v3bMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_Final_Project_v3bMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _Final_Project_v3bMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"u1"); _SFD_SET_DATA_PROPS(1,2,0,1,"y"); _SFD_SET_DATA_PROPS(2,1,1,0,"u2"); _SFD_SET_DATA_PROPS(3,1,1,0,"u3"); _SFD_SET_DATA_PROPS(4,1,1,0,"u4"); _SFD_SET_DATA_PROPS(5,1,1,0,"u5"); _SFD_SET_DATA_PROPS(6,1,1,0,"u6"); _SFD_SET_DATA_PROPS(7,1,1,0,"collision"); _SFD_SET_DATA_PROPS(8,1,1,0,"memory"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,1,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,165); _SFD_CV_INIT_EML_IF(0,1,0,66,81,107,165); _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c13_b_sf_marshallOut,(MexInFcnForType)NULL); { unsigned int dimVector[1]; dimVector[0]= 6; _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c13_sf_marshallOut,(MexInFcnForType) c13_sf_marshallIn); } _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c13_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c13_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c13_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c13_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(6,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c13_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(7,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c13_b_sf_marshallOut,(MexInFcnForType)NULL); { unsigned int dimVector[1]; dimVector[0]= 6; _SFD_SET_DATA_COMPILED_PROPS(8,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c13_sf_marshallOut,(MexInFcnForType)NULL); } { real_T *c13_u1; real_T *c13_u2; real_T *c13_u3; real_T *c13_u4; real_T *c13_u5; real_T *c13_u6; real_T *c13_collision; real_T (*c13_y)[6]; real_T (*c13_memory)[6]; c13_memory = (real_T (*)[6])ssGetInputPortSignal(chartInstance->S, 7); c13_collision = (real_T *)ssGetInputPortSignal(chartInstance->S, 6); c13_u6 = (real_T *)ssGetInputPortSignal(chartInstance->S, 5); c13_u5 = (real_T *)ssGetInputPortSignal(chartInstance->S, 4); c13_u4 = (real_T *)ssGetInputPortSignal(chartInstance->S, 3); c13_u3 = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c13_u2 = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c13_y = (real_T (*)[6])ssGetOutputPortSignal(chartInstance->S, 1); c13_u1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c13_u1); _SFD_SET_DATA_VALUE_PTR(1U, *c13_y); _SFD_SET_DATA_VALUE_PTR(2U, c13_u2); _SFD_SET_DATA_VALUE_PTR(3U, c13_u3); _SFD_SET_DATA_VALUE_PTR(4U, c13_u4); _SFD_SET_DATA_VALUE_PTR(5U, c13_u5); _SFD_SET_DATA_VALUE_PTR(6U, c13_u6); _SFD_SET_DATA_VALUE_PTR(7U, c13_collision); _SFD_SET_DATA_VALUE_PTR(8U, *c13_memory); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _Final_Project_v3bMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc1_TTR_RobustMPC_RTmdlInstanceStruct *chartInstance; chartInstance = (SFc1_TTR_RobustMPC_RTmdlInstanceStruct *) ((ChartInfoStruct *)(ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _TTR_RobustMPC_RTmdlMachineNumber_, 1, 1, 1, 3, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation(_TTR_RobustMPC_RTmdlMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_TTR_RobustMPC_RTmdlMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _TTR_RobustMPC_RTmdlMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"u_ctrl"); _SFD_SET_DATA_PROPS(1,2,0,1,"u_ctrl_out"); _SFD_SET_DATA_PROPS(2,1,1,0,"U_bounds"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,1,0,0,0,1,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,729); _SFD_CV_INIT_EML_IF(0,1,0,333,374,538,724); _SFD_CV_INIT_EML_FOR(0,1,0,568,593,720); _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)c1_sf_marshallIn); { unsigned int dimVector[1]; dimVector[0]= 2; _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL); } { real_T *c1_u_ctrl; real_T *c1_u_ctrl_out; real_T (*c1_U_bounds)[2]; c1_U_bounds = (real_T (*)[2])ssGetInputPortSignal(chartInstance->S, 1); c1_u_ctrl_out = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c1_u_ctrl = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c1_u_ctrl); _SFD_SET_DATA_VALUE_PTR(1U, c1_u_ctrl_out); _SFD_SET_DATA_VALUE_PTR(2U, *c1_U_bounds); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _TTR_RobustMPC_RTmdlMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc40_Demo_GloveInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc40_Demo_GloveInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _Demo_GloveMachineNumber_, 40, 1, 1, 0, 7, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_Demo_GloveMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_Demo_GloveMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _Demo_GloveMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"r1"); _SFD_SET_DATA_PROPS(1,2,0,1,"y"); _SFD_SET_DATA_PROPS(2,1,1,0,"r2"); _SFD_SET_DATA_PROPS(3,1,1,0,"r3"); _SFD_SET_DATA_PROPS(4,1,1,0,"r4"); _SFD_SET_DATA_PROPS(5,1,1,0,"r5"); _SFD_SET_DATA_PROPS(6,1,1,0,"r6"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,184); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c40_b_sf_marshallOut,(MexInFcnForType)NULL); { unsigned int dimVector[2]; dimVector[0]= 1; dimVector[1]= 6; _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c40_sf_marshallOut,(MexInFcnForType) c40_sf_marshallIn); } _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c40_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c40_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c40_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c40_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(6,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c40_b_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c40_r1; real_T *c40_r2; real_T *c40_r3; real_T *c40_r4; real_T *c40_r5; real_T *c40_r6; real_T (*c40_y)[6]; c40_r6 = (real_T *)ssGetInputPortSignal(chartInstance->S, 5); c40_r5 = (real_T *)ssGetInputPortSignal(chartInstance->S, 4); c40_r4 = (real_T *)ssGetInputPortSignal(chartInstance->S, 3); c40_r3 = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c40_r2 = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c40_y = (real_T (*)[6])ssGetOutputPortSignal(chartInstance->S, 1); c40_r1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c40_r1); _SFD_SET_DATA_VALUE_PTR(1U, *c40_y); _SFD_SET_DATA_VALUE_PTR(2U, c40_r2); _SFD_SET_DATA_VALUE_PTR(3U, c40_r3); _SFD_SET_DATA_VALUE_PTR(4U, c40_r4); _SFD_SET_DATA_VALUE_PTR(5U, c40_r5); _SFD_SET_DATA_VALUE_PTR(6U, c40_r6); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _Demo_GloveMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc1_Engine_Vehicle_CVT_RS_System2InstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc1_Engine_Vehicle_CVT_RS_System2InstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _Engine_Vehicle_CVT_RS_System2MachineNumber_, 1, 0, 5, 0, 4, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize its own list of scripts */ init_script_number_translation (_Engine_Vehicle_CVT_RS_System2MachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct, _Engine_Vehicle_CVT_RS_System2MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _Engine_Vehicle_CVT_RS_System2MachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"Engine_RPM"); _SFD_SET_DATA_PROPS(1,1,1,0,"RPM_Clutch_THLD"); _SFD_SET_DATA_PROPS(2,1,1,0,"RPM_Clutch_Hist_THLD"); _SFD_SET_DATA_PROPS(3,2,0,1,"ClutchON"); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(2,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(3,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(1,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(4,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(2,0,0,1,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_IF(2,0,0,1,30,1,30); _SFD_CV_INIT_EML_RELATIONAL(2,0,0,2,30,-1,4); _SFD_CV_INIT_EML(3,0,0,0,0,0,0,0,0,0,0); _SFD_CV_INIT_EML(1,0,0,1,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_IF(1,0,0,1,52,1,48); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)c1_b_sf_marshallIn); _SFD_SET_DATA_VALUE_PTR(0U, chartInstance->c1_Engine_RPM); _SFD_SET_DATA_VALUE_PTR(1U, chartInstance->c1_RPM_Clutch_THLD); _SFD_SET_DATA_VALUE_PTR(2U, chartInstance->c1_RPM_Clutch_Hist_THLD); _SFD_SET_DATA_VALUE_PTR(3U, chartInstance->c1_ClutchON); } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _Engine_Vehicle_CVT_RS_System2MachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc35_Expriment_AllInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc35_Expriment_AllInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _Expriment_AllMachineNumber_, 35, 2, 1, 0, 1, 0, 0, 0, 0, 1, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_Expriment_AllMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_Expriment_AllMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _Expriment_AllMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,8,0,0,""); _SFD_STATE_INFO(1,0,0); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(1); _SFD_CH_SUBSTATE_DECOMP(0); _SFD_CH_SUBSTATE_INDEX(0,1); _SFD_ST_SUBSTATE_COUNT(1,0); } _SFD_CV_INIT_CHART(1,0,0,0); { _SFD_CV_INIT_STATE(1,0,0,0,0,0,NULL,NULL); } { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_SCRIPT(0,1,0,0,0,0,0,0,0,0); _SFD_CV_INIT_SCRIPT_FCN(0,0,"encStr2Arr",0,-1,440); _SFD_CV_INIT_EML(1,1,0,0,0,0,0,0,0,0,0); { unsigned int dimVector[2]; dimVector[0]= 2000; dimVector[1]= 1; _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c35_g_sf_marshallOut,(MexInFcnForType) c35_e_sf_marshallIn); } _SFD_SET_DATA_VALUE_PTR(0,(void *)(NULL)); (void)chartInstance; } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _Expriment_AllMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc1_EVdemo_6InstanceStruct *chartInstance; chartInstance = (SFc1_EVdemo_6InstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _EVdemo_6MachineNumber_, 1, 3, 5, 5, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation(_EVdemo_6MachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_EVdemo_6MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _EVdemo_6MachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,2,0,1,"Mode"); _SFD_SET_DATA_PROPS(1,1,1,0,"spd_err"); _SFD_SET_DATA_PROPS(2,1,1,0,"veh_spd"); _SFD_SET_DATA_PROPS(3,2,0,1,"BrakeSet"); _SFD_SET_DATA_PROPS(4,1,1,0,"spd_ref_rate"); _SFD_STATE_INFO(0,0,0); _SFD_STATE_INFO(1,0,0); _SFD_STATE_INFO(2,0,0); _SFD_CH_SUBSTATE_COUNT(3); _SFD_CH_SUBSTATE_DECOMP(0); _SFD_CH_SUBSTATE_INDEX(0,0); _SFD_CH_SUBSTATE_INDEX(1,1); _SFD_CH_SUBSTATE_INDEX(2,2); _SFD_ST_SUBSTATE_COUNT(0,0); _SFD_ST_SUBSTATE_COUNT(1,0); _SFD_ST_SUBSTATE_COUNT(2,0); } _SFD_CV_INIT_CHART(3,1,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } { _SFD_CV_INIT_STATE(1,0,0,0,0,0,NULL,NULL); } { _SFD_CV_INIT_STATE(2,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); { static unsigned int sStartGuardMap[] = { 1 }; static unsigned int sEndGuardMap[] = { 13 }; static int sPostFixPredicateTree[] = { 0 }; _SFD_CV_INIT_TRANS(2,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, &(sPostFixPredicateTree[0])); } { static unsigned int sStartGuardMap[] = { 2 }; static unsigned int sEndGuardMap[] = { 13 }; static int sPostFixPredicateTree[] = { 0 }; _SFD_CV_INIT_TRANS(1,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, &(sPostFixPredicateTree[0])); } { static unsigned int sStartGuardMap[] = { 2, 20, 38 }; static unsigned int sEndGuardMap[] = { 15, 34, 53 }; static int sPostFixPredicateTree[] = { 0, 1, -3, 2, -3 }; _SFD_CV_INIT_TRANS(4,3,&(sStartGuardMap[0]),&(sEndGuardMap[0]),5, &(sPostFixPredicateTree[0])); } { static unsigned int sStartGuardMap[] = { 2, 20, 38 }; static unsigned int sEndGuardMap[] = { 14, 34, 53 }; static int sPostFixPredicateTree[] = { 0, 1, -3, 2, -3 }; _SFD_CV_INIT_TRANS(3,3,&(sStartGuardMap[0]),&(sEndGuardMap[0]),5, &(sPostFixPredicateTree[0])); } _SFD_SET_DATA_COMPILED_PROPS(0,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)c1_b_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(1,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_c_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(2,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_c_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_d_sf_marshallOut,(MexInFcnForType)c1_c_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(4,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_c_sf_marshallOut,(MexInFcnForType)NULL); { uint8_T *c1_Mode; real32_T *c1_spd_err; real32_T *c1_veh_spd; boolean_T *c1_BrakeSet; real32_T *c1_spd_ref_rate; c1_spd_ref_rate = (real32_T *)ssGetInputPortSignal(chartInstance->S, 2); c1_BrakeSet = (boolean_T *)ssGetOutputPortSignal(chartInstance->S, 2); c1_veh_spd = (real32_T *)ssGetInputPortSignal(chartInstance->S, 1); c1_spd_err = (real32_T *)ssGetInputPortSignal(chartInstance->S, 0); c1_Mode = (uint8_T *)ssGetOutputPortSignal(chartInstance->S, 1); _SFD_SET_DATA_VALUE_PTR(0U, c1_Mode); _SFD_SET_DATA_VALUE_PTR(1U, c1_spd_err); _SFD_SET_DATA_VALUE_PTR(2U, c1_veh_spd); _SFD_SET_DATA_VALUE_PTR(3U, c1_BrakeSet); _SFD_SET_DATA_VALUE_PTR(4U, c1_spd_ref_rate); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _EVdemo_6MachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_adcs_v15_integral_Power_no_charge_in_detumbMachineNumber_, 7, 1, 1, 2, 0, 0, 0, 0, 0, &(chartInstance.chartNumber), &(chartInstance.instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation (_adcs_v15_integral_Power_no_charge_in_detumbMachineNumber_, chartInstance.chartNumber); sf_debug_set_chart_disable_implicit_casting (_adcs_v15_integral_Power_no_charge_in_detumbMachineNumber_, chartInstance.chartNumber,1); sf_debug_set_chart_event_thresholds (_adcs_v15_integral_Power_no_charge_in_detumbMachineNumber_, chartInstance.chartNumber, 0, 0, 0); { unsigned int dimVector[1]; dimVector[0]= 7; _SFD_SET_DATA_PROPS(0,1,1,0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,"x",0,(MexFcnForType)c7_sf_marshall); } { unsigned int dimVector[1]; dimVector[0]= 7; _SFD_SET_DATA_PROPS(1,2,0,1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,"xN",0,(MexFcnForType)c7_sf_marshall); } _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of EML Model Coverage */ _SFD_CV_INIT_EML(0,1,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,181); _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } { real_T (*c7_x)[7]; real_T (*c7_xN)[7]; c7_x = (real_T (*)[7])ssGetInputPortSignal(chartInstance.S, 0); c7_xN = (real_T (*)[7])ssGetOutputPortSignal(chartInstance.S, 1); _SFD_SET_DATA_VALUE_PTR(0U, c7_x); _SFD_SET_DATA_VALUE_PTR(1U, c7_xN); } } } else { sf_debug_reset_current_state_configuration (_adcs_v15_integral_Power_no_charge_in_detumbMachineNumber_, chartInstance.chartNumber,chartInstance.instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc7_hybridSysSimInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc7_hybridSysSimInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _hybridSysSimMachineNumber_, 7, 1, 1, 0, 4, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize its own list of scripts */ init_script_number_translation(_hybridSysSimMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_hybridSysSimMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _hybridSysSimMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"m"); _SFD_SET_DATA_PROPS(1,2,0,1,"fky"); _SFD_SET_DATA_PROPS(2,1,1,0,"g"); _SFD_SET_DATA_PROPS(3,1,1,0,"uk"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,56); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c7_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c7_sf_marshallOut,(MexInFcnForType)c7_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c7_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c7_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_VALUE_PTR(0U, chartInstance->c7_m); _SFD_SET_DATA_VALUE_PTR(1U, chartInstance->c7_fky); _SFD_SET_DATA_VALUE_PTR(2U, chartInstance->c7_g); _SFD_SET_DATA_VALUE_PTR(3U, chartInstance->c7_uk); } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _hybridSysSimMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc41_Expriment_FacialExprInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc41_Expriment_FacialExprInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _Expriment_FacialExprMachineNumber_, 41, 1, 1, 0, 3, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_Expriment_FacialExprMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_Expriment_FacialExprMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _Expriment_FacialExprMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"V"); _SFD_SET_DATA_PROPS(1,2,0,1,"e"); _SFD_SET_DATA_PROPS(2,1,1,0,"A"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,9,8,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"tt_blk_kernel",0,-1,1488); _SFD_CV_INIT_EML_FCN(0,1,"aFcnTruthTableAction_1",1488,-1,1538); _SFD_CV_INIT_EML_FCN(0,2,"aFcnTruthTableAction_2",1538,-1,1590); _SFD_CV_INIT_EML_FCN(0,3,"aFcnTruthTableAction_3",1590,-1,1639); _SFD_CV_INIT_EML_FCN(0,4,"aFcnTruthTableAction_4",1639,-1,1695); _SFD_CV_INIT_EML_FCN(0,5,"aFcnTruthTableAction_5",1695,-1,1744); _SFD_CV_INIT_EML_FCN(0,6,"aFcnTruthTableAction_6",1744,-1,1797); _SFD_CV_INIT_EML_FCN(0,7,"aFcnTruthTableAction_7",1797,-1,1847); _SFD_CV_INIT_EML_FCN(0,8,"aFcnTruthTableAction_8",1847,-1,1894); _SFD_CV_INIT_EML_IF(0,1,0,922,952,983,1486); _SFD_CV_INIT_EML_IF(0,1,1,983,1017,1048,1486); _SFD_CV_INIT_EML_IF(0,1,2,1048,1082,1113,1486); _SFD_CV_INIT_EML_IF(0,1,3,1113,1147,1178,1486); _SFD_CV_INIT_EML_IF(0,1,4,1178,1212,1243,1486); _SFD_CV_INIT_EML_IF(0,1,5,1243,1277,1308,1486); _SFD_CV_INIT_EML_IF(0,1,6,1308,1342,1373,1486); _SFD_CV_INIT_EML_IF(0,1,7,1373,1407,1438,1486); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c41_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c41_sf_marshallOut,(MexInFcnForType)c41_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c41_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c41_V; real_T *c41_e; real_T *c41_A; c41_A = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c41_e = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c41_V = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c41_V); _SFD_SET_DATA_VALUE_PTR(1U, c41_e); _SFD_SET_DATA_VALUE_PTR(2U, c41_A); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _Expriment_FacialExprMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc9_testing_control_with_estimateInstanceStruct *chartInstance; chartInstance = (SFc9_testing_control_with_estimateInstanceStruct *) ((ChartInfoStruct *)(ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_testing_control_with_estimateMachineNumber_, 9, 1, 1, 7, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation (_testing_control_with_estimateMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (_testing_control_with_estimateMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds (_testing_control_with_estimateMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"s1"); _SFD_SET_DATA_PROPS(1,2,0,1,"Va"); _SFD_SET_DATA_PROPS(2,1,1,0,"dc1"); _SFD_SET_DATA_PROPS(3,1,1,0,"s2"); _SFD_SET_DATA_PROPS(4,1,1,0,"dc2"); _SFD_SET_DATA_PROPS(5,2,0,1,"Vb"); _SFD_SET_DATA_PROPS(6,2,0,1,"Vc"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,6,0,1,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,1286); _SFD_CV_INIT_EML_IF(0,1,0,491,500,541,591); _SFD_CV_INIT_EML_IF(0,1,1,611,620,663,713); _SFD_CV_INIT_EML_IF(0,1,2,733,742,785,835); _SFD_CV_INIT_EML_IF(0,1,3,855,866,909,958); _SFD_CV_INIT_EML_IF(0,1,4,978,987,1030,1079); _SFD_CV_INIT_EML_IF(0,1,5,1108,1117,1160,1209); { static int caseStart[] = { 1214, 476, 596, 718, 840, 963, 1084 }; static int caseExprEnd[] = { 1223, 482, 602, 724, 846, 969, 1090 }; _SFD_CV_INIT_EML_SWITCH(0,1,0,456,466,1236,7,&(caseStart[0]), &(caseExprEnd[0])); } _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)c9_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)c9_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(6,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)c9_sf_marshallIn); { real_T *c9_s1; real_T *c9_Va; real_T *c9_dc1; real_T *c9_s2; real_T *c9_dc2; real_T *c9_Vb; real_T *c9_Vc; c9_Vc = (real_T *)ssGetOutputPortSignal(chartInstance->S, 3); c9_Vb = (real_T *)ssGetOutputPortSignal(chartInstance->S, 2); c9_dc2 = (real_T *)ssGetInputPortSignal(chartInstance->S, 3); c9_s2 = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c9_dc1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c9_Va = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c9_s1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c9_s1); _SFD_SET_DATA_VALUE_PTR(1U, c9_Va); _SFD_SET_DATA_VALUE_PTR(2U, c9_dc1); _SFD_SET_DATA_VALUE_PTR(3U, c9_s2); _SFD_SET_DATA_VALUE_PTR(4U, c9_dc2); _SFD_SET_DATA_VALUE_PTR(5U, c9_Vb); _SFD_SET_DATA_VALUE_PTR(6U, c9_Vc); } } } else { sf_debug_reset_current_state_configuration (_testing_control_with_estimateMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc13_EP_IdleRand_KInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc13_EP_IdleRand_KInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _EP_IdleRand_KMachineNumber_, 13, 1, 1, 0, 2, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_EP_IdleRand_KMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_EP_IdleRand_KMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _EP_IdleRand_KMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"win"); _SFD_SET_DATA_PROPS(1,2,0,1,"sat"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,2,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,304); _SFD_CV_INIT_EML_IF(0,1,0,167,177,221,304); _SFD_CV_INIT_EML_IF(0,1,1,221,235,285,304); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c13_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c13_sf_marshallOut,(MexInFcnForType)c13_sf_marshallIn); { real_T *c13_win; real_T *c13_sat; c13_sat = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c13_win = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c13_win); _SFD_SET_DATA_VALUE_PTR(1U, c13_sat); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _EP_IdleRand_KMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc37_Demo_EP_IdleRandMergInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc37_Demo_EP_IdleRandMergInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _Demo_EP_IdleRandMergMachineNumber_, 37, 1, 1, 0, 3, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_Demo_EP_IdleRandMergMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_Demo_EP_IdleRandMergMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _Demo_EP_IdleRandMergMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"extrovert"); _SFD_SET_DATA_PROPS(1,2,0,1,"personality"); _SFD_SET_DATA_PROPS(2,1,1,0,"neurotic"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,3,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,310); _SFD_CV_INIT_EML_IF(0,1,0,87,103,205,310); _SFD_CV_INIT_EML_IF(0,1,1,108,123,161,204); _SFD_CV_INIT_EML_IF(0,1,2,214,229,264,306); _SFD_SET_DATA_COMPILED_PROPS(0,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c37_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c37_sf_marshallOut,(MexInFcnForType)c37_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c37_b_sf_marshallOut,(MexInFcnForType)NULL); { boolean_T *c37_extrovert; real_T *c37_personality; boolean_T *c37_neurotic; c37_neurotic = (boolean_T *)ssGetInputPortSignal(chartInstance->S, 1); c37_personality = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c37_extrovert = (boolean_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c37_extrovert); _SFD_SET_DATA_VALUE_PTR(1U, c37_personality); _SFD_SET_DATA_VALUE_PTR(2U, c37_neurotic); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _Demo_EP_IdleRandMergMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc1_modelInstanceStruct *chartInstance; chartInstance = (SFc1_modelInstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _modelMachineNumber_, 1, 1, 1, 2, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation(_modelMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_modelMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _modelMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"u"); _SFD_SET_DATA_PROPS(1,2,0,1,"y"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,42); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)c1_sf_marshallIn); { real_T *c1_u; real_T *c1_y; c1_y = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c1_u = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c1_u); _SFD_SET_DATA_VALUE_PTR(1U, c1_y); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _modelMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc57_heart_modelInstanceStruct *chartInstance; chartInstance = (SFc57_heart_modelInstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_heart_modelMachineNumber_, 57, 1, 4, 1, 3, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation(_heart_modelMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting(_heart_modelMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_heart_modelMachineNumber_, chartInstance->chartNumber, 3, 3, 3); _SFD_SET_DATA_PROPS(0,1,1,0,"v"); _SFD_EVENT_SCOPE(0,2); _SFD_EVENT_SCOPE(1,2); _SFD_EVENT_SCOPE(2,2); _SFD_STATE_INFO(0,0,0); _SFD_CH_SUBSTATE_COUNT(1); _SFD_CH_SUBSTATE_DECOMP(0); _SFD_CH_SUBSTATE_INDEX(0,0); _SFD_ST_SUBSTATE_COUNT(0,0); } _SFD_CV_INIT_CHART(1,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); { static unsigned int sStartGuardMap[] = { 1 }; static unsigned int sEndGuardMap[] = { 7 }; static int sPostFixPredicateTree[] = { 0 }; _SFD_CV_INIT_TRANS(3,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, &(sPostFixPredicateTree[0])); } { static unsigned int sStartGuardMap[] = { 1 }; static unsigned int sEndGuardMap[] = { 5 }; static int sPostFixPredicateTree[] = { 0 }; _SFD_CV_INIT_TRANS(1,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, &(sPostFixPredicateTree[0])); } { static unsigned int sStartGuardMap[] = { 1, 8 }; static unsigned int sEndGuardMap[] = { 6, 13 }; static int sPostFixPredicateTree[] = { 0, 1, -3 }; _SFD_CV_INIT_TRANS(2,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3, &(sPostFixPredicateTree[0])); } _SFD_TRANS_COV_WTS(0,0,0,0,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 0,NULL,NULL, 0,NULL,NULL); } _SFD_TRANS_COV_WTS(3,0,1,0,1); if (chartAlreadyPresent==0) { static unsigned int sStartGuardMap[] = { 1 }; static unsigned int sEndGuardMap[] = { 7 }; _SFD_TRANS_COV_MAPS(3, 0,NULL,NULL, 1,&(sStartGuardMap[0]),&(sEndGuardMap[0]), 0,NULL,NULL, 1,NULL,NULL); } _SFD_TRANS_COV_WTS(1,0,1,0,1); if (chartAlreadyPresent==0) { static unsigned int sStartGuardMap[] = { 1 }; static unsigned int sEndGuardMap[] = { 5 }; _SFD_TRANS_COV_MAPS(1, 0,NULL,NULL, 1,&(sStartGuardMap[0]),&(sEndGuardMap[0]), 0,NULL,NULL, 1,NULL,NULL); } _SFD_TRANS_COV_WTS(2,0,2,0,1); if (chartAlreadyPresent==0) { static unsigned int sStartGuardMap[] = { 1, 8 }; static unsigned int sEndGuardMap[] = { 6, 13 }; _SFD_TRANS_COV_MAPS(2, 0,NULL,NULL, 2,&(sStartGuardMap[0]),&(sEndGuardMap[0]), 0,NULL,NULL, 1,NULL,NULL); } _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c57_d_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c57_v; c57_v = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c57_v); } } } else { sf_debug_reset_current_state_configuration(_heart_modelMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc26_CSE1_DPInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc26_CSE1_DPInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _CSE1_DPMachineNumber_, 26, 1, 1, 0, 2, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_CSE1_DPMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_CSE1_DPMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _CSE1_DPMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,2,0,1,"K_d"); _SFD_SET_DATA_PROPS(1,1,1,0,"K_d1"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,53); { unsigned int dimVector[2]; dimVector[0]= 3; dimVector[1]= 3; _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c26_sf_marshallOut,(MexInFcnForType) c26_sf_marshallIn); } { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c26_b_sf_marshallOut,(MexInFcnForType)NULL); } { real_T (*c26_K_d)[9]; real_T (*c26_K_d1)[3]; c26_K_d1 = (real_T (*)[3])ssGetInputPortSignal(chartInstance->S, 0); c26_K_d = (real_T (*)[9])ssGetOutputPortSignal(chartInstance->S, 1); _SFD_SET_DATA_VALUE_PTR(0U, *c26_K_d); _SFD_SET_DATA_VALUE_PTR(1U, *c26_K_d1); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _CSE1_DPMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc16_ekffedeInstanceStruct *chartInstance; chartInstance = (SFc16_ekffedeInstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart(_ekffedeMachineNumber_, 16, 1, 1, 3, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation(_ekffedeMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting(_ekffedeMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_ekffedeMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"gyro"); _SFD_SET_DATA_PROPS(1,2,0,1,"quat_dot"); _SFD_SET_DATA_PROPS(2,1,1,0,"quat"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,271); _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c16_b_sf_marshallOut,(MexInFcnForType)NULL); } { unsigned int dimVector[1]; dimVector[0]= 4; _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c16_sf_marshallOut,(MexInFcnForType) c16_sf_marshallIn); } { unsigned int dimVector[1]; dimVector[0]= 4; _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c16_sf_marshallOut,(MexInFcnForType)NULL); } { real_T (*c16_gyro)[3]; real_T (*c16_quat_dot)[4]; real_T (*c16_quat)[4]; c16_quat = (real_T (*)[4])ssGetInputPortSignal(chartInstance->S, 1); c16_quat_dot = (real_T (*)[4])ssGetOutputPortSignal(chartInstance->S, 1); c16_gyro = (real_T (*)[3])ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, *c16_gyro); _SFD_SET_DATA_VALUE_PTR(1U, *c16_quat_dot); _SFD_SET_DATA_VALUE_PTR(2U, *c16_quat); } } } else { sf_debug_reset_current_state_configuration(_ekffedeMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc7_NMPC_ControllerInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc7_NMPC_ControllerInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _NMPC_ControllerMachineNumber_, 7, 1, 1, 0, 2, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize its own list of scripts */ init_script_number_translation(_NMPC_ControllerMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_NMPC_ControllerMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _NMPC_ControllerMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"u"); _SFD_SET_DATA_PROPS(1,2,0,1,"y"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,4,0,0,0,0,0,8,4); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,395); _SFD_CV_INIT_EML_IF(0,1,0,145,164,196,219); _SFD_CV_INIT_EML_IF(0,1,1,196,219,253,369); _SFD_CV_INIT_EML_IF(0,1,2,253,276,311,369); _SFD_CV_INIT_EML_IF(0,1,3,311,334,-1,334); { static int condStart[] = { 148, 158 }; static int condEnd[] = { 154, 164 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,0,148,164,2,0,&(condStart[0]),&(condEnd[0]), 3,&(pfixExpr[0])); } { static int condStart[] = { 203, 213 }; static int condEnd[] = { 209, 219 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,1,203,219,2,2,&(condStart[0]),&(condEnd[0]), 3,&(pfixExpr[0])); } { static int condStart[] = { 260, 270 }; static int condEnd[] = { 266, 276 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,2,260,276,2,4,&(condStart[0]),&(condEnd[0]), 3,&(pfixExpr[0])); } { static int condStart[] = { 318, 328 }; static int condEnd[] = { 324, 334 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,3,318,334,2,6,&(condStart[0]),&(condEnd[0]), 3,&(pfixExpr[0])); } _SFD_CV_INIT_EML_RELATIONAL(0,1,0,148,154,-1,4); _SFD_CV_INIT_EML_RELATIONAL(0,1,1,158,164,-1,4); _SFD_CV_INIT_EML_RELATIONAL(0,1,2,203,209,-1,4); _SFD_CV_INIT_EML_RELATIONAL(0,1,3,213,219,-1,2); _SFD_CV_INIT_EML_RELATIONAL(0,1,4,260,266,-1,2); _SFD_CV_INIT_EML_RELATIONAL(0,1,5,270,276,-1,2); _SFD_CV_INIT_EML_RELATIONAL(0,1,6,318,324,-1,2); _SFD_CV_INIT_EML_RELATIONAL(0,1,7,328,334,-1,4); { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c7_b_sf_marshallOut,(MexInFcnForType)NULL); } _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c7_sf_marshallOut,(MexInFcnForType)c7_sf_marshallIn); _SFD_SET_DATA_VALUE_PTR(0U, *chartInstance->c7_u); _SFD_SET_DATA_VALUE_PTR(1U, chartInstance->c7_y); } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _NMPC_ControllerMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc5_testYarpReadSHOREInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc5_testYarpReadSHOREInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _testYarpReadSHOREMachineNumber_, 5, 1, 1, 0, 4, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_testYarpReadSHOREMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_testYarpReadSHOREMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _testYarpReadSHOREMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"nextX"); _SFD_SET_DATA_PROPS(1,1,1,0,"currentX"); _SFD_SET_DATA_PROPS(2,2,0,1,"y"); _SFD_SET_DATA_PROPS(3,1,1,0,"oldX"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,4,0,0,0,0,0,2,1); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,428); _SFD_CV_INIT_EML_IF(0,1,0,241,252,264,282); _SFD_CV_INIT_EML_IF(0,1,1,283,297,309,327); _SFD_CV_INIT_EML_IF(0,1,2,328,338,349,367); _SFD_CV_INIT_EML_IF(0,1,3,369,389,-1,414); { static int condStart[] = { 372, 382 }; static int condEnd[] = { 378, 388 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,0,371,389,2,0,&(condStart[0]),&(condEnd[0]), 3,&(pfixExpr[0])); } _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c5_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c5_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c5_sf_marshallOut,(MexInFcnForType)c5_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c5_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c5_nextX; real_T *c5_currentX; real_T *c5_y; real_T *c5_oldX; c5_oldX = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c5_y = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c5_currentX = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c5_nextX = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c5_nextX); _SFD_SET_DATA_VALUE_PTR(1U, c5_currentX); _SFD_SET_DATA_VALUE_PTR(2U, c5_y); _SFD_SET_DATA_VALUE_PTR(3U, c5_oldX); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _testYarpReadSHOREMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }