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)) { SFc12_SS6_Estimation2InstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc12_SS6_Estimation2InstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _SS6_Estimation2MachineNumber_, 12, 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(_SS6_Estimation2MachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_SS6_Estimation2MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _SS6_Estimation2MachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"V_x"); _SFD_SET_DATA_PROPS(1,1,1,0,"r"); _SFD_SET_DATA_PROPS(2,2,0,1,"U_tl"); _SFD_SET_DATA_PROPS(3,2,0,1,"U_tr"); _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,116); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c12_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c12_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c12_sf_marshallOut,(MexInFcnForType)c12_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c12_sf_marshallOut,(MexInFcnForType)c12_sf_marshallIn); _SFD_SET_DATA_VALUE_PTR(0U, chartInstance->c12_V_x); _SFD_SET_DATA_VALUE_PTR(1U, chartInstance->c12_r); _SFD_SET_DATA_VALUE_PTR(2U, chartInstance->c12_U_tl); _SFD_SET_DATA_VALUE_PTR(3U, chartInstance->c12_U_tr); } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _SS6_Estimation2MachineNumber_,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_, 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_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); _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_Downlink_power = (real_T *)ssGetOutputPortSignal(chartInstance.S, 1); c19_Latitude = (real_T *)ssGetInputPortSignal(chartInstance.S, 0); c19_Longitude = (real_T *)ssGetInputPortSignal(chartInstance.S, 1); c19_flag_india = (real_T *)ssGetOutputPortSignal(chartInstance.S, 4); c19_flag_downlink = (real_T *)ssGetOutputPortSignal(chartInstance.S, 2); _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_nomMachineNumber_,chartInstance.chartNumber, chartInstance.instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc2_SATestInstanceStruct *chartInstance; chartInstance = (SFc2_SATestInstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart(_SATestMachineNumber_, 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(_SATestMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting(_SATestMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_SATestMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"d1"); _SFD_SET_DATA_PROPS(1,2,0,1,"i"); _SFD_SET_DATA_PROPS(2,1,1,0,"d2"); _SFD_SET_DATA_PROPS(3,1,1,0,"d3"); _SFD_SET_DATA_PROPS(4,1,1,0,"d4"); _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,5,0,0,0,0,8,4); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,243); _SFD_CV_INIT_EML_IF(0,0,55,68,-1,83); _SFD_CV_INIT_EML_IF(0,1,85,103,-1,122); _SFD_CV_INIT_EML_IF(0,2,124,142,-1,161); _SFD_CV_INIT_EML_IF(0,3,163,181,-1,200); _SFD_CV_INIT_EML_IF(0,4,202,220,-1,235); { static int condStart[] = { 88, 96 }; static int condEnd[] = { 92, 103 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,0,88,103,2,0,&(condStart[0]),&(condEnd[0]),3, &(pfixExpr[0])); } { static int condStart[] = { 127, 135 }; static int condEnd[] = { 131, 142 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,127,142,2,2,&(condStart[0]),&(condEnd[0]),3, &(pfixExpr[0])); } { static int condStart[] = { 166, 174 }; static int condEnd[] = { 170, 181 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,2,166,181,2,4,&(condStart[0]),&(condEnd[0]),3, &(pfixExpr[0])); } { static int condStart[] = { 205, 213 }; static int condEnd[] = { 209, 220 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,3,205,220,2,6,&(condStart[0]),&(condEnd[0]),3, &(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)c2_b_sf_marshall); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_b_sf_marshall); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_b_sf_marshall); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_b_sf_marshall); _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_b_sf_marshall); { real_T *c2_d1; real_T *c2_i; real_T *c2_d2; real_T *c2_d3; real_T *c2_d4; c2_d4 = (real_T *)ssGetInputPortSignal(chartInstance->S, 3); c2_d3 = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c2_d2 = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c2_i = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c2_d1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c2_d1); _SFD_SET_DATA_VALUE_PTR(1U, c2_i); _SFD_SET_DATA_VALUE_PTR(2U, c2_d2); _SFD_SET_DATA_VALUE_PTR(3U, c2_d3); _SFD_SET_DATA_VALUE_PTR(4U, c2_d4); } } } else { sf_debug_reset_current_state_configuration(_SATestMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc25_BuckBoost1InstanceStruct *chartInstance; chartInstance = (SFc25_BuckBoost1InstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_BuckBoost1MachineNumber_, 25, 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(_BuckBoost1MachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting(_BuckBoost1MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_BuckBoost1MachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"Ts"); _SFD_SET_DATA_PROPS(1,1,1,0,"TimeCNT_k1"); _SFD_SET_DATA_PROPS(2,2,0,1,"TimeCNT_k"); _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,209); _SFD_CV_INIT_EML_IF(0,1,0,126,148,166,204); _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)c25_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_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c25_sf_marshallOut,(MexInFcnForType)c25_sf_marshallIn); { real_T *c25_Ts; real_T *c25_TimeCNT_k1; real_T *c25_TimeCNT_k; c25_TimeCNT_k = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c25_TimeCNT_k1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c25_Ts = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c25_Ts); _SFD_SET_DATA_VALUE_PTR(1U, c25_TimeCNT_k1); _SFD_SET_DATA_VALUE_PTR(2U, c25_TimeCNT_k); } } } else { sf_debug_reset_current_state_configuration(_BuckBoost1MachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc12_Demo_KinectInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc12_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_, 12, 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_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,"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)c12_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c12_sf_marshallOut,(MexInFcnForType)c12_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c12_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c12_V; real_T *c12_e; real_T *c12_A; c12_A = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c12_e = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c12_V = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c12_V); _SFD_SET_DATA_VALUE_PTR(1U, c12_e); _SFD_SET_DATA_VALUE_PTR(2U, c12_A); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _Demo_KinectMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc1_motor_control_with_off_the_shelf_SVPWMInstanceStruct *chartInstance; chartInstance = (SFc1_motor_control_with_off_the_shelf_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_off_the_shelf_SVPWMMachineNumber_, 1, 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 (_motor_control_with_off_the_shelf_SVPWMMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (_motor_control_with_off_the_shelf_SVPWMMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds (_motor_control_with_off_the_shelf_SVPWMMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"Tdes"); _SFD_SET_DATA_PROPS(1,2,0,1,"Vd"); _SFD_SET_DATA_PROPS(2,1,1,0,"w"); _SFD_SET_DATA_PROPS(3,2,0,1,"Vq"); _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,424); _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); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_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_sf_marshallOut,(MexInFcnForType)c1_sf_marshallIn); { real_T *c1_Tdes; real_T *c1_Vd; real_T *c1_w; real_T *c1_Vq; c1_Vq = (real_T *)ssGetOutputPortSignal(chartInstance->S, 2); c1_w = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c1_Vd = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c1_Tdes = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c1_Tdes); _SFD_SET_DATA_VALUE_PTR(1U, c1_Vd); _SFD_SET_DATA_VALUE_PTR(2U, c1_w); _SFD_SET_DATA_VALUE_PTR(3U, c1_Vq); } } } else { sf_debug_reset_current_state_configuration (_motor_control_with_off_the_shelf_SVPWMMachineNumber_, 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)) { 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) { 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)) { 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)) { 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)) { 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)) { 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)) { SFc23_ArregloSeisPorSeisInstanceStruct *chartInstance; chartInstance = (SFc23_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_, 23, 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)c23_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c23_sf_marshallOut,(MexInFcnForType)c23_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c23_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c23_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c23_V; real_T *c23_I; real_T *c23_Radiacion; real_T *c23_Temp; c23_Temp = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c23_Radiacion = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c23_I = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c23_V = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c23_V); _SFD_SET_DATA_VALUE_PTR(1U, c23_I); _SFD_SET_DATA_VALUE_PTR(2U, c23_Radiacion); _SFD_SET_DATA_VALUE_PTR(3U, c23_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)) { 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)) { 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_, 10, 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 (_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,2,0,1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,"B",0,(MexFcnForType)c10_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,"B_l",0,(MexFcnForType)c10_sf_marshall); } { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_PROPS(2,1,1,0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,"B_k",0,(MexFcnForType)c10_sf_marshall); } { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_PROPS(3,2,0,1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,"dB",0,(MexFcnForType)c10_sf_marshall); } _SFD_SET_DATA_PROPS(4,10,0,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0, "s_FRAME_SIZE",0,(MexFcnForType)c10_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,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 (*c10_B)[3]; real_T (*c10_B_l)[3]; real_T (*c10_B_k)[3]; real_T (*c10_dB)[3]; c10_B_k = (real_T (*)[3])ssGetInputPortSignal(chartInstance.S, 1); c10_B = (real_T (*)[3])ssGetOutputPortSignal(chartInstance.S, 1); c10_B_l = (real_T (*)[3])ssGetInputPortSignal(chartInstance.S, 0); c10_dB = (real_T (*)[3])ssGetOutputPortSignal(chartInstance.S, 2); _SFD_SET_DATA_VALUE_PTR(0U, c10_B); _SFD_SET_DATA_VALUE_PTR(1U, c10_B_l); _SFD_SET_DATA_VALUE_PTR(2U, c10_B_k); _SFD_SET_DATA_VALUE_PTR(3U, c10_dB); _SFD_SET_DATA_VALUE_PTR(4U, &chartInstance.c10_s_FRAME_SIZE); } } } 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)) { 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)) { SFc17_HIL_model_errorInstanceStruct *chartInstance; chartInstance = (SFc17_HIL_model_errorInstanceStruct *) ((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, _HIL_model_errorMachineNumber_, 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(_HIL_model_errorMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_HIL_model_errorMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _HIL_model_errorMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"alpha_pi"); _SFD_SET_DATA_PROPS(1,2,0,1,"alpha_inf"); _SFD_SET_DATA_PROPS(2,1,1,0,"accumulation"); _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,1,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,208); _SFD_CV_INIT_EML_WHILE(0,1,0,74,115,208); _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)c17_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c17_sf_marshallOut,(MexInFcnForType)c17_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c17_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c17_alpha_pi; real_T *c17_alpha_inf; real_T *c17_accumulation; c17_accumulation = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c17_alpha_inf = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c17_alpha_pi = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c17_alpha_pi); _SFD_SET_DATA_VALUE_PTR(1U, c17_alpha_inf); _SFD_SET_DATA_VALUE_PTR(2U, c17_accumulation); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _HIL_model_errorMachineNumber_,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)) { SFc3_ARP_02_RPSsmile_GloveAtomicRachelImitateSmileInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc3_ARP_02_RPSsmile_GloveAtomicRachelImitateSmileInstanceStruct *) 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_GloveAtomicRachelImitateSmileMachineNumber_, 3, 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_RPSsmile_GloveAtomicRachelImitateSmileMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct, _ARP_02_RPSsmile_GloveAtomicRachelImitateSmileMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _ARP_02_RPSsmile_GloveAtomicRachelImitateSmileMachineNumber_, 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,3,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,192); _SFD_CV_INIT_EML_IF(0,1,0,105,113,123,185); _SFD_CV_INIT_EML_IF(0,1,1,123,135,145,185); _SFD_CV_INIT_EML_IF(0,1,2,145,157,167,185); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c3_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c3_sf_marshallOut,(MexInFcnForType)c3_sf_marshallIn); { 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(sfGlobalDebugInstanceStruct, _ARP_02_RPSsmile_GloveAtomicRachelImitateSmileMachineNumber_, 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)) { SFc1_my_demo_refInstanceStruct *chartInstance; chartInstance = (SFc1_my_demo_refInstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_my_demo_refMachineNumber_, 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(_my_demo_refMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting(_my_demo_refMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_my_demo_refMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,2,0,1,"x_g"); _SFD_SET_DATA_PROPS(1,2,0,1,"y_g"); _SFD_SET_DATA_PROPS(2,1,1,0,"x"); _SFD_SET_DATA_PROPS(3,1,1,0,"y"); _SFD_SET_DATA_PROPS(4,1,1,0,"fpath"); _SFD_SET_DATA_PROPS(5,2,0,1,"stop"); _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,4,2); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,839); _SFD_CV_INIT_EML_IF(0,1,0,236,249,-1,263); _SFD_CV_INIT_EML_IF(0,1,1,640,671,-1,690); _SFD_CV_INIT_EML_IF(0,1,2,786,816,-1,834); { static int condStart[] = { 643, 655 }; static int condEnd[] = { 651, 671 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,0,643,671,2,0,&(condStart[0]),&(condEnd[0]), 3,&(pfixExpr[0])); } { static int condStart[] = { 789, 801 }; static int condEnd[] = { 797, 816 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,1,789,816,2,2,&(condStart[0]),&(condEnd[0]), 3,&(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)c1_b_sf_marshallOut,(MexInFcnForType)c1_b_sf_marshallIn); _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)c1_b_sf_marshallIn); _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)NULL); { unsigned int dimVector[2]; dimVector[0]= 85; dimVector[1]= 2; _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c1_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)c1_b_sf_marshallOut,(MexInFcnForType)c1_b_sf_marshallIn); { real_T *c1_x_g; real_T *c1_y_g; real_T *c1_x; real_T *c1_y; real_T *c1_stop; real_T (*c1_fpath)[170]; c1_stop = (real_T *)ssGetOutputPortSignal(chartInstance->S, 3); c1_fpath = (real_T (*)[170])ssGetInputPortSignal(chartInstance->S, 2); c1_y = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c1_x = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); c1_y_g = (real_T *)ssGetOutputPortSignal(chartInstance->S, 2); c1_x_g = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); _SFD_SET_DATA_VALUE_PTR(0U, c1_x_g); _SFD_SET_DATA_VALUE_PTR(1U, c1_y_g); _SFD_SET_DATA_VALUE_PTR(2U, c1_x); _SFD_SET_DATA_VALUE_PTR(3U, c1_y); _SFD_SET_DATA_VALUE_PTR(4U, *c1_fpath); _SFD_SET_DATA_VALUE_PTR(5U, c1_stop); } } } else { sf_debug_reset_current_state_configuration(_my_demo_refMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc6_DemoGazeFollowWaveIdleRandInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc6_DemoGazeFollowWaveIdleRandInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _DemoGazeFollowWaveIdleRandMachineNumber_, 6, 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(_DemoGazeFollowWaveIdleRandMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct, _DemoGazeFollowWaveIdleRandMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _DemoGazeFollowWaveIdleRandMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"z"); _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,5,4,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"tt_blk_kernel",0,-1,722); _SFD_CV_INIT_EML_FCN(0,1,"aFcnTruthTableAction_1",722,-1,776); _SFD_CV_INIT_EML_FCN(0,2,"aFcnTruthTableAction_2",776,-1,832); _SFD_CV_INIT_EML_FCN(0,3,"aFcnTruthTableAction_3",832,-1,890); _SFD_CV_INIT_EML_FCN(0,4,"aFcnTruthTableAction_4",890,-1,944); _SFD_CV_INIT_EML_IF(0,1,0,416,446,477,720); _SFD_CV_INIT_EML_IF(0,1,1,477,511,542,720); _SFD_CV_INIT_EML_IF(0,1,2,542,576,607,720); _SFD_CV_INIT_EML_IF(0,1,3,607,641,672,720); _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); { real_T *c6_z; real_T *c6_y; c6_y = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c6_z = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c6_z); _SFD_SET_DATA_VALUE_PTR(1U, c6_y); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _DemoGazeFollowWaveIdleRandMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc26_CusakisME4901InstanceStruct *chartInstance; chartInstance = (SFc26_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_, 26, 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(_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,"Ve"); _SFD_SET_DATA_PROPS(1,1,1,0,"Vlinkcoll"); _SFD_SET_DATA_PROPS(2,2,0,1,"Ve_out"); _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,211); _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)c26_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)c26_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)c26_sf_marshallOut,(MexInFcnForType) c26_sf_marshallIn); } { real_T (*c26_Ve)[6]; real_T (*c26_Vlinkcoll)[6]; real_T (*c26_Ve_out)[6]; c26_Ve_out = (real_T (*)[6])ssGetOutputPortSignal(chartInstance->S, 1); c26_Vlinkcoll = (real_T (*)[6])ssGetInputPortSignal(chartInstance->S, 1); c26_Ve = (real_T (*)[6])ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, *c26_Ve); _SFD_SET_DATA_VALUE_PTR(1U, *c26_Vlinkcoll); _SFD_SET_DATA_VALUE_PTR(2U, *c26_Ve_out); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _CusakisME4901MachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc2_chooseTapBInstanceStruct *chartInstance; chartInstance = (SFc2_chooseTapBInstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_chooseTapBMachineNumber_, 2, 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(_chooseTapBMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting(_chooseTapBMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_chooseTapBMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"ave"); _SFD_SET_DATA_PROPS(1,2,0,1,"tap"); _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,4,0,0,0,0,6,3); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,180); _SFD_CV_INIT_EML_IF(0,0,35,45,57,180); _SFD_CV_INIT_EML_IF(0,1,57,78,90,180); _SFD_CV_INIT_EML_IF(0,2,90,114,126,180); _SFD_CV_INIT_EML_IF(0,3,126,149,161,180); { static int condStart[] = { 64, 72 }; static int condEnd[] = { 70, 78 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,0,64,78,2,0,&(condStart[0]),&(condEnd[0]),3, &(pfixExpr[0])); } { static int condStart[] = { 97, 106 }; static int condEnd[] = { 104, 114 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,97,114,2,2,&(condStart[0]),&(condEnd[0]),3, &(pfixExpr[0])); } { static int condStart[] = { 133, 142 }; static int condEnd[] = { 140, 149 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,2,133,149,2,4,&(condStart[0]),&(condEnd[0]),3, &(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)c2_sf_marshall); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c2_sf_marshall); { real_T *c2_ave; real_T *c2_tap; c2_tap = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c2_ave = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c2_ave); _SFD_SET_DATA_VALUE_PTR(1U, c2_tap); } } } else { sf_debug_reset_current_state_configuration(_chooseTapBMachineNumber_, 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(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, c3_a0()); _SFD_SET_DATA_VALUE_PTR(9U, c3_a1()); _SFD_SET_DATA_VALUE_PTR(1U, c3_a2()); _SFD_SET_DATA_VALUE_PTR(8U, c3_a3()); _SFD_SET_DATA_VALUE_PTR(0U, c3_a4()); _SFD_SET_DATA_VALUE_PTR(6U, c3_a5()); _SFD_SET_DATA_VALUE_PTR(4U, c3_t_sim()); _SFD_SET_DATA_VALUE_PTR(2U, c3_qa()); _SFD_SET_DATA_VALUE_PTR(10U, c3_qap()); _SFD_SET_DATA_VALUE_PTR(7U, 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)) { 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_, 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_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); _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_drawn = (real_T *)ssGetOutputPortSignal(chartInstance.S, 1); c31_pow = (real_T *)ssGetInputPortSignal(chartInstance.S, 1); c31_Vbat = (real_T *)ssGetInputPortSignal(chartInstance.S, 0); _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_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)) { SFc2_ARP_02_RPSsmile_GloveInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc2_ARP_02_RPSsmile_GloveInstanceStruct *) 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_GloveMachineNumber_, 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(_ARP_02_RPSsmile_GloveMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_ARP_02_RPSsmile_GloveMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _ARP_02_RPSsmile_GloveMachineNumber_, 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, _ARP_02_RPSsmile_GloveMachineNumber_,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); } } }