static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc1_EVdemo_6InstanceStruct *chartInstance; chartInstance = (SFc1_EVdemo_6InstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _EVdemo_6MachineNumber_, 1, 3, 5, 5, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation(_EVdemo_6MachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_EVdemo_6MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _EVdemo_6MachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,2,0,1,"Mode"); _SFD_SET_DATA_PROPS(1,1,1,0,"spd_err"); _SFD_SET_DATA_PROPS(2,1,1,0,"veh_spd"); _SFD_SET_DATA_PROPS(3,2,0,1,"BrakeSet"); _SFD_SET_DATA_PROPS(4,1,1,0,"spd_ref_rate"); _SFD_STATE_INFO(0,0,0); _SFD_STATE_INFO(1,0,0); _SFD_STATE_INFO(2,0,0); _SFD_CH_SUBSTATE_COUNT(3); _SFD_CH_SUBSTATE_DECOMP(0); _SFD_CH_SUBSTATE_INDEX(0,0); _SFD_CH_SUBSTATE_INDEX(1,1); _SFD_CH_SUBSTATE_INDEX(2,2); _SFD_ST_SUBSTATE_COUNT(0,0); _SFD_ST_SUBSTATE_COUNT(1,0); _SFD_ST_SUBSTATE_COUNT(2,0); } _SFD_CV_INIT_CHART(3,1,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } { _SFD_CV_INIT_STATE(1,0,0,0,0,0,NULL,NULL); } { _SFD_CV_INIT_STATE(2,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); { static unsigned int sStartGuardMap[] = { 1 }; static unsigned int sEndGuardMap[] = { 13 }; static int sPostFixPredicateTree[] = { 0 }; _SFD_CV_INIT_TRANS(2,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, &(sPostFixPredicateTree[0])); } { static unsigned int sStartGuardMap[] = { 2 }; static unsigned int sEndGuardMap[] = { 13 }; static int sPostFixPredicateTree[] = { 0 }; _SFD_CV_INIT_TRANS(1,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, &(sPostFixPredicateTree[0])); } { static unsigned int sStartGuardMap[] = { 2, 20, 38 }; static unsigned int sEndGuardMap[] = { 15, 34, 53 }; static int sPostFixPredicateTree[] = { 0, 1, -3, 2, -3 }; _SFD_CV_INIT_TRANS(4,3,&(sStartGuardMap[0]),&(sEndGuardMap[0]),5, &(sPostFixPredicateTree[0])); } { static unsigned int sStartGuardMap[] = { 2, 20, 38 }; static unsigned int sEndGuardMap[] = { 14, 34, 53 }; static int sPostFixPredicateTree[] = { 0, 1, -3, 2, -3 }; _SFD_CV_INIT_TRANS(3,3,&(sStartGuardMap[0]),&(sEndGuardMap[0]),5, &(sPostFixPredicateTree[0])); } _SFD_SET_DATA_COMPILED_PROPS(0,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)c1_b_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(1,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_c_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(2,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_c_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_d_sf_marshallOut,(MexInFcnForType)c1_c_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(4,SF_SINGLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c1_c_sf_marshallOut,(MexInFcnForType)NULL); { uint8_T *c1_Mode; real32_T *c1_spd_err; real32_T *c1_veh_spd; boolean_T *c1_BrakeSet; real32_T *c1_spd_ref_rate; c1_spd_ref_rate = (real32_T *)ssGetInputPortSignal(chartInstance->S, 2); c1_BrakeSet = (boolean_T *)ssGetOutputPortSignal(chartInstance->S, 2); c1_veh_spd = (real32_T *)ssGetInputPortSignal(chartInstance->S, 1); c1_spd_err = (real32_T *)ssGetInputPortSignal(chartInstance->S, 0); c1_Mode = (uint8_T *)ssGetOutputPortSignal(chartInstance->S, 1); _SFD_SET_DATA_VALUE_PTR(0U, c1_Mode); _SFD_SET_DATA_VALUE_PTR(1U, c1_spd_err); _SFD_SET_DATA_VALUE_PTR(2U, c1_veh_spd); _SFD_SET_DATA_VALUE_PTR(3U, c1_BrakeSet); _SFD_SET_DATA_VALUE_PTR(4U, c1_spd_ref_rate); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _EVdemo_6MachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { 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_ARP_02_RPSsmile_Glove_atomicErrorInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc3_ARP_02_RPSsmile_Glove_atomicErrorInstanceStruct *) 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_Glove_atomicErrorMachineNumber_, 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_Glove_atomicErrorMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct, _ARP_02_RPSsmile_Glove_atomicErrorMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _ARP_02_RPSsmile_Glove_atomicErrorMachineNumber_, 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_Glove_atomicErrorMachineNumber_, 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(_trajectory_testMachineNumber_, 4, 1, 1, 11, 0, 0, 0, 0, &(chartInstance.chartNumber), &(chartInstance.instanceNumber), ssGetPath(S), (void *)S); if(chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting(_trajectory_testMachineNumber_,chartInstance.chartNumber,1); sf_debug_set_chart_event_thresholds(_trajectory_testMachineNumber_, 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, c4_a0()); _SFD_SET_DATA_VALUE_PTR(6U, c4_a1()); _SFD_SET_DATA_VALUE_PTR(2U, c4_a2()); _SFD_SET_DATA_VALUE_PTR(10U, c4_a3()); _SFD_SET_DATA_VALUE_PTR(8U, c4_a4()); _SFD_SET_DATA_VALUE_PTR(1U, c4_a5()); _SFD_SET_DATA_VALUE_PTR(4U, c4_t_sim()); _SFD_SET_DATA_VALUE_PTR(9U, c4_qa()); _SFD_SET_DATA_VALUE_PTR(3U, c4_qap()); _SFD_SET_DATA_VALUE_PTR(0U, c4_qapp()); _SFD_SET_DATA_VALUE_PTR(5U, c4_t_end()); } } } else { sf_debug_reset_current_state_configuration(_trajectory_testMachineNumber_,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)) { 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(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)) { SFc7_NMPC_ControllerInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc7_NMPC_ControllerInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _NMPC_ControllerMachineNumber_, 7, 1, 1, 0, 2, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize its own list of scripts */ init_script_number_translation(_NMPC_ControllerMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_NMPC_ControllerMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _NMPC_ControllerMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"u"); _SFD_SET_DATA_PROPS(1,2,0,1,"y"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,4,0,0,0,0,0,8,4); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,395); _SFD_CV_INIT_EML_IF(0,1,0,145,164,196,219); _SFD_CV_INIT_EML_IF(0,1,1,196,219,253,369); _SFD_CV_INIT_EML_IF(0,1,2,253,276,311,369); _SFD_CV_INIT_EML_IF(0,1,3,311,334,-1,334); { static int condStart[] = { 148, 158 }; static int condEnd[] = { 154, 164 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,0,148,164,2,0,&(condStart[0]),&(condEnd[0]), 3,&(pfixExpr[0])); } { static int condStart[] = { 203, 213 }; static int condEnd[] = { 209, 219 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,1,203,219,2,2,&(condStart[0]),&(condEnd[0]), 3,&(pfixExpr[0])); } { static int condStart[] = { 260, 270 }; static int condEnd[] = { 266, 276 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,2,260,276,2,4,&(condStart[0]),&(condEnd[0]), 3,&(pfixExpr[0])); } { static int condStart[] = { 318, 328 }; static int condEnd[] = { 324, 334 }; static int pfixExpr[] = { 0, 1, -3 }; _SFD_CV_INIT_EML_MCDC(0,1,3,318,334,2,6,&(condStart[0]),&(condEnd[0]), 3,&(pfixExpr[0])); } _SFD_CV_INIT_EML_RELATIONAL(0,1,0,148,154,-1,4); _SFD_CV_INIT_EML_RELATIONAL(0,1,1,158,164,-1,4); _SFD_CV_INIT_EML_RELATIONAL(0,1,2,203,209,-1,4); _SFD_CV_INIT_EML_RELATIONAL(0,1,3,213,219,-1,2); _SFD_CV_INIT_EML_RELATIONAL(0,1,4,260,266,-1,2); _SFD_CV_INIT_EML_RELATIONAL(0,1,5,270,276,-1,2); _SFD_CV_INIT_EML_RELATIONAL(0,1,6,318,324,-1,2); _SFD_CV_INIT_EML_RELATIONAL(0,1,7,328,334,-1,4); { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c7_b_sf_marshallOut,(MexInFcnForType)NULL); } _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c7_sf_marshallOut,(MexInFcnForType)c7_sf_marshallIn); _SFD_SET_DATA_VALUE_PTR(0U, *chartInstance->c7_u); _SFD_SET_DATA_VALUE_PTR(1U, chartInstance->c7_y); } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _NMPC_ControllerMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc2_SerialInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc2_SerialInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _SerialMachineNumber_, 2, 1, 1, 0, 4, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_SerialMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_SerialMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _SerialMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,2,0,1,"data"); _SFD_SET_DATA_PROPS(1,2,0,1,"length"); _SFD_SET_DATA_PROPS(2,1,1,0,"dataOut"); _SFD_SET_DATA_PROPS(3,1,1,0,"lengthOut"); _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,5,0,0,0,0,0,1,1); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,779); _SFD_CV_INIT_EML_IF(0,1,0,130,154,-1,777); _SFD_CV_INIT_EML_IF(0,1,1,159,179,-1,300); _SFD_CV_INIT_EML_IF(0,1,2,305,318,-1,773); _SFD_CV_INIT_EML_IF(0,1,3,481,495,-1,565); _SFD_CV_INIT_EML_IF(0,1,4,574,588,-1,765); { static int condStart[] = { 134 }; static int condEnd[] = { 154 }; static int pfixExpr[] = { 0, -1 }; _SFD_CV_INIT_EML_MCDC(0,1,0,133,154,1,0,&(condStart[0]),&(condEnd[0]), 2,&(pfixExpr[0])); } { unsigned int dimVector[1]; dimVector[0]= 256; _SFD_SET_DATA_COMPILED_PROPS(0,SF_UINT8,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c2_b_sf_marshallOut,(MexInFcnForType) c2_b_sf_marshallIn); } _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); { unsigned int dimVector[1]; dimVector[0]= 256; _SFD_SET_DATA_COMPILED_PROPS(2,SF_UINT8,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c2_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)c2_c_sf_marshallOut,(MexInFcnForType)NULL); { int32_T *c2_length; uint8_T *c2_lengthOut; uint8_T (*c2_data)[256]; uint8_T (*c2_dataOut)[256]; c2_lengthOut = (uint8_T *)ssGetInputPortSignal(chartInstance->S, 1); c2_dataOut = (uint8_T (*)[256])ssGetInputPortSignal(chartInstance->S, 0); c2_length = (int32_T *)ssGetOutputPortSignal(chartInstance->S, 2); c2_data = (uint8_T (*)[256])ssGetOutputPortSignal(chartInstance->S, 1); _SFD_SET_DATA_VALUE_PTR(0U, *c2_data); _SFD_SET_DATA_VALUE_PTR(1U, c2_length); _SFD_SET_DATA_VALUE_PTR(2U, *c2_dataOut); _SFD_SET_DATA_VALUE_PTR(3U, c2_lengthOut); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _SerialMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc40_Demo_GloveInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc40_Demo_GloveInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _Demo_GloveMachineNumber_, 40, 1, 1, 0, 7, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_Demo_GloveMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_Demo_GloveMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _Demo_GloveMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"r1"); _SFD_SET_DATA_PROPS(1,2,0,1,"y"); _SFD_SET_DATA_PROPS(2,1,1,0,"r2"); _SFD_SET_DATA_PROPS(3,1,1,0,"r3"); _SFD_SET_DATA_PROPS(4,1,1,0,"r4"); _SFD_SET_DATA_PROPS(5,1,1,0,"r5"); _SFD_SET_DATA_PROPS(6,1,1,0,"r6"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,184); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c40_b_sf_marshallOut,(MexInFcnForType)NULL); { unsigned int dimVector[2]; dimVector[0]= 1; dimVector[1]= 6; _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c40_sf_marshallOut,(MexInFcnForType) c40_sf_marshallIn); } _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c40_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c40_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c40_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c40_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(6,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c40_b_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c40_r1; real_T *c40_r2; real_T *c40_r3; real_T *c40_r4; real_T *c40_r5; real_T *c40_r6; real_T (*c40_y)[6]; c40_r6 = (real_T *)ssGetInputPortSignal(chartInstance->S, 5); c40_r5 = (real_T *)ssGetInputPortSignal(chartInstance->S, 4); c40_r4 = (real_T *)ssGetInputPortSignal(chartInstance->S, 3); c40_r3 = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c40_r2 = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c40_y = (real_T (*)[6])ssGetOutputPortSignal(chartInstance->S, 1); c40_r1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c40_r1); _SFD_SET_DATA_VALUE_PTR(1U, *c40_y); _SFD_SET_DATA_VALUE_PTR(2U, c40_r2); _SFD_SET_DATA_VALUE_PTR(3U, c40_r3); _SFD_SET_DATA_VALUE_PTR(4U, c40_r4); _SFD_SET_DATA_VALUE_PTR(5U, c40_r5); _SFD_SET_DATA_VALUE_PTR(6U, c40_r6); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _Demo_GloveMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc6_motor_control_with_homebrew_SVPWMInstanceStruct *chartInstance; chartInstance = (SFc6_motor_control_with_homebrew_SVPWMInstanceStruct *) ((ChartInfoStruct *)(ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_motor_control_with_homebrew_SVPWMMachineNumber_, 6, 1, 1, 5, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation (_motor_control_with_homebrew_SVPWMMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (_motor_control_with_homebrew_SVPWMMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds (_motor_control_with_homebrew_SVPWMMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"Xd"); _SFD_SET_DATA_PROPS(1,2,0,1,"Xalpha"); _SFD_SET_DATA_PROPS(2,1,1,0,"Xq"); _SFD_SET_DATA_PROPS(3,1,1,0,"theta"); _SFD_SET_DATA_PROPS(4,2,0,1,"Xbeta"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,234); _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c6_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c6_sf_marshallOut,(MexInFcnForType)c6_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c6_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c6_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c6_sf_marshallOut,(MexInFcnForType)c6_sf_marshallIn); { real_T *c6_Xd; real_T *c6_Xalpha; real_T *c6_Xq; real_T *c6_theta; real_T *c6_Xbeta; c6_Xbeta = (real_T *)ssGetOutputPortSignal(chartInstance->S, 2); c6_theta = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c6_Xq = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c6_Xalpha = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c6_Xd = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c6_Xd); _SFD_SET_DATA_VALUE_PTR(1U, c6_Xalpha); _SFD_SET_DATA_VALUE_PTR(2U, c6_Xq); _SFD_SET_DATA_VALUE_PTR(3U, c6_theta); _SFD_SET_DATA_VALUE_PTR(4U, c6_Xbeta); } } } else { sf_debug_reset_current_state_configuration (_motor_control_with_homebrew_SVPWMMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc9_QPSK_Transmit_v12dInstanceStruct *chartInstance; chartInstance = (SFc9_QPSK_Transmit_v12dInstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_QPSK_Transmit_v12dMachineNumber_, 9, 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(_QPSK_Transmit_v12dMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (_QPSK_Transmit_v12dMachineNumber_,chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_QPSK_Transmit_v12dMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"d_in"); _SFD_SET_DATA_PROPS(1,2,0,1,"d_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,86); _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,1, (MexFcnForType)c9_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_INT16,0,NULL,1,1,12,0,1,-11,1, (MexFcnForType)c9_f_sf_marshallOut,(MexInFcnForType)c9_d_sf_marshallIn); { creal_T *c9_d_in; cint16_T *c9_d_out; c9_d_out = (cint16_T *)ssGetOutputPortSignal(chartInstance->S, 1); c9_d_in = (creal_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c9_d_in); _SFD_SET_DATA_VALUE_PTR(1U, c9_d_out); } } } else { sf_debug_reset_current_state_configuration (_QPSK_Transmit_v12dMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc37_Demo_EP_IdleRandMergInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc37_Demo_EP_IdleRandMergInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _Demo_EP_IdleRandMergMachineNumber_, 37, 1, 1, 0, 3, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_Demo_EP_IdleRandMergMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_Demo_EP_IdleRandMergMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _Demo_EP_IdleRandMergMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"extrovert"); _SFD_SET_DATA_PROPS(1,2,0,1,"personality"); _SFD_SET_DATA_PROPS(2,1,1,0,"neurotic"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,3,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,310); _SFD_CV_INIT_EML_IF(0,1,0,87,103,205,310); _SFD_CV_INIT_EML_IF(0,1,1,108,123,161,204); _SFD_CV_INIT_EML_IF(0,1,2,214,229,264,306); _SFD_SET_DATA_COMPILED_PROPS(0,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c37_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c37_sf_marshallOut,(MexInFcnForType)c37_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c37_b_sf_marshallOut,(MexInFcnForType)NULL); { boolean_T *c37_extrovert; real_T *c37_personality; boolean_T *c37_neurotic; c37_neurotic = (boolean_T *)ssGetInputPortSignal(chartInstance->S, 1); c37_personality = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c37_extrovert = (boolean_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c37_extrovert); _SFD_SET_DATA_VALUE_PTR(1U, c37_personality); _SFD_SET_DATA_VALUE_PTR(2U, c37_neurotic); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _Demo_EP_IdleRandMergMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc9_testing_control_with_estimateInstanceStruct *chartInstance; chartInstance = (SFc9_testing_control_with_estimateInstanceStruct *) ((ChartInfoStruct *)(ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_testing_control_with_estimateMachineNumber_, 9, 1, 1, 7, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation (_testing_control_with_estimateMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (_testing_control_with_estimateMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds (_testing_control_with_estimateMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"s1"); _SFD_SET_DATA_PROPS(1,2,0,1,"Va"); _SFD_SET_DATA_PROPS(2,1,1,0,"dc1"); _SFD_SET_DATA_PROPS(3,1,1,0,"s2"); _SFD_SET_DATA_PROPS(4,1,1,0,"dc2"); _SFD_SET_DATA_PROPS(5,2,0,1,"Vb"); _SFD_SET_DATA_PROPS(6,2,0,1,"Vc"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,6,0,1,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,1286); _SFD_CV_INIT_EML_IF(0,1,0,491,500,541,591); _SFD_CV_INIT_EML_IF(0,1,1,611,620,663,713); _SFD_CV_INIT_EML_IF(0,1,2,733,742,785,835); _SFD_CV_INIT_EML_IF(0,1,3,855,866,909,958); _SFD_CV_INIT_EML_IF(0,1,4,978,987,1030,1079); _SFD_CV_INIT_EML_IF(0,1,5,1108,1117,1160,1209); { static int caseStart[] = { 1214, 476, 596, 718, 840, 963, 1084 }; static int caseExprEnd[] = { 1223, 482, 602, 724, 846, 969, 1090 }; _SFD_CV_INIT_EML_SWITCH(0,1,0,456,466,1236,7,&(caseStart[0]), &(caseExprEnd[0])); } _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)c9_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)c9_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(6,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)c9_sf_marshallIn); { real_T *c9_s1; real_T *c9_Va; real_T *c9_dc1; real_T *c9_s2; real_T *c9_dc2; real_T *c9_Vb; real_T *c9_Vc; c9_Vc = (real_T *)ssGetOutputPortSignal(chartInstance->S, 3); c9_Vb = (real_T *)ssGetOutputPortSignal(chartInstance->S, 2); c9_dc2 = (real_T *)ssGetInputPortSignal(chartInstance->S, 3); c9_s2 = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c9_dc1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c9_Va = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c9_s1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c9_s1); _SFD_SET_DATA_VALUE_PTR(1U, c9_Va); _SFD_SET_DATA_VALUE_PTR(2U, c9_dc1); _SFD_SET_DATA_VALUE_PTR(3U, c9_s2); _SFD_SET_DATA_VALUE_PTR(4U, c9_dc2); _SFD_SET_DATA_VALUE_PTR(5U, c9_Vb); _SFD_SET_DATA_VALUE_PTR(6U, c9_Vc); } } } else { sf_debug_reset_current_state_configuration (_testing_control_with_estimateMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc7_NavigationObserver_2InstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc7_NavigationObserver_2InstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _NavigationObserver_2MachineNumber_, 7, 1, 1, 0, 2, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize its own list of scripts */ init_script_number_translation(_NavigationObserver_2MachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_NavigationObserver_2MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _NavigationObserver_2MachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"u"); _SFD_SET_DATA_PROPS(1,2,0,1,"HT_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,0,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,44); { unsigned int dimVector[2]; dimVector[0]= 6; dimVector[1]= 6; _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c7_sf_marshallOut,(MexInFcnForType)NULL); } { unsigned int dimVector[2]; dimVector[0]= 6; dimVector[1]= 6; _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c7_sf_marshallOut,(MexInFcnForType) c7_sf_marshallIn); } _SFD_SET_DATA_VALUE_PTR(0U, *chartInstance->c7_u); _SFD_SET_DATA_VALUE_PTR(1U, *chartInstance->c7_HT_k); } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _NavigationObserver_2MachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc5_MigrationBGOW_Proto6_MultiSwarmInstanceStruct *chartInstance; chartInstance = (SFc5_MigrationBGOW_Proto6_MultiSwarmInstanceStruct *) ((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, _MigrationBGOW_Proto6_MultiSwarmMachineNumber_, 5, 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 (_MigrationBGOW_Proto6_MultiSwarmMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct, _MigrationBGOW_Proto6_MultiSwarmMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _MigrationBGOW_Proto6_MultiSwarmMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"x"); _SFD_SET_DATA_PROPS(1,1,1,0,"y"); _SFD_SET_DATA_PROPS(2,2,0,1,"z"); _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,99); _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)c5_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c5_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c5_sf_marshallOut,(MexInFcnForType)c5_sf_marshallIn); { real_T *c5_x; real_T *c5_y; real_T *c5_z; c5_z = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c5_y = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c5_x = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c5_x); _SFD_SET_DATA_VALUE_PTR(1U, c5_y); _SFD_SET_DATA_VALUE_PTR(2U, c5_z); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _MigrationBGOW_Proto6_MultiSwarmMachineNumber_, 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)) { SFc9_ekffedepreInstanceStruct *chartInstance; chartInstance = (SFc9_ekffedepreInstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_ekffedepreMachineNumber_, 9, 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(_ekffedepreMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting(_ekffedepreMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_ekffedepreMachineNumber_, 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)c9_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)c9_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c9_sfasamento; real_T *c9_wave; real_T *c9_ampiezza; real_T *c9_frequenza; real_T *c9_noise; real_T *c9_t; c9_t = (real_T *)ssGetInputPortSignal(chartInstance->S, 4); c9_noise = (real_T *)ssGetInputPortSignal(chartInstance->S, 3); c9_frequenza = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c9_ampiezza = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c9_wave = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c9_sfasamento = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c9_sfasamento); _SFD_SET_DATA_VALUE_PTR(1U, c9_wave); _SFD_SET_DATA_VALUE_PTR(2U, c9_ampiezza); _SFD_SET_DATA_VALUE_PTR(3U, c9_frequenza); _SFD_SET_DATA_VALUE_PTR(4U, c9_noise); _SFD_SET_DATA_VALUE_PTR(5U, c9_t); } } } else { sf_debug_reset_current_state_configuration(_ekffedepreMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc13_Expriment_GazeInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc13_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_, 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(_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,2,0,1,"a2"); _SFD_SET_DATA_PROPS(1,1,1,0,"a1"); _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)c13_sf_marshallOut,(MexInFcnForType)c13_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c13_sf_marshallOut,(MexInFcnForType)NULL); { real_T *c13_a2; real_T *c13_a1; c13_a1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); c13_a2 = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); _SFD_SET_DATA_VALUE_PTR(0U, c13_a2); _SFD_SET_DATA_VALUE_PTR(1U, c13_a1); } } } 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)) { SFc3_RaspPiPilotInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc3_RaspPiPilotInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _RaspPiPilotMachineNumber_, 3, 1, 1, 0, 1, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_RaspPiPilotMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_RaspPiPilotMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _RaspPiPilotMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,2,0,1,"result"); _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,1,1); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,129); _SFD_CV_INIT_EML_IF(0,1,0,48,72,-1,128); { static int condStart[] = { 52 }; static int condEnd[] = { 72 }; static int pfixExpr[] = { 0, -1 }; _SFD_CV_INIT_EML_MCDC(0,1,0,51,72,1,0,&(condStart[0]),&(condEnd[0]),2, &(pfixExpr[0])); } _SFD_SET_DATA_COMPILED_PROPS(0,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c3_sf_marshallOut,(MexInFcnForType)c3_sf_marshallIn); { uint8_T *c3_result; c3_result = (uint8_T *)ssGetOutputPortSignal(chartInstance->S, 1); _SFD_SET_DATA_VALUE_PTR(0U, c3_result); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _RaspPiPilotMachineNumber_,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)) { SFc21_DemoGazeFollowWaveIdleRandInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc21_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_, 21, 1, 1, 0, 3, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), (void *)S); /* Each instance must initialize ist own list of scripts */ init_script_number_translation(_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,"R"); _SFD_SET_DATA_PROPS(1,1,1,0,"L"); _SFD_SET_DATA_PROPS(2,2,0,1,"y"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,5,4,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"tt_blk_kernel",0,-1,739); _SFD_CV_INIT_EML_FCN(0,1,"aFcnTruthTableAction_1",739,-1,796); _SFD_CV_INIT_EML_FCN(0,2,"aFcnTruthTableAction_2",796,-1,856); _SFD_CV_INIT_EML_FCN(0,3,"aFcnTruthTableAction_3",856,-1,915); _SFD_CV_INIT_EML_FCN(0,4,"aFcnTruthTableAction_4",915,-1,974); _SFD_CV_INIT_EML_IF(0,1,0,433,463,494,737); _SFD_CV_INIT_EML_IF(0,1,1,494,528,559,737); _SFD_CV_INIT_EML_IF(0,1,2,559,593,624,737); _SFD_CV_INIT_EML_IF(0,1,3,624,658,689,737); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c21_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c21_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c21_sf_marshallOut,(MexInFcnForType)c21_sf_marshallIn); { real_T *c21_R; real_T *c21_L; real_T *c21_y; c21_y = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c21_L = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c21_R = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c21_R); _SFD_SET_DATA_VALUE_PTR(1U, c21_L); _SFD_SET_DATA_VALUE_PTR(2U, c21_y); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _DemoGazeFollowWaveIdleRandMachineNumber_,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, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_adcs_v15_integral_Power_nom_no_charge_in_detumbMachineNumber_, 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 (_adcs_v15_integral_Power_nom_no_charge_in_detumbMachineNumber_, chartInstance.chartNumber); sf_debug_set_chart_disable_implicit_casting (_adcs_v15_integral_Power_nom_no_charge_in_detumbMachineNumber_, chartInstance.chartNumber,1); sf_debug_set_chart_event_thresholds (_adcs_v15_integral_Power_nom_no_charge_in_detumbMachineNumber_, chartInstance.chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"a",0, (MexFcnForType)c6_sf_marshall); _SFD_SET_DATA_PROPS(1,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"y",0, (MexFcnForType)c6_sf_marshall); _SFD_SET_DATA_PROPS(2,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,"b",0, (MexFcnForType)c6_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,67); _SFD_CV_INIT_EML_IF(0,0,48,54,-1,67); _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 *c6_a; real_T *c6_y; real_T *c6_b; c6_b = (real_T *)ssGetInputPortSignal(chartInstance.S, 1); c6_y = (real_T *)ssGetOutputPortSignal(chartInstance.S, 1); c6_a = (real_T *)ssGetInputPortSignal(chartInstance.S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c6_a); _SFD_SET_DATA_VALUE_PTR(1U, c6_y); _SFD_SET_DATA_VALUE_PTR(2U, c6_b); } } } else { sf_debug_reset_current_state_configuration (_adcs_v15_integral_Power_nom_no_charge_in_detumbMachineNumber_, chartInstance.chartNumber,chartInstance.instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { 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)) { 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)) { 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)) { SFc27_ArregloSeisPorSeisInstanceStruct *chartInstance; chartInstance = (SFc27_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_, 27, 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)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); _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c27_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); { real_T *c27_V; real_T *c27_I; real_T *c27_Radiacion; real_T *c27_Temp; c27_Temp = (real_T *)ssGetInputPortSignal(chartInstance->S, 2); c27_Radiacion = (real_T *)ssGetInputPortSignal(chartInstance->S, 1); c27_I = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c27_V = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c27_V); _SFD_SET_DATA_VALUE_PTR(1U, c27_I); _SFD_SET_DATA_VALUE_PTR(2U, c27_Radiacion); _SFD_SET_DATA_VALUE_PTR(3U, c27_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)) { SFc2_hapticsSimBlk_pdInstanceStruct *chartInstance; chartInstance = (SFc2_hapticsSimBlk_pdInstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (_hapticsSimBlk_pdMachineNumber_, 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(_hapticsSimBlk_pdMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (_hapticsSimBlk_pdMachineNumber_,chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(_hapticsSimBlk_pdMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"u"); _SFD_SET_DATA_PROPS(1,2,0,1,"y"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,38); _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } { unsigned int dimVector[1]; dimVector[0]= 3; _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL); } { 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)c2_sf_marshallOut,(MexInFcnForType) c2_sf_marshallIn); } { real_T (*c2_u)[3]; real_T (*c2_y)[3]; c2_y = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 1); c2_u = (real_T (*)[3])ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, *c2_u); _SFD_SET_DATA_VALUE_PTR(1U, *c2_y); } } } else { sf_debug_reset_current_state_configuration(_hapticsSimBlk_pdMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc14_DemoWalk_KInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc14_DemoWalk_KInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _DemoWalk_KMachineNumber_, 14, 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(_DemoWalk_KMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_DemoWalk_KMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _DemoWalk_KMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"interactionState"); _SFD_SET_DATA_PROPS(1,2,0,1,"arousalFlag"); _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,5,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,768); _SFD_CV_INIT_EML_IF(0,1,0,370,393,440,768); _SFD_CV_INIT_EML_IF(0,1,1,440,467,516,768); _SFD_CV_INIT_EML_IF(0,1,2,516,543,592,768); _SFD_CV_INIT_EML_IF(0,1,3,592,619,666,768); _SFD_CV_INIT_EML_IF(0,1,4,666,693,740,768); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c14_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c14_sf_marshallOut,(MexInFcnForType)c14_sf_marshallIn); { real_T *c14_interactionState; real_T *c14_arousalFlag; c14_arousalFlag = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c14_interactionState = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c14_interactionState); _SFD_SET_DATA_VALUE_PTR(1U, c14_arousalFlag); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _DemoWalk_KMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }