本文整理汇总了C++中sim_mode_is_rtw_gen函数的典型用法代码示例。如果您正苦于以下问题:C++ sim_mode_is_rtw_gen函数的具体用法?C++ sim_mode_is_rtw_gen怎么用?C++ sim_mode_is_rtw_gen使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sim_mode_is_rtw_gen函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: mdlRTW_c13_ARP_02_RPSs_Bdr_GK_BIS7
static void mdlRTW_c13_ARP_02_RPSs_Bdr_GK_BIS7(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S)) {
ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB");
}
}
示例2: chart_debug_initialization
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);
}
}
}
示例3: mdlRTW_c12_Demo_Kinect
static void mdlRTW_c12_Demo_Kinect(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S)) {
ssWriteRTWStrParam(S, "StateflowChartType", "Truth Table");
}
}
示例4: chart_debug_initialization
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);
}
}
}
示例5: mdlRTW_c4_StateObserver_2
static void mdlRTW_c4_StateObserver_2(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S)) {
ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB");
}
}
示例6: mdlRTW_c13_DemoSmile_KS
static void mdlRTW_c13_DemoSmile_KS(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S)) {
ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB");
}
}
示例7: mdlRTW_c6_DemoGazeFollowWaveIdleRand
static void mdlRTW_c6_DemoGazeFollowWaveIdleRand(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S)) {
ssWriteRTWStrParam(S, "StateflowChartType", "Truth Table");
}
}
示例8: mdlRTW_c16_Final_Project_v3b
static void mdlRTW_c16_Final_Project_v3b(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S)) {
ssWriteRTWStrParam(S, "StateflowChartType", "Embedded MATLAB");
}
}
示例9: chart_debug_initialization
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);
//.........这里部分代码省略.........
示例10: chart_debug_initialization
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);
}
}
//.........这里部分代码省略.........
示例11: chart_debug_initialization
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);
}
}
}
示例12: chart_debug_initialization
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);
}
//.........这里部分代码省略.........
示例13: chart_debug_initialization
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);
}
}
示例14: chart_debug_initialization
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);
}
}
}
示例15: mdlRTW_c41_Expriment_Pose
static void mdlRTW_c41_Expriment_Pose(SimStruct *S)
{
if (sim_mode_is_rtw_gen(S)) {
ssWriteRTWStrParam(S, "StateflowChartType", "Truth Table");
}
}