static void mdlRTW_c13_ARP_02_RPSs_Bdr_GK_BIS7(SimStruct *S) { if (sim_mode_is_rtw_gen(S)) { ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB"); } }
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 mdlRTW_c12_Demo_Kinect(SimStruct *S) { if (sim_mode_is_rtw_gen(S)) { ssWriteRTWStrParam(S, "StateflowChartType", "Truth Table"); } }
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 mdlRTW_c4_StateObserver_2(SimStruct *S) { if (sim_mode_is_rtw_gen(S)) { ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB"); } }
static void mdlRTW_c13_DemoSmile_KS(SimStruct *S) { if (sim_mode_is_rtw_gen(S)) { ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB"); } }
static void mdlRTW_c6_DemoGazeFollowWaveIdleRand(SimStruct *S) { if (sim_mode_is_rtw_gen(S)) { ssWriteRTWStrParam(S, "StateflowChartType", "Truth Table"); } }
static void mdlRTW_c16_Final_Project_v3b(SimStruct *S) { if (sim_mode_is_rtw_gen(S)) { ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB"); } }
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)) { SFc6_TTR_mdlInstanceStruct *chartInstance; chartInstance = (SFc6_TTR_mdlInstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _TTR_mdlMachineNumber_, 6, 1, 1, 3, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation(_TTR_mdlMachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_TTR_mdlMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _TTR_mdlMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"u_ctrl"); _SFD_SET_DATA_PROPS(1,2,0,1,"u_ctrl_out"); _SFD_SET_DATA_PROPS(2,1,1,0,"U_bounds"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,1,0,0,0,1,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,729); _SFD_CV_INIT_EML_IF(0,1,0,333,374,538,724); _SFD_CV_INIT_EML_FOR(0,1,0,568,593,720); _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c6_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c6_sf_marshallOut,(MexInFcnForType)c6_sf_marshallIn); { unsigned int dimVector[1]; dimVector[0]= 2; _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c6_b_sf_marshallOut,(MexInFcnForType)NULL); } { real_T *c6_u_ctrl; real_T *c6_u_ctrl_out; real_T (*c6_U_bounds)[2]; c6_U_bounds = (real_T (*)[2])ssGetInputPortSignal(chartInstance->S, 1); c6_u_ctrl_out = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c6_u_ctrl = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c6_u_ctrl); _SFD_SET_DATA_VALUE_PTR(1U, c6_u_ctrl_out); _SFD_SET_DATA_VALUE_PTR(2U, *c6_U_bounds); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _TTR_mdlMachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { 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)) { 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(_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)) { 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 mdlRTW_c41_Expriment_Pose(SimStruct *S) { if (sim_mode_is_rtw_gen(S)) { ssWriteRTWStrParam(S, "StateflowChartType", "Truth Table"); } }
static void mdlRTW_c24_CusakisME4901arcs2(SimStruct *S) { if (sim_mode_is_rtw_gen(S)) { ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB"); } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc13_DemoSmile_KSInstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc13_DemoSmile_KSInstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _DemoSmile_KSMachineNumber_, 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(_DemoSmile_KSMachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_DemoSmile_KSMachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _DemoSmile_KSMachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"win"); _SFD_SET_DATA_PROPS(1,2,0,1,"sat"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,2,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,304); _SFD_CV_INIT_EML_IF(0,1,0,167,177,221,304); _SFD_CV_INIT_EML_IF(0,1,1,221,235,285,304); _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c13_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c13_sf_marshallOut,(MexInFcnForType)c13_sf_marshallIn); { real_T *c13_win; real_T *c13_sat; c13_sat = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); c13_win = (real_T *)ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, c13_win); _SFD_SET_DATA_VALUE_PTR(1U, c13_sat); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _DemoSmile_KSMachineNumber_,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)) { 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)) { SFc17_ManipulatorME4901InstanceStruct *chartInstance; chartInstance = (SFc17_ManipulatorME4901InstanceStruct *) ((ChartInfoStruct *) (ssGetUserData(S)))->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _ManipulatorME4901MachineNumber_, 17, 1, 1, 3, 0, 0, 0, 0, 0, &(chartInstance->chartNumber), &(chartInstance->instanceNumber), ssGetPath(S), (void *)S); if (chartAlreadyPresent==0) { /* this is the first instance */ init_script_number_translation(_ManipulatorME4901MachineNumber_, chartInstance->chartNumber); sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_ManipulatorME4901MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _ManipulatorME4901MachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"u"); _SFD_SET_DATA_PROPS(1,1,1,0,"i"); _SFD_SET_DATA_PROPS(2,2,0,1,"y"); _SFD_STATE_INFO(0,0,2); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); { _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL); } _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); /* Initialization of MATLAB Function Model Coverage */ _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0,0); _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,39); _SFD_TRANS_COV_WTS(0,0,0,1,0); if (chartAlreadyPresent==0) { _SFD_TRANS_COV_MAPS(0, 0,NULL,NULL, 0,NULL,NULL, 1,NULL,NULL, 0,NULL,NULL); } { unsigned int dimVector[1]; dimVector[0]= 6; _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c17_sf_marshallOut,(MexInFcnForType)NULL); } { unsigned int dimVector[1]; dimVector[0]= 6; _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c17_sf_marshallOut,(MexInFcnForType)NULL); } { unsigned int dimVector[1]; dimVector[0]= 6; _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c17_sf_marshallOut,(MexInFcnForType) c17_sf_marshallIn); } { real_T (*c17_u)[6]; real_T (*c17_i)[6]; real_T (*c17_y)[6]; c17_y = (real_T (*)[6])ssGetOutputPortSignal(chartInstance->S, 1); c17_i = (real_T (*)[6])ssGetInputPortSignal(chartInstance->S, 1); c17_u = (real_T (*)[6])ssGetInputPortSignal(chartInstance->S, 0); _SFD_SET_DATA_VALUE_PTR(0U, *c17_u); _SFD_SET_DATA_VALUE_PTR(1U, *c17_i); _SFD_SET_DATA_VALUE_PTR(2U, *c17_y); } } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _ManipulatorME4901MachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, 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 mdlRTW_c17_ManipulatorME4901(SimStruct *S) { if (sim_mode_is_rtw_gen(S)) { ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB"); } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { SFc4_StateObserver_2InstanceStruct *chartInstance; ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); chartInstance = (SFc4_StateObserver_2InstanceStruct *) chartInfo->chartInstance; if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _StateObserver_2MachineNumber_, 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(_StateObserver_2MachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct,_StateObserver_2MachineNumber_, chartInstance->chartNumber,1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _StateObserver_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]= 8; dimVector[1]= 14; _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c4_b_sf_marshallOut,(MexInFcnForType)NULL); } { unsigned int dimVector[2]; dimVector[0]= 14; dimVector[1]= 8; _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0, 1.0,0,0,(MexFcnForType)c4_sf_marshallOut,(MexInFcnForType) c4_sf_marshallIn); } _SFD_SET_DATA_VALUE_PTR(0U, *chartInstance->c4_u); _SFD_SET_DATA_VALUE_PTR(1U, *chartInstance->c4_HT_k); } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _StateObserver_2MachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void mdlSetWorkWidths_c4_MON_sl_after_replacement3(SimStruct *S) { /* Actual parameters from chart: Primary_Side */ const char_T *rtParamNames[] = { "Primary_Side" }; ssSetNumRunTimeParams(S,ssGetSFcnParamsCount(S)); /* registration for Primary_Side*/ ssRegDlgParamAsRunTimeParam(S, 0, 0, rtParamNames[0], SS_BOOLEAN); ssMdlUpdateIsEmpty(S, 1); if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) { mxArray *infoStruct = load_MON_sl_after_replacement3_optimization_info (sim_mode_is_rtw_gen(S), sim_mode_is_modelref_sim(S), sim_mode_is_external (S)); int_T chartIsInlinable = (int_T)sf_is_chart_inlinable(sf_get_instance_specialization(),infoStruct,4); ssSetStateflowIsInlinable(S,chartIsInlinable); ssSetRTWCG(S,1); ssSetEnableFcnIsTrivial(S,1); ssSetDisableFcnIsTrivial(S,1); ssSetNotMultipleInlinable(S,sf_rtw_info_uint_prop (sf_get_instance_specialization(),infoStruct,4, "gatewayCannotBeInlinedMultipleTimes")); sf_set_chart_accesses_machine_info(S, sf_get_instance_specialization(), infoStruct, 4); sf_update_buildInfo(S, sf_get_instance_specialization(),infoStruct,4); if (chartIsInlinable) { ssSetInputPortOptimOpts(S, 0, SS_REUSABLE_AND_LOCAL); ssSetInputPortOptimOpts(S, 1, SS_REUSABLE_AND_LOCAL); ssSetInputPortOptimOpts(S, 2, SS_REUSABLE_AND_LOCAL); ssSetInputPortOptimOpts(S, 3, SS_REUSABLE_AND_LOCAL); sf_mark_chart_expressionable_inputs(S,sf_get_instance_specialization(), infoStruct,4,4); sf_mark_chart_reusable_outputs(S,sf_get_instance_specialization(), infoStruct,4,1); } { unsigned int outPortIdx; for (outPortIdx=1; outPortIdx<=1; ++outPortIdx) { ssSetOutputPortOptimizeInIR(S, outPortIdx, 1U); } } { unsigned int inPortIdx; for (inPortIdx=0; inPortIdx < 4; ++inPortIdx) { ssSetInputPortOptimizeInIR(S, inPortIdx, 1U); } } sf_set_rtw_dwork_info(S,sf_get_instance_specialization(),infoStruct,4); ssSetHasSubFunctions(S,!(chartIsInlinable)); } else { } ssSetOptions(S,ssGetOptions(S)|SS_OPTION_WORKS_WITH_CODE_REUSE); ssSetChecksum0(S,(645941136U)); ssSetChecksum1(S,(444472430U)); ssSetChecksum2(S,(1231278852U)); ssSetChecksum3(S,(2586291620U)); ssSetmdlDerivatives(S, NULL); ssSetExplicitFCSSCtrl(S,1); ssSupportsMultipleExecInstances(S,1); }
static void mdlRTW_c23_ArregloSeisPorSeis(SimStruct *S) { if (sim_mode_is_rtw_gen(S)) { ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB"); } }
static void mdlRTW_c4_MON_sl_after_replacement3(SimStruct *S) { if (sim_mode_is_rtw_gen(S)) { ssWriteRTWStrParam(S, "StateflowChartType", "Stateflow"); } }
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)) { SFc4_MON_sl_after_replacement3InstanceStruct *chartInstance = (SFc4_MON_sl_after_replacement3InstanceStruct *)sf_get_chart_instance_ptr (S); if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) { /* do this only if simulation is starting */ { unsigned int chartAlreadyPresent; chartAlreadyPresent = sf_debug_initialize_chart (sfGlobalDebugInstanceStruct, _MON_sl_after_replacement3MachineNumber_, 4, 0, 14, 0, 6, 0, 0, 0, 0, 0, &chartInstance->chartNumber, &chartInstance->instanceNumber, (void *)S); /* Each instance must initialize its own list of scripts */ init_script_number_translation(_MON_sl_after_replacement3MachineNumber_, chartInstance->chartNumber,chartInstance->instanceNumber); if (chartAlreadyPresent==0) { /* this is the first instance */ sf_debug_set_chart_disable_implicit_casting (sfGlobalDebugInstanceStruct, _MON_sl_after_replacement3MachineNumber_,chartInstance->chartNumber, 1); sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct, _MON_sl_after_replacement3MachineNumber_, chartInstance->chartNumber, 0, 0, 0); _SFD_SET_DATA_PROPS(0,1,1,0,"Sync_From_Active"); _SFD_SET_DATA_PROPS(1,1,1,0,"pre_Active"); _SFD_SET_DATA_PROPS(2,1,1,0,"Error"); _SFD_SET_DATA_PROPS(3,1,1,0,"Sync_From_Error"); _SFD_SET_DATA_PROPS(4,2,0,1,"Active"); _SFD_SET_DATA_PROPS(5,10,0,0,"Primary_Side"); _SFD_CH_SUBSTATE_COUNT(0); _SFD_CH_SUBSTATE_DECOMP(0); } _SFD_CV_INIT_CHART(0,0,0,0); _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL); { static unsigned int sStartGuardMap[] = { 1 }; static unsigned int sEndGuardMap[] = { 6 }; static int sPostFixPredicateTree[] = { 0 }; _SFD_CV_INIT_TRANS(1,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1, &(sPostFixPredicateTree[0])); } _SFD_CV_INIT_TRANS(2,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(3,0,NULL,NULL,0,NULL); { static unsigned int sStartGuardMap[] = { 1, 15, 38, 61 }; static unsigned int sEndGuardMap[] = { 11, 31, 53, 73 }; static int sPostFixPredicateTree[] = { 0, 1, -3, 2, -1, -3, 3, -1, -3 }; _SFD_CV_INIT_TRANS(4,4,&(sStartGuardMap[0]),&(sEndGuardMap[0]),9, &(sPostFixPredicateTree[0])); } _SFD_CV_INIT_TRANS(5,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(6,0,NULL,NULL,0,NULL); { static unsigned int sStartGuardMap[] = { 3, 22, 43 }; static unsigned int sEndGuardMap[] = { 13, 38, 58 }; static int sPostFixPredicateTree[] = { 0, -1, 1, -1, 2, -2, -3 }; _SFD_CV_INIT_TRANS(7,3,&(sStartGuardMap[0]),&(sEndGuardMap[0]),7, &(sPostFixPredicateTree[0])); } _SFD_CV_INIT_TRANS(8,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(9,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(10,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(11,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(12,0,NULL,NULL,0,NULL); _SFD_CV_INIT_TRANS(13,0,NULL,NULL,0,NULL); _SFD_SET_DATA_COMPILED_PROPS(0,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c4_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(1,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c4_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(2,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c4_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(3,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c4_b_sf_marshallOut,(MexInFcnForType)NULL); _SFD_SET_DATA_COMPILED_PROPS(4,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c4_b_sf_marshallOut,(MexInFcnForType)c4_b_sf_marshallIn); _SFD_SET_DATA_COMPILED_PROPS(5,SF_UINT8,0,NULL,0,0,0,0.0,1.0,0,0, (MexFcnForType)c4_b_sf_marshallOut,(MexInFcnForType)c4_b_sf_marshallIn); } } else { sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct, _MON_sl_after_replacement3MachineNumber_,chartInstance->chartNumber, chartInstance->instanceNumber); } } }
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization) { if (!sim_mode_is_rtw_gen(S)) { 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) { 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); } }