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_PowerMachineNumber_, 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_PowerMachineNumber_, chartInstance.chartNumber); sf_debug_set_chart_disable_implicit_casting (_adcs_v15_integral_PowerMachineNumber_,chartInstance.chartNumber,1); sf_debug_set_chart_event_thresholds (_adcs_v15_integral_PowerMachineNumber_, 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_downlink = (real_T *)ssGetOutputPortSignal(chartInstance.S, 2); c19_Longitude = (real_T *)ssGetInputPortSignal(chartInstance.S, 1); c19_Downlink_power = (real_T *)ssGetOutputPortSignal(chartInstance.S, 1); c19_flag_india = (real_T *)ssGetOutputPortSignal(chartInstance.S, 4); c19_Latitude = (real_T *)ssGetInputPortSignal(chartInstance.S, 0); c19_flag_france = (real_T *)ssGetOutputPortSignal(chartInstance.S, 3); _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_PowerMachineNumber_,chartInstance.chartNumber, chartInstance.instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc51_Expriment_EmotionInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc51_Expriment_EmotionInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _Expriment_EmotionMachineNumber_, 51, 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_EmotionMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_Expriment_EmotionMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _Expriment_EmotionMachineNumber_, 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)c51_sf_marshallOut,(MexInFcnForType)c51_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c51_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c51_v2; real_T *c51_v1; c51_v1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); c51_v2 = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); _SFD_SET_DATA_VALUE_PTR(0U, c51_v2); _SFD_SET_DATA_VALUE_PTR(1U, c51_v1); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _Expriment_EmotionMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc24_ArregloSeisPorSeisInstanceStruct *chartInstance; chartInstance = (SFc24_ArregloSeisPorSeisInstanceStruct *) ((ChartInfoStruct *)(ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_ArregloSeisPorSeisMachineNumber_, 24, 1, 1, 4, 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(_ArregloSeisPorSeisMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (_ArregloSeisPorSeisMachineNumber_,chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_ArregloSeisPorSeisMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"V"); _SFD_SET_DATA_PROPS(1,2,0,1,"I"); _SFD_SET_DATA_PROPS(2,1,1,0,"Radiacion"); _SFD_SET_DATA_PROPS(3,1,1,0,"Temp"); _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,1,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,947); _SFD_CV_INIT_EML_FOR(0,1,0,777,788,942); _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)c24_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c24_sf_marshallOut,(MexInFcnForType)c24_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c24_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c24_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c24_V; real_T *c24_I; real_T *c24_Radiacion; real_T *c24_Temp; c24_Temp = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c24_Radiacion = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c24_I = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c24_V = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c24_V); _SFD_SET_DATA_VALUE_PTR(1U, c24_I); _SFD_SET_DATA_VALUE_PTR(2U, c24_Radiacion); _SFD_SET_DATA_VALUE_PTR(3U, c24_Temp); } } } else { sf_debug_reset_current_state_configuration (_ArregloSeisPorSeisMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc6_TTR_mdlInstanceStruct *chartInstance; chartInstance = (SFc6_TTR_mdlInstanceStruct *) ((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_mdlMachineNumber_, 6, 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_mdlMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_TTR_mdlMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _TTR_mdlMachineNumber_, 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)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); { 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)c6_b_sf_marshallOut,(MexInFcnForType)NULL); } { real_T *c6_u_ctrl; real_T *c6_u_ctrl_out; real_T (*c6_U_bounds)[2]; c6_U_bounds = (real_T (*)[2])ssGetInputPortSignal(chartInstance->S, 1); c6_u_ctrl_out = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c6_u_ctrl = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c6_u_ctrl); _SFD_SET_DATA_VALUE_PTR(1U, c6_u_ctrl_out); _SFD_SET_DATA_VALUE_PTR(2U, *c6_U_bounds); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _TTR_mdlMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc16_Final_Project_v3bInstanceStruct *chartInstance; chartInstance = (SFc16_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_, 16, 1, 1, 8, 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,2,0,1,"R"); _SFD_SET_DATA_PROPS(3,1,1,0,"u2"); _SFD_SET_DATA_PROPS(4,1,1,0,"u3"); _SFD_SET_DATA_PROPS(5,1,1,0,"u4"); _SFD_SET_DATA_PROPS(6,1,1,0,"u5"); _SFD_SET_DATA_PROPS(7,1,1,0,"u6"); _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,196); _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)c16_c_sf_marshallOut,(MexInFcnForType)NULL); { unsigned int dimVector[2]; dimVector[0]= 9; dimVector[1]= 1; _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c16_b_sf_marshallOut,(MexInFcnForType) c16_b_sf_marshallIn); } { unsigned int dimVector[2]; dimVector[0]= 2; dimVector[1]= 2; _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c16_sf_marshallOut,(MexInFcnForType) c16_sf_marshallIn); } _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c16_c_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c16_c_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c16_c_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(6,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c16_c_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(7,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c16_c_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c16_u1; real_T *c16_u2; real_T *c16_u3; real_T *c16_u4; real_T *c16_u5; real_T *c16_u6; real_T (*c16_y)[9]; real_T (*c16_R)[4]; c16_u6 = (real_T *)ssGetInputPortSignal(chartInstance->S, 5); c16_u5 = (real_T *)ssGetInputPortSignal(chartInstance->S, 4); c16_u4 = (real_T *)ssGetInputPortSignal(chartInstance->S, 3); c16_u3 = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c16_u2 = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c16_R = (real_T (*)[4])ssGetOutputPortSignal(chartInstance->S, 2); c16_y = (real_T (*)[9])ssGetOutputPortSignal(chartInstance->S, 1); c16_u1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c16_u1); _SFD_SET_DATA_VALUE_PTR(1U, *c16_y); _SFD_SET_DATA_VALUE_PTR(2U, *c16_R); _SFD_SET_DATA_VALUE_PTR(3U, c16_u2); _SFD_SET_DATA_VALUE_PTR(4U, c16_u3); _SFD_SET_DATA_VALUE_PTR(5U, c16_u4); _SFD_SET_DATA_VALUE_PTR(6U, c16_u5); _SFD_SET_DATA_VALUE_PTR(7U, c16_u6); } } } 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)) { SFc13_ARP_02_RPSs_Bdr_GK_BIS7InstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc13_ARP_02_RPSs_Bdr_GK_BIS7InstanceStruct *) 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_RPSs_Bdr_GK_BIS7MachineNumber_, 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(_ARP_02_RPSs_Bdr_GK_BIS7MachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_ARP_02_RPSs_Bdr_GK_BIS7MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _ARP_02_RPSs_Bdr_GK_BIS7MachineNumber_, 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, _ARP_02_RPSs_Bdr_GK_BIS7MachineNumber_,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_, 2, 1, 1, 9, 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(1,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"x",0); _SFD_SET_DATA_PROPS(8,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"y",0); _SFD_SET_DATA_PROPS(3,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"al1_c",0); _SFD_SET_DATA_PROPS(4,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"al2_c",0); _SFD_SET_DATA_PROPS(5,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"a1",0); _SFD_SET_DATA_PROPS(2,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"a2",0); _SFD_SET_DATA_PROPS(0,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"al1",0); _SFD_SET_DATA_PROPS(7,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"al2",0); _SFD_SET_DATA_PROPS(6,2,0,1,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,"error",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,2,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,1304); _SFD_CV_INIT_EML_IF(0,0,98,140,1126,1271); _SFD_CV_INIT_EML_IF(0,1,1126,1170,1217,1271); _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(1U, c2_x()); _SFD_SET_DATA_VALUE_PTR(8U, c2_y()); _SFD_SET_DATA_VALUE_PTR(3U, c2_al1_c()); _SFD_SET_DATA_VALUE_PTR(4U, c2_al2_c()); _SFD_SET_DATA_VALUE_PTR(5U, c2_a1()); _SFD_SET_DATA_VALUE_PTR(2U, c2_a2()); _SFD_SET_DATA_VALUE_PTR(0U, c2_al1()); _SFD_SET_DATA_VALUE_PTR(7U, c2_al2()); _SFD_SET_DATA_VALUE_PTR(6U, c2_error()); } } } 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)) { SFc1_QmodInstanceStruct *chartInstance; chartInstance = (SFc1_QmodInstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart(_QmodMachineNumber_, 1, 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(_QmodMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting(_QmodMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_QmodMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"T"); _SFD_SET_DATA_PROPS(1,1,1,0,"k"); _SFD_SET_DATA_PROPS(2,1,1,0,"m"); _SFD_SET_DATA_PROPS(3,1,1,0,"g"); _SFD_SET_DATA_PROPS(4,2,0,1,"y"); _SFD_SET_DATA_PROPS(5,1,1,0,"R"); _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,144); _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]= 4; _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c1_d_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_c_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_c_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_c_sf_marshallOut,(MexInFcnForType)NULL); { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c1_sf_marshallOut,(MexInFcnForType) c1_sf_marshallIn); } { unsigned int dimVector[2]; dimVector[0]= 3; dimVector[1]= 3; _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL); } { real_T *c1_k; real_T *c1_m; real_T *c1_g; real_T (*c1_T)[4]; real_T (*c1_y)[3]; real_T (*c1_R)[9]; c1_R = (real_T (*)[9])ssGetInputPortSignal(chartInstance->S, 4); c1_y = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 1); c1_g = (real_T *)ssGetInputPortSignal(chartInstance->S, 3); c1_m = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c1_k = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c1_T = (real_T (*)[4])ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, *c1_T); _SFD_SET_DATA_VALUE_PTR(1U, c1_k); _SFD_SET_DATA_VALUE_PTR(2U, c1_m); _SFD_SET_DATA_VALUE_PTR(3U, c1_g); _SFD_SET_DATA_VALUE_PTR(4U, *c1_y); _SFD_SET_DATA_VALUE_PTR(5U, *c1_R); } } } else { sf_debug_reset_current_state_configuration(_QmodMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc2_mdl5InstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc2_mdl5InstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _mdl5MachineNumber_, 2, 0, 6, 0, 3, 1, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_mdl5MachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_mdl5MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _mdl5MachineNumber_, chartInstance->chartNumber, 1, 1, 1); _SFD_SET_DATA_PROPS(0,1,1,0,"N_Loop"); _SFD_SET_DATA_PROPS(1,0,0,0,"i1"); _SFD_SET_DATA_PROPS(2,2,0,1,"idx"); _SFD_EVENT_SCOPE(0,2); _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(5,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(1,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(3,0,NULL,NULL,0,NULL); { static unsigned int sStartGuardMap[] = { 1 }; static unsigned int sEndGuardMap[] = { 12 }; static int sPostFixPredicateTree[] = { 0 }; _SFD_CV_INIT_TRANS(2,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, &(sPostFixPredicateTree[0])); } _SFD_CV_INIT_TRANS(4,0,NULL,NULL,0,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); _SFD_SET_DATA_COMPILED_PROPS(1,SF_INT32,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)c2_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_b_sf_marshallOut,(MexInFcnForType)c2_b_sf_marshallIn); { real_T *c2_N_Loop; real_T *c2_idx; c2_idx = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c2_N_Loop = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c2_N_Loop); _SFD_SET_DATA_VALUE_PTR(1U, &chartInstance->c2_i1); _SFD_SET_DATA_VALUE_PTR(2U, c2_idx); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _mdl5MachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc8_WorkstationModelInstanceStruct *chartInstance; chartInstance = (SFc8_WorkstationModelInstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_WorkstationModelMachineNumber_, 8, 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(_WorkstationModelMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (_WorkstationModelMachineNumber_,chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_WorkstationModelMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"CustomerClass"); _SFD_SET_DATA_PROPS(1,2,0,1,"QueueRoute"); _SFD_SET_DATA_PROPS(2,1,1,0,"JobClass"); _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,3,0,0,0,0,6,3); _SFD_CV_INIT_EML_FCN(0,0,"tt_blk_kernel",0,-1,590); _SFD_CV_INIT_EML_FCN(0,1,"aFcnTruthTableAction_1",590,-1,650); _SFD_CV_INIT_EML_FCN(0,2,"aFcnTruthTableAction_2",650,-1,710); _SFD_CV_INIT_EML_FCN(0,3,"aFcnTruthTableAction_3",710,-1,770); _SFD_CV_INIT_EML_FCN(0,4,"aFcnTruthTableAction_4",770,-1,829); _SFD_CV_INIT_EML_IF(0,1,0,260,319,350,588); _SFD_CV_INIT_EML_IF(0,1,1,350,414,445,588); _SFD_CV_INIT_EML_IF(0,1,2,445,509,540,588); { static int condStart[] = { 264, 293 }; static int condEnd[] = { 289, 318 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,0,264,318,2,0,&(condStart[0]),&(condEnd[0]), 3,&(pfixExpr[0])); } { static int condStart[] = { 358, 388 }; static int condEnd[] = { 383, 413 }; static int pfixExpr[] = { 0, 1, -1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,1,358,413,2,2,&(condStart[0]),&(condEnd[0]), 4,&(pfixExpr[0])); } { static int condStart[] = { 454, 483 }; static int condEnd[] = { 479, 508 }; static int pfixExpr[] = { 0, -1, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,2,453,508,2,4,&(condStart[0]),&(condEnd[0]), 4,&(pfixExpr[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)c8_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c8_sf_marshallOut,(MexInFcnForType)c8_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c8_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c8_CustomerClass; real_T *c8_QueueRoute; real_T *c8_JobClass; c8_JobClass = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c8_QueueRoute = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c8_CustomerClass = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c8_CustomerClass); _SFD_SET_DATA_VALUE_PTR(1U, c8_QueueRoute); _SFD_SET_DATA_VALUE_PTR(2U, c8_JobClass); } } } else { sf_debug_reset_current_state_configuration(_WorkstationModelMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc2_car_modelInstanceStruct *chartInstance; chartInstance = (SFc2_car_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(_car_modelMachineNumber_, 2, 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(_car_modelMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting(_car_modelMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_car_modelMachineNumber_, chartInstance->chartNumber, 0, 0, 0); { unsigned int dimVector[1]; dimVector[0]= 4; _SFD_SET_DATA_PROPS(0,1,1,0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,"X",0,(MexFcnForType)c2_sf_marshall); } { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_PROPS(1,1,1,0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,"u",0,(MexFcnForType)c2_c_sf_marshall); } { unsigned int dimVector[1]; dimVector[0]= 2; _SFD_SET_DATA_PROPS(2,1,1,0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,"f_F",0,(MexFcnForType)c2_b_sf_marshall); } { 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,"f_R",0,(MexFcnForType)c2_b_sf_marshall); } { unsigned int dimVector[1]; dimVector[0]= 4; _SFD_SET_DATA_PROPS(4,2,0,1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,"dX",0,(MexFcnForType)c2_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,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,616); _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 (*c2_X)[4]; real_T (*c2_u)[3]; real_T (*c2_f_F)[2]; real_T (*c2_f_R)[2]; real_T (*c2_dX)[4]; c2_dX = (real_T (*)[4])ssGetOutputPortSignal(chartInstance->S, 1); c2_f_R = (real_T (*)[2])ssGetInputPortSignal(chartInstance->S, 3); c2_f_F = (real_T (*)[2])ssGetInputPortSignal(chartInstance->S, 2); c2_u = (real_T (*)[3])ssGetInputPortSignal(chartInstance->S, 1); c2_X = (real_T (*)[4])ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c2_X); _SFD_SET_DATA_VALUE_PTR(1U, c2_u); _SFD_SET_DATA_VALUE_PTR(2U, c2_f_F); _SFD_SET_DATA_VALUE_PTR(3U, c2_f_R); _SFD_SET_DATA_VALUE_PTR(4U, c2_dX); } } } else { sf_debug_reset_current_state_configuration(_car_modelMachineNumber_, 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(_Puncture_Through_WallMachineNumber_, 3, 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(_Puncture_Through_WallMachineNumber_,chartInstance.chartNumber); sf_debug_set_chart_disable_implicit_casting(_Puncture_Through_WallMachineNumber_,chartInstance.chartNumber,1); sf_debug_set_chart_event_thresholds(_Puncture_Through_WallMachineNumber_, chartInstance.chartNumber, 0, 0, 0); { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_PROPS(1,1,1,0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,1.0,0,"u",0,c3_sf_marshall); } { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_PROPS(0,2,0,1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,1.0,0,"y",0,c3_b_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,1,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,371); _SFD_CV_INIT_EML_IF(0,0,298,322,352,371); _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 (*c3_u)[3]; real_T (*c3_y)[3]; c3_y = (real_T (*)[3])ssGetOutputPortSignal(chartInstance.S, 1); c3_u = (real_T (*)[3])ssGetInputPortSignal(chartInstance.S, 0); _SFD_SET_DATA_VALUE_PTR(1U, c3_u); _SFD_SET_DATA_VALUE_PTR(0U, c3_y); } } } } else { sf_debug_reset_current_state_configuration(_Puncture_Through_WallMachineNumber_,chartInstance.chartNumber,chartInstance.instanceNumber); } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc2_TischMal2InstanceStruct *chartInstance; chartInstance = (SFc2_TischMal2InstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart(_TischMal2MachineNumber_, 2, 1, 1, 8, 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(_TischMal2MachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting(_TischMal2MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_TischMal2MachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"m1"); _SFD_SET_DATA_PROPS(1,1,1,0,"c1"); _SFD_SET_DATA_PROPS(2,1,1,0,"d"); _SFD_SET_DATA_PROPS(3,1,1,0,"x1"); _SFD_SET_DATA_PROPS(4,1,1,0,"x1P"); _SFD_SET_DATA_PROPS(5,1,1,0,"x2P"); _SFD_SET_DATA_PROPS(6,1,1,0,"u"); _SFD_SET_DATA_PROPS(7,2,0,1,"x1PP"); _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,159); _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_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); _SFD_SET_DATA_COMPILED_PROPS(6,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(7,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)c2_sf_marshallIn); { real_T *c2_m1; real_T *c2_c1; real_T *c2_d; real_T *c2_x1; real_T *c2_x1P; real_T *c2_x2P; real_T *c2_u; real_T *c2_x1PP; c2_x1PP = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c2_u = (real_T *)ssGetInputPortSignal(chartInstance->S, 6); c2_x2P = (real_T *)ssGetInputPortSignal(chartInstance->S, 5); c2_x1P = (real_T *)ssGetInputPortSignal(chartInstance->S, 4); c2_x1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 3); c2_d = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c2_c1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c2_m1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c2_m1); _SFD_SET_DATA_VALUE_PTR(1U, c2_c1); _SFD_SET_DATA_VALUE_PTR(2U, c2_d); _SFD_SET_DATA_VALUE_PTR(3U, c2_x1); _SFD_SET_DATA_VALUE_PTR(4U, c2_x1P); _SFD_SET_DATA_VALUE_PTR(5U, c2_x2P); _SFD_SET_DATA_VALUE_PTR(6U, c2_u); _SFD_SET_DATA_VALUE_PTR(7U, c2_x1PP); } } } else { sf_debug_reset_current_state_configuration(_TischMal2MachineNumber_, 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_nomMachineNumber_, 20, 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_nomMachineNumber_, chartInstance.chartNumber); sf_debug_set_chart_disable_implicit_casting (_adcs_v15_integral_Power_nomMachineNumber_, chartInstance.chartNumber,1); sf_debug_set_chart_event_thresholds (_adcs_v15_integral_Power_nomMachineNumber_, chartInstance.chartNumber, 0, 0, 0); { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_PROPS(0,1,1,0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,"v_I",0,(MexFcnForType)c20_sf_marshall); } { unsigned int dimVector[1]; dimVector[0]= 7; _SFD_SET_DATA_PROPS(1,1,1,0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,"x",0,(MexFcnForType)c20_b_sf_marshall); } { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_PROPS(2,2,0,1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,"v_B",0,(MexFcnForType)c20_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,444); _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 (*c20_v_I)[3]; real_T (*c20_x)[7]; real_T (*c20_v_B)[3]; c20_v_I = (real_T (*)[3])ssGetInputPortSignal(chartInstance.S, 0); c20_v_B = (real_T (*)[3])ssGetOutputPortSignal(chartInstance.S, 1); c20_x = (real_T (*)[7])ssGetInputPortSignal(chartInstance.S, 1); _SFD_SET_DATA_VALUE_PTR(0U, c20_v_I); _SFD_SET_DATA_VALUE_PTR(1U, c20_x); _SFD_SET_DATA_VALUE_PTR(2U, c20_v_B); } } } else { sf_debug_reset_current_state_configuration (_adcs_v15_integral_Power_nomMachineNumber_,chartInstance.chartNumber, chartInstance.instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc22_CSE1_DPInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc22_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_, 22, 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_p"); _SFD_SET_DATA_PROPS(1,1,1,0,"K_p1"); _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)c22_sf_marshallOut,(MexInFcnForType) c22_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)c22_b_sf_marshallOut,(MexInFcnForType)NULL); } { real_T (*c22_K_p)[9]; real_T (*c22_K_p1)[3]; c22_K_p1 = (real_T (*)[3])ssGetInputPortSignal(chartInstance->S, 0); c22_K_p = (real_T (*)[9])ssGetOutputPortSignal(chartInstance->S, 1); _SFD_SET_DATA_VALUE_PTR(0U, *c22_K_p); _SFD_SET_DATA_VALUE_PTR(1U, *c22_K_p1); } } } 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)) { SFc2_Demo_KinectInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc2_Demo_KinectInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _Demo_KinectMachineNumber_, 2, 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_KinectMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_Demo_KinectMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _Demo_KinectMachineNumber_, 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_SET_DATA_PROPS(6,1,1,0,"gameNum"); _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,309); _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); _SFD_SET_DATA_COMPILED_PROPS(6,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; real_T *c2_gameNum; c2_gameNum = (real_T *)ssGetInputPortSignal(chartInstance->S, 6); 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); _SFD_SET_DATA_VALUE_PTR(6U, c2_gameNum); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _Demo_KinectMachineNumber_,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_intensityMachineNumber_, 2, 1, 1, 7, 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_intensityMachineNumber_,chartInstance.chartNumber,1); sf_debug_set_chart_event_thresholds(_object_tracker_intensityMachineNumber_, chartInstance.chartNumber, 0, 0, 0); { unsigned int dimVector[1]; dimVector[0]= 2; _SFD_SET_DATA_PROPS(1,2,0,1,SF_UINT16,1,&(dimVector[0]),0,0,0,0.0,1.0,0,"CentroidCoords",0); } { unsigned int dimVector[2]; dimVector[0]= 2; dimVector[1]= 10; _SFD_SET_DATA_PROPS(5,1,1,0,SF_UINT16,2,&(dimVector[0]),0,0,0,0.0,1.0,0,"CentroidArray",0); } { unsigned int dimVector[2]; dimVector[0]= 1; dimVector[1]= 4; _SFD_SET_DATA_PROPS(2,2,0,1,SF_UINT16,2,&(dimVector[0]),0,0,0,0.0,1.0,0,"LineVector",0); } _SFD_SET_DATA_PROPS(3,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"booleof",0); { unsigned int dimVector[1]; dimVector[0]= 2; _SFD_SET_DATA_PROPS(6,1,1,0,SF_UINT16,1,&(dimVector[0]),0,0,0,0.0,1.0,0,"StartCoords",0); } { unsigned int dimVector[1]; dimVector[0]= 2; _SFD_SET_DATA_PROPS(0,1,1,0,SF_UINT16,1,&(dimVector[0]),0,0,0,0.0,1.0,0,"VidSize",0); } _SFD_SET_DATA_PROPS(4,2,0,1,SF_UINT16,0,NULL,0,0,0,0.0,1.0,0,"CentroidCol",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,2,0,0,0,5,2); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,770); _SFD_CV_INIT_EML_IF(0,0,236,280,-1,315); _SFD_CV_INIT_EML_IF(0,1,494,559,619,651); { static int condStart[] = {239,264}; static int condEnd[] = {260,279}; static int pfixExpr[] = {0,1,-2}; _SFD_CV_INIT_EML_MCDC(0,0,239,279,2,0,&(condStart[0]),&(condEnd[0]),3,&(pfixExpr[0])); } { static int condStart[] = {497,523,542}; static int condEnd[] = {519,538,558}; static int pfixExpr[] = {0,1,-3,2,-3}; _SFD_CV_INIT_EML_MCDC(0,1,497,558,3,2,&(condStart[0]),&(condEnd[0]),5,&(pfixExpr[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_VALUE_PTR(1U, c2_CentroidCoords()); _SFD_SET_DATA_VALUE_PTR(5U, c2_CentroidArray()); _SFD_SET_DATA_VALUE_PTR(2U, c2_LineVector()); _SFD_SET_DATA_VALUE_PTR(3U, c2_booleof()); _SFD_SET_DATA_VALUE_PTR(6U, c2_StartCoords()); _SFD_SET_DATA_VALUE_PTR(0U, c2_VidSize()); _SFD_SET_DATA_VALUE_PTR(4U, c2_CentroidCol()); } } } else { sf_debug_reset_current_state_configuration(_object_tracker_intensityMachineNumber_,chartInstance.chartNumber,chartInstance.instanceNumber); } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc2_DSHMHittingSecondORderInstanceStruct *chartInstance; chartInstance = (SFc2_DSHMHittingSecondORderInstanceStruct *) ((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, _DSHMHittingSecondORderMachineNumber_, 2, 1, 1, 4, 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(_DSHMHittingSecondORderMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_DSHMHittingSecondORderMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _DSHMHittingSecondORderMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"accel"); _SFD_SET_DATA_PROPS(1,1,1,0,"u"); _SFD_SET_DATA_PROPS(2,2,0,1,"y"); _SFD_SET_DATA_PROPS(3,1,1,0,"gain"); _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,104); _SFD_CV_INIT_EML_IF(0,1,0,44,67,79,103); _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)c2_sf_marshallIn); _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); { real_T *c2_accel; real_T *c2_u; real_T *c2_y; real_T *c2_gain; c2_gain = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c2_y = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c2_u = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c2_accel = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c2_accel); _SFD_SET_DATA_VALUE_PTR(1U, c2_u); _SFD_SET_DATA_VALUE_PTR(2U, c2_y); _SFD_SET_DATA_VALUE_PTR(3U, c2_gain); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _DSHMHittingSecondORderMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc37_Demo_AU_VA1InstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc37_Demo_AU_VA1InstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _Demo_AU_VA1MachineNumber_, 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_AU_VA1MachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_Demo_AU_VA1MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _Demo_AU_VA1MachineNumber_, 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_AU_VA1MachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc41_heart_modelInstanceStruct *chartInstance; chartInstance = (SFc41_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_, 41, 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)c41_d_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c41_v; c41_v = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c41_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)) { SFc7_ekffedeInstanceStruct *chartInstance; chartInstance = (SFc7_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_, 7, 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(_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,"sfasamento"); _SFD_SET_DATA_PROPS(1,2,0,1,"wave"); _SFD_SET_DATA_PROPS(2,1,1,0,"ampiezza"); _SFD_SET_DATA_PROPS(3,1,1,0,"frequenza"); _SFD_SET_DATA_PROPS(4,1,1,0,"noise"); _SFD_SET_DATA_PROPS(5,1,1,0,"t"); _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,126); _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)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_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c7_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c7_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c7_sfasamento; real_T *c7_wave; real_T *c7_ampiezza; real_T *c7_frequenza; real_T *c7_noise; real_T *c7_t; c7_t = (real_T *)ssGetInputPortSignal(chartInstance->S, 4); c7_noise = (real_T *)ssGetInputPortSignal(chartInstance->S, 3); c7_frequenza = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c7_ampiezza = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c7_wave = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c7_sfasamento = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c7_sfasamento); _SFD_SET_DATA_VALUE_PTR(1U, c7_wave); _SFD_SET_DATA_VALUE_PTR(2U, c7_ampiezza); _SFD_SET_DATA_VALUE_PTR(3U, c7_frequenza); _SFD_SET_DATA_VALUE_PTR(4U, c7_noise); _SFD_SET_DATA_VALUE_PTR(5U, c7_t); } } } 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)) { SFc8_AllPurposeModel_TyreRelaxationInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc8_AllPurposeModel_TyreRelaxationInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _AllPurposeModel_TyreRelaxationMachineNumber_, 8, 1, 1, 0, 3, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize its own list of scripts */ init_script_number_translation (_AllPurposeModel_TyreRelaxationMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct, _AllPurposeModel_TyreRelaxationMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _AllPurposeModel_TyreRelaxationMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"v_irp3"); _SFD_SET_DATA_PROPS(1,1,1,0,"p_z"); _SFD_SET_DATA_PROPS(2,2,0,1,"derpos_irp3"); _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,205); _SFD_SET_DATA_COMPILED_PROPS(0,SF_STRUCT,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c8_v_irp3_bus_io,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c8_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(2,SF_STRUCT,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c8_v_irp3_bus_io,(MexInFcnForType)NULL); _SFD_SET_DATA_VALUE_PTR(0U, chartInstance->c8_v_irp3); _SFD_SET_DATA_VALUE_PTR(1U, chartInstance->c8_p_z); _SFD_SET_DATA_VALUE_PTR(2U, chartInstance->c8_derpos_irp3); } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _AllPurposeModel_TyreRelaxationMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc3_controller1InstanceStruct *chartInstance; chartInstance = (SFc3_controller1InstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_controller1MachineNumber_, 3, 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(_controller1MachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting(_controller1MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_controller1MachineNumber_, 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 EML Model Coverage */ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",31,-1,121); _SFD_CV_INIT_EML_IF(0,0,68,82,-1,114); _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)c3_sf_marshall); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c3_sf_marshall); { real_T *c3_u; real_T *c3_y; c3_y = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c3_u = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c3_u); _SFD_SET_DATA_VALUE_PTR(1U, c3_y); } } } else { sf_debug_reset_current_state_configuration(_controller1MachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc41_EP_IdleRandMergInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc41_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, _EP_IdleRandMergMachineNumber_, 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(_EP_IdleRandMergMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_EP_IdleRandMergMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _EP_IdleRandMergMachineNumber_, 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,1482); _SFD_CV_INIT_EML_FCN(0,1,"aFcnTruthTableAction_1",1482,-1,1532); _SFD_CV_INIT_EML_FCN(0,2,"aFcnTruthTableAction_2",1532,-1,1584); _SFD_CV_INIT_EML_FCN(0,3,"aFcnTruthTableAction_3",1584,-1,1633); _SFD_CV_INIT_EML_FCN(0,4,"aFcnTruthTableAction_4",1633,-1,1689); _SFD_CV_INIT_EML_FCN(0,5,"aFcnTruthTableAction_5",1689,-1,1738); _SFD_CV_INIT_EML_FCN(0,6,"aFcnTruthTableAction_6",1738,-1,1791); _SFD_CV_INIT_EML_FCN(0,7,"aFcnTruthTableAction_7",1791,-1,1841); _SFD_CV_INIT_EML_FCN(0,8,"aFcnTruthTableAction_8",1841,-1,1888); _SFD_CV_INIT_EML_IF(0,1,0,916,946,977,1480); _SFD_CV_INIT_EML_IF(0,1,1,977,1011,1042,1480); _SFD_CV_INIT_EML_IF(0,1,2,1042,1076,1107,1480); _SFD_CV_INIT_EML_IF(0,1,3,1107,1141,1172,1480); _SFD_CV_INIT_EML_IF(0,1,4,1172,1206,1237,1480); _SFD_CV_INIT_EML_IF(0,1,5,1237,1271,1302,1480); _SFD_CV_INIT_EML_IF(0,1,6,1302,1336,1367,1480); _SFD_CV_INIT_EML_IF(0,1,7,1367,1401,1432,1480); _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, _EP_IdleRandMergMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc4_DisplayCANMsgInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc4_DisplayCANMsgInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _DisplayCANMsgMachineNumber_, 4, 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(_DisplayCANMsgMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_DisplayCANMsgMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _DisplayCANMsgMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"littleEndianArray"); _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,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,104); { unsigned int dimVector[1]; dimVector[0]= 2; _SFD_SET_DATA_COMPILED_PROPS(0,SF_UINT8,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c4_b_sf_marshallOut,(MexInFcnForType)NULL); } _SFD_SET_DATA_COMPILED_PROPS(1,SF_INT16,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c4_sf_marshallOut,(MexInFcnForType)c4_sf_marshallIn); } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _DisplayCANMsgMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc45_Expriment_GazeInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc45_Expriment_GazeInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _Expriment_GazeMachineNumber_, 45, 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(_Expriment_GazeMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_Expriment_GazeMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _Expriment_GazeMachineNumber_, 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)c45_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)c45_sf_marshallOut,(MexInFcnForType) c45_sf_marshallIn); } _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c45_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)c45_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)c45_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)c45_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)c45_b_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c45_r1; real_T *c45_r2; real_T *c45_r3; real_T *c45_r4; real_T *c45_r5; real_T *c45_r6; real_T (*c45_y)[6]; c45_r6 = (real_T *)ssGetInputPortSignal(chartInstance->S, 5); c45_r5 = (real_T *)ssGetInputPortSignal(chartInstance->S, 4); c45_r4 = (real_T *)ssGetInputPortSignal(chartInstance->S, 3); c45_r3 = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c45_r2 = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c45_y = (real_T (*)[6])ssGetOutputPortSignal(chartInstance->S, 1); c45_r1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c45_r1); _SFD_SET_DATA_VALUE_PTR(1U, *c45_y); _SFD_SET_DATA_VALUE_PTR(2U, c45_r2); _SFD_SET_DATA_VALUE_PTR(3U, c45_r3); _SFD_SET_DATA_VALUE_PTR(4U, c45_r4); _SFD_SET_DATA_VALUE_PTR(5U, c45_r5); _SFD_SET_DATA_VALUE_PTR(6U, c45_r6); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _Expriment_GazeMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc17_ManipulatorME4901InstanceStruct *chartInstance; chartInstance = (SFc17_ManipulatorME4901InstanceStruct *) ((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, _ManipulatorME4901MachineNumber_, 17, 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(_ManipulatorME4901MachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_ManipulatorME4901MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _ManipulatorME4901MachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"u"); _SFD_SET_DATA_PROPS(1,1,1,0,"i"); _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,1,0,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,39); _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]= 6; _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c17_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)c17_sf_marshallOut,(MexInFcnForType)NULL); } { 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)c17_sf_marshallOut,(MexInFcnForType) c17_sf_marshallIn); } { real_T (*c17_u)[6]; real_T (*c17_i)[6]; real_T (*c17_y)[6]; c17_y = (real_T (*)[6])ssGetOutputPortSignal(chartInstance->S, 1); c17_i = (real_T (*)[6])ssGetInputPortSignal(chartInstance->S, 1); c17_u = (real_T (*)[6])ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, *c17_u); _SFD_SET_DATA_VALUE_PTR(1U, *c17_i); _SFD_SET_DATA_VALUE_PTR(2U, *c17_y); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _ManipulatorME4901MachineNumber_,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_, 3, 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(7,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"a0",0); _SFD_SET_DATA_PROPS(6,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"a1",0); _SFD_SET_DATA_PROPS(2,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"a2",0); _SFD_SET_DATA_PROPS(10,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"a3",0); _SFD_SET_DATA_PROPS(8,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"a4",0); _SFD_SET_DATA_PROPS(1,1,1,0,SF_DOUBLE,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(9,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"qa",0); _SFD_SET_DATA_PROPS(3,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"qap",0); _SFD_SET_DATA_PROPS(0,2,0,1,SF_DOUBLE,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(7U, c3_a0()); _SFD_SET_DATA_VALUE_PTR(6U, c3_a1()); _SFD_SET_DATA_VALUE_PTR(2U, c3_a2()); _SFD_SET_DATA_VALUE_PTR(10U, c3_a3()); _SFD_SET_DATA_VALUE_PTR(8U, c3_a4()); _SFD_SET_DATA_VALUE_PTR(1U, c3_a5()); _SFD_SET_DATA_VALUE_PTR(4U, c3_t_sim()); _SFD_SET_DATA_VALUE_PTR(9U, c3_qa()); _SFD_SET_DATA_VALUE_PTR(3U, c3_qap()); _SFD_SET_DATA_VALUE_PTR(0U, c3_qapp()); _SFD_SET_DATA_VALUE_PTR(5U, c3_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)) { SFc4_MON_sl_after_replacement3InstanceStruct *chartInstance = (SFc4_MON_sl_after_replacement3InstanceStruct *)sf_get_chart_instance_ptr (S); if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _MON_sl_after_replacement3MachineNumber_, 4, 0, 14, 0, 6, 0, 0, 0, 0, 0, &chartInstance->chartNumber, &chartInstance->instanceNumber, (void *)S); /* Each instance must initialize its own list of scripts */ init_script_number_translation(_MON_sl_after_replacement3MachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct, _MON_sl_after_replacement3MachineNumber_,chartInstance->chartNumber, 1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _MON_sl_after_replacement3MachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"Sync_From_Active"); _SFD_SET_DATA_PROPS(1,1,1,0,"pre_Active"); _SFD_SET_DATA_PROPS(2,1,1,0,"Error"); _SFD_SET_DATA_PROPS(3,1,1,0,"Sync_From_Error"); _SFD_SET_DATA_PROPS(4,2,0,1,"Active"); _SFD_SET_DATA_PROPS(5,10,0,0,"Primary_Side"); _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); { static unsigned int sStartGuardMap[] = { 1 }; static unsigned int sEndGuardMap[] = { 6 }; static int sPostFixPredicateTree[] = { 0 }; _SFD_CV_INIT_TRANS(1,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, &(sPostFixPredicateTree[0])); } _SFD_CV_INIT_TRANS(2,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(3,0,NULL,NULL,0,NULL); { static unsigned int sStartGuardMap[] = { 1, 15, 38, 61 }; static unsigned int sEndGuardMap[] = { 11, 31, 53, 73 }; static int sPostFixPredicateTree[] = { 0, 1, -3, 2, -1, -3, 3, -1, -3 }; _SFD_CV_INIT_TRANS(4,4,&(sStartGuardMap[0]),&(sEndGuardMap[0]),9, &(sPostFixPredicateTree[0])); } _SFD_CV_INIT_TRANS(5,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(6,0,NULL,NULL,0,NULL); { static unsigned int sStartGuardMap[] = { 3, 22, 43 }; static unsigned int sEndGuardMap[] = { 13, 38, 58 }; static int sPostFixPredicateTree[] = { 0, -1, 1, -1, 2, -2, -3 }; _SFD_CV_INIT_TRANS(7,3,&(sStartGuardMap[0]),&(sEndGuardMap[0]),7, &(sPostFixPredicateTree[0])); } _SFD_CV_INIT_TRANS(8,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(9,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(10,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(11,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(12,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(13,0,NULL,NULL,0,NULL); _SFD_SET_DATA_COMPILED_PROPS(0,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c4_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c4_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(2,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c4_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c4_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(4,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c4_b_sf_marshallOut,(MexInFcnForType)c4_b_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(5,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c4_b_sf_marshallOut,(MexInFcnForType)c4_b_sf_marshallIn); } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _MON_sl_after_replacement3MachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc27_Model_justmodelInstanceStruct *chartInstance; chartInstance = (SFc27_Model_justmodelInstanceStruct *) ((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, _Model_justmodelMachineNumber_, 27, 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(_Model_justmodelMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_Model_justmodelMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _Model_justmodelMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"U"); _SFD_SET_DATA_PROPS(1,2,0,1,"surge"); _SFD_SET_DATA_PROPS(2,1,1,0,"eta_ship"); _SFD_SET_DATA_PROPS(3,1,1,0,"alpha_LOS"); _SFD_SET_DATA_PROPS(4,2,0,1,"sway"); _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,142); _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)c27_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c27_sf_marshallOut,(MexInFcnForType)c27_sf_marshallIn); { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c27_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)c27_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c27_sf_marshallOut,(MexInFcnForType)c27_sf_marshallIn); { real_T *c27_U; real_T *c27_surge; real_T *c27_alpha_LOS; real_T *c27_sway; real_T (*c27_eta_ship)[3]; c27_sway = (real_T *)ssGetOutputPortSignal(chartInstance->S, 2); c27_alpha_LOS = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c27_eta_ship = (real_T (*)[3])ssGetInputPortSignal(chartInstance->S, 1); c27_surge = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c27_U = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c27_U); _SFD_SET_DATA_VALUE_PTR(1U, c27_surge); _SFD_SET_DATA_VALUE_PTR(2U, *c27_eta_ship); _SFD_SET_DATA_VALUE_PTR(3U, c27_alpha_LOS); _SFD_SET_DATA_VALUE_PTR(4U, c27_sway); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _Model_justmodelMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }