本文整理汇总了C++中sf_debug_initialize_chart函数的典型用法代码示例。如果您正苦于以下问题:C++ sf_debug_initialize_chart函数的具体用法?C++ sf_debug_initialize_chart怎么用?C++ sf_debug_initialize_chart使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sf_debug_initialize_chart函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: chart_debug_initialization
static void chart_debug_initialization(SimStruct *S, unsigned int
fullDebuggerInitialization)
{
if (!sim_mode_is_rtw_gen(S)) {
SFc25_BuckBoost1InstanceStruct *chartInstance;
chartInstance = (SFc25_BuckBoost1InstanceStruct *) ((ChartInfoStruct *)
(ssGetUserData(S)))->chartInstance;
if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
/* do this only if simulation is starting */
{
unsigned int chartAlreadyPresent;
chartAlreadyPresent = sf_debug_initialize_chart
(_BuckBoost1MachineNumber_,
25,
1,
1,
3,
0,
0,
0,
0,
0,
&(chartInstance->chartNumber),
&(chartInstance->instanceNumber),
ssGetPath(S),
(void *)S);
if (chartAlreadyPresent==0) {
/* this is the first instance */
init_script_number_translation(_BuckBoost1MachineNumber_,
chartInstance->chartNumber);
sf_debug_set_chart_disable_implicit_casting(_BuckBoost1MachineNumber_,
chartInstance->chartNumber,1);
sf_debug_set_chart_event_thresholds(_BuckBoost1MachineNumber_,
chartInstance->chartNumber,
0,
0,
0);
_SFD_SET_DATA_PROPS(0,1,1,0,"Ts");
_SFD_SET_DATA_PROPS(1,1,1,0,"TimeCNT_k1");
_SFD_SET_DATA_PROPS(2,2,0,1,"TimeCNT_k");
_SFD_STATE_INFO(0,0,2);
_SFD_CH_SUBSTATE_COUNT(0);
_SFD_CH_SUBSTATE_DECOMP(0);
}
_SFD_CV_INIT_CHART(0,0,0,0);
{
_SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);
}
_SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);
/* Initialization of MATLAB Function Model Coverage */
_SFD_CV_INIT_EML(0,1,1,1,0,0,0,0,0,0,0);
_SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,209);
_SFD_CV_INIT_EML_IF(0,1,0,126,148,166,204);
_SFD_TRANS_COV_WTS(0,0,0,1,0);
if (chartAlreadyPresent==0) {
_SFD_TRANS_COV_MAPS(0,
0,NULL,NULL,
0,NULL,NULL,
1,NULL,NULL,
0,NULL,NULL);
}
_SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
(MexFcnForType)c25_sf_marshallOut,(MexInFcnForType)NULL);
_SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
(MexFcnForType)c25_sf_marshallOut,(MexInFcnForType)NULL);
_SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
(MexFcnForType)c25_sf_marshallOut,(MexInFcnForType)c25_sf_marshallIn);
{
real_T *c25_Ts;
real_T *c25_TimeCNT_k1;
real_T *c25_TimeCNT_k;
c25_TimeCNT_k = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
c25_TimeCNT_k1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);
c25_Ts = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);
_SFD_SET_DATA_VALUE_PTR(0U, c25_Ts);
_SFD_SET_DATA_VALUE_PTR(1U, c25_TimeCNT_k1);
_SFD_SET_DATA_VALUE_PTR(2U, c25_TimeCNT_k);
}
}
} else {
sf_debug_reset_current_state_configuration(_BuckBoost1MachineNumber_,
chartInstance->chartNumber,chartInstance->instanceNumber);
}
}
}
开发者ID:harriwijaya,项目名称:sys_id_cond_mon,代码行数:91,代码来源:c25_BuckBoost1.c
示例2: chart_debug_initialization
static void chart_debug_initialization(SimStruct *S, unsigned int
fullDebuggerInitialization)
{
if (!sim_mode_is_rtw_gen(S)) {
SFc35_Expriment_PoseInstanceStruct *chartInstance;
ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
chartInstance = (SFc35_Expriment_PoseInstanceStruct *)
chartInfo->chartInstance;
if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
/* do this only if simulation is starting */
{
unsigned int chartAlreadyPresent;
chartAlreadyPresent = sf_debug_initialize_chart
(sfGlobalDebugInstanceStruct,
_Expriment_PoseMachineNumber_,
35,
2,
1,
0,
1,
0,
0,
0,
0,
1,
&(chartInstance->chartNumber),
&(chartInstance->instanceNumber),
(void *)S);
/* Each instance must initialize ist own list of scripts */
init_script_number_translation(_Expriment_PoseMachineNumber_,
chartInstance->chartNumber,chartInstance->instanceNumber);
if (chartAlreadyPresent==0) {
/* this is the first instance */
sf_debug_set_chart_disable_implicit_casting
(sfGlobalDebugInstanceStruct,_Expriment_PoseMachineNumber_,
chartInstance->chartNumber,1);
sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
_Expriment_PoseMachineNumber_,
chartInstance->chartNumber,
0,
0,
0);
_SFD_SET_DATA_PROPS(0,8,0,0,"");
_SFD_STATE_INFO(1,0,0);
_SFD_STATE_INFO(0,0,2);
_SFD_CH_SUBSTATE_COUNT(1);
_SFD_CH_SUBSTATE_DECOMP(0);
_SFD_CH_SUBSTATE_INDEX(0,1);
_SFD_ST_SUBSTATE_COUNT(1,0);
}
_SFD_CV_INIT_CHART(1,0,0,0);
{
_SFD_CV_INIT_STATE(1,0,0,0,0,0,NULL,NULL);
}
{
_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_SCRIPT(0,1,0,0,0,0,0,0,0,0);
_SFD_CV_INIT_SCRIPT_FCN(0,0,"encStr2Arr",0,-1,440);
_SFD_CV_INIT_EML(1,1,0,0,0,0,0,0,0,0,0);
{
unsigned int dimVector[2];
dimVector[0]= 1000;
dimVector[1]= 1;
_SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0,
1.0,0,0,(MexFcnForType)c35_g_sf_marshallOut,(MexInFcnForType)
c35_e_sf_marshallIn);
}
_SFD_SET_DATA_VALUE_PTR(0,(void *)(NULL));
(void)chartInstance;
}
} else {
sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,
_Expriment_PoseMachineNumber_,chartInstance->chartNumber,
chartInstance->instanceNumber);
}
}
}
开发者ID:maryamsab,项目名称:realact,代码行数:89,代码来源:c35_Expriment_Pose.c
示例3: chart_debug_initialization
static void chart_debug_initialization(SimStruct *S, unsigned int
fullDebuggerInitialization)
{
if (!sim_mode_is_rtw_gen(S)) {
SFc6_motor_controlInstanceStruct *chartInstance;
chartInstance = (SFc6_motor_controlInstanceStruct *) ((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_controlMachineNumber_,
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_controlMachineNumber_,
chartInstance->chartNumber);
sf_debug_set_chart_disable_implicit_casting
(_motor_controlMachineNumber_,chartInstance->chartNumber,1);
sf_debug_set_chart_event_thresholds(_motor_controlMachineNumber_,
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_controlMachineNumber_,
chartInstance->chartNumber,chartInstance->instanceNumber);
}
//.........这里部分代码省略.........
开发者ID:drivkin,项目名称:Motor-simulation-and-reading,代码行数:101,代码来源:c6_motor_control.c
示例4: chart_debug_initialization
static void chart_debug_initialization(SimStruct *S, unsigned int
fullDebuggerInitialization)
{
if (!sim_mode_is_rtw_gen(S)) {
SFc12_DemoWave_KInstanceStruct *chartInstance;
ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
chartInstance = (SFc12_DemoWave_KInstanceStruct *) chartInfo->chartInstance;
if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
/* do this only if simulation is starting */
{
unsigned int chartAlreadyPresent;
chartAlreadyPresent = sf_debug_initialize_chart
(sfGlobalDebugInstanceStruct,
_DemoWave_KMachineNumber_,
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(_DemoWave_KMachineNumber_,
chartInstance->chartNumber,chartInstance->instanceNumber);
if (chartAlreadyPresent==0) {
/* this is the first instance */
sf_debug_set_chart_disable_implicit_casting
(sfGlobalDebugInstanceStruct,_DemoWave_KMachineNumber_,
chartInstance->chartNumber,1);
sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
_DemoWave_KMachineNumber_,
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,1486);
_SFD_CV_INIT_EML_FCN(0,1,"aFcnTruthTableAction_1",1486,-1,1536);
_SFD_CV_INIT_EML_FCN(0,2,"aFcnTruthTableAction_2",1536,-1,1586);
_SFD_CV_INIT_EML_FCN(0,3,"aFcnTruthTableAction_3",1586,-1,1635);
_SFD_CV_INIT_EML_FCN(0,4,"aFcnTruthTableAction_4",1635,-1,1691);
_SFD_CV_INIT_EML_FCN(0,5,"aFcnTruthTableAction_5",1691,-1,1740);
_SFD_CV_INIT_EML_FCN(0,6,"aFcnTruthTableAction_6",1740,-1,1793);
_SFD_CV_INIT_EML_FCN(0,7,"aFcnTruthTableAction_7",1793,-1,1843);
_SFD_CV_INIT_EML_FCN(0,8,"aFcnTruthTableAction_8",1843,-1,1890);
_SFD_CV_INIT_EML_IF(0,1,0,920,950,981,1484);
_SFD_CV_INIT_EML_IF(0,1,1,981,1015,1046,1484);
_SFD_CV_INIT_EML_IF(0,1,2,1046,1080,1111,1484);
_SFD_CV_INIT_EML_IF(0,1,3,1111,1145,1176,1484);
_SFD_CV_INIT_EML_IF(0,1,4,1176,1210,1241,1484);
_SFD_CV_INIT_EML_IF(0,1,5,1241,1275,1306,1484);
_SFD_CV_INIT_EML_IF(0,1,6,1306,1340,1371,1484);
_SFD_CV_INIT_EML_IF(0,1,7,1371,1405,1436,1484);
_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,
_DemoWave_KMachineNumber_,chartInstance->chartNumber,
//.........这里部分代码省略.........
开发者ID:maryamsab,项目名称:realact,代码行数:101,代码来源:c12_DemoWave_K.c
示例5: chart_debug_initialization
static void chart_debug_initialization(SimStruct *S, unsigned int
fullDebuggerInitialization)
{
if (!sim_mode_is_rtw_gen(S)) {
SFc13_ARP_02_RPSs_Bdr_GK_BIS5InstanceStruct *chartInstance;
ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
chartInstance = (SFc13_ARP_02_RPSs_Bdr_GK_BIS5InstanceStruct *)
chartInfo->chartInstance;
if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
/* do this only if simulation is starting */
{
unsigned int chartAlreadyPresent;
chartAlreadyPresent = sf_debug_initialize_chart
(sfGlobalDebugInstanceStruct,
_ARP_02_RPSs_Bdr_GK_BIS5MachineNumber_,
13,
1,
1,
0,
2,
0,
0,
0,
0,
0,
&(chartInstance->chartNumber),
&(chartInstance->instanceNumber),
(void *)S);
/* Each instance must initialize ist own list of scripts */
init_script_number_translation(_ARP_02_RPSs_Bdr_GK_BIS5MachineNumber_,
chartInstance->chartNumber,chartInstance->instanceNumber);
if (chartAlreadyPresent==0) {
/* this is the first instance */
sf_debug_set_chart_disable_implicit_casting
(sfGlobalDebugInstanceStruct,_ARP_02_RPSs_Bdr_GK_BIS5MachineNumber_,
chartInstance->chartNumber,1);
sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
_ARP_02_RPSs_Bdr_GK_BIS5MachineNumber_,
chartInstance->chartNumber,
0,
0,
0);
_SFD_SET_DATA_PROPS(0,1,1,0,"win");
_SFD_SET_DATA_PROPS(1,2,0,1,"sat");
_SFD_STATE_INFO(0,0,2);
_SFD_CH_SUBSTATE_COUNT(0);
_SFD_CH_SUBSTATE_DECOMP(0);
}
_SFD_CV_INIT_CHART(0,0,0,0);
{
_SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);
}
_SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);
/* Initialization of MATLAB Function Model Coverage */
_SFD_CV_INIT_EML(0,1,1,2,0,0,0,0,0,0,0);
_SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,304);
_SFD_CV_INIT_EML_IF(0,1,0,167,177,221,304);
_SFD_CV_INIT_EML_IF(0,1,1,221,235,285,304);
_SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
(MexFcnForType)c13_sf_marshallOut,(MexInFcnForType)NULL);
_SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
(MexFcnForType)c13_sf_marshallOut,(MexInFcnForType)c13_sf_marshallIn);
{
real_T *c13_win;
real_T *c13_sat;
c13_sat = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
c13_win = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);
_SFD_SET_DATA_VALUE_PTR(0U, c13_win);
_SFD_SET_DATA_VALUE_PTR(1U, c13_sat);
}
}
} else {
sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,
_ARP_02_RPSs_Bdr_GK_BIS5MachineNumber_,chartInstance->chartNumber,
chartInstance->instanceNumber);
}
}
}
开发者ID:maryamsab,项目名称:realact,代码行数:85,代码来源:c13_ARP_02_RPSs_Bdr_GK_BIS5.c
示例6: chart_debug_initialization
static void chart_debug_initialization(SimStruct *S, unsigned int
fullDebuggerInitialization)
{
if (!sim_mode_is_rtw_gen(S)) {
SFc2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmileInstanceStruct
*chartInstance;
ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
chartInstance =
(SFc2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmileInstanceStruct *)
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_GloveAtomicBradNotImitateSmileMachineNumber_,
2,
1,
1,
0,
7,
0,
0,
0,
0,
0,
&(chartInstance->chartNumber),
&(chartInstance->instanceNumber),
(void *)S);
/* Each instance must initialize ist own list of scripts */
init_script_number_translation
(_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmileMachineNumber_,
chartInstance->chartNumber,chartInstance->instanceNumber);
if (chartAlreadyPresent==0) {
/* this is the first instance */
sf_debug_set_chart_disable_implicit_casting
(sfGlobalDebugInstanceStruct,
_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmileMachineNumber_,
chartInstance->chartNumber,1);
sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmileMachineNumber_,
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,310);
_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);
//.........这里部分代码省略.........
开发者ID:maryamsab,项目名称:realact,代码行数:101,代码来源:c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile.c
示例7: chart_debug_initialization
static void chart_debug_initialization(SimStruct *S, unsigned int
fullDebuggerInitialization)
{
if (!sim_mode_is_rtw_gen(S)) {
SFc1_VrSubsystemInstanceStruct *chartInstance =
(SFc1_VrSubsystemInstanceStruct *)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,
_VrSubsystemMachineNumber_,
1,
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(_VrSubsystemMachineNumber_,
chartInstance->chartNumber,chartInstance->instanceNumber);
if (chartAlreadyPresent==0) {
/* this is the first instance */
sf_debug_set_chart_disable_implicit_casting
(sfGlobalDebugInstanceStruct,_VrSubsystemMachineNumber_,
chartInstance->chartNumber,1);
sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
_VrSubsystemMachineNumber_,
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,3,0,0,0);
_SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,1259);
_SFD_CV_INIT_EML_FOR(0,1,0,696,718,873);
_SFD_CV_INIT_EML_FOR(0,1,1,875,915,1072);
_SFD_CV_INIT_EML_FOR(0,1,2,1074,1104,1259);
{
unsigned int dimVector[1];
dimVector[0]= 320U;
_SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,
1.0,0,0,(MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)NULL);
}
{
unsigned int dimVector[2];
dimVector[0]= 1U;
dimVector[1]= 128U;
_SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0,
1.0,0,0,(MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)
c1_sf_marshallIn);
}
}
} else {
sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,
_VrSubsystemMachineNumber_,chartInstance->chartNumber,
chartInstance->instanceNumber);
}
}
}
开发者ID:davidecavezza,项目名称:simulation-hipeds,代码行数:86,代码来源:c1_VrSubsystem.c
示例8: chart_debug_initialization
static void chart_debug_initialization(SimStruct *S, unsigned int fullDebuggerInitialization)
{
if(!sim_mode_is_rtw_gen(S)) {
SFc2_tablerot_idInstanceStruct *chartInstance;
chartInstance = (SFc2_tablerot_idInstanceStruct *) ((ChartInfoStruct *)(ssGetUserData(S)))->chartInstance;
if(ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
/* do this only if simulation is starting */
{
unsigned int chartAlreadyPresent;
chartAlreadyPresent = sf_debug_initialize_chart(_tablerot_idMachineNumber_,
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(_tablerot_idMachineNumber_,chartInstance->chartNumber);
sf_debug_set_chart_disable_implicit_casting(_tablerot_idMachineNumber_,chartInstance->chartNumber,1);
sf_debug_set_chart_event_thresholds(_tablerot_idMachineNumber_,
chartInstance->chartNumber,
0,
0,
0);
{
unsigned int dimVector[1];
dimVector[0]= 6;
_SFD_SET_DATA_PROPS(0,1,1,0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,1.0,0,"u",0,(MexFcnForType)c2_b_sf_marshall);
}
{
unsigned int dimVector[1];
dimVector[0]= 3;
_SFD_SET_DATA_PROPS(1,2,0,1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,1.0,0,"y",0,(MexFcnForType)c2_sf_marshall);
}
_SFD_STATE_INFO(0,0,2);
_SFD_CH_SUBSTATE_COUNT(0);
_SFD_CH_SUBSTATE_DECOMP(0);
}
_SFD_CV_INIT_CHART(0,0,0,0);
{
_SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);
}
_SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);
/* Initialization of EML Model Coverage */
_SFD_CV_INIT_EML(0,1,0,0,0,0,0,0,0);
_SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,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);
}
{
real_T (*c2_u)[6];
real_T (*c2_y)[3];
c2_y = (real_T (*)[3])ssGetOutputPortSignal(chartInstance->S, 1);
c2_u = (real_T (*)[6])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(_tablerot_idMachineNumber_,chartInstance->chartNumber,chartInstance->instanceNumber);
}
}
}
开发者ID:avnishks,项目名称:btp1,代码行数:83,代码来源:c2_tablerot_id.c
示例9: chart_debug_initialization
static void chart_debug_initialization(SimStruct *S, unsigned int
fullDebuggerInitialization)
{
if (!sim_mode_is_rtw_gen(S)) {
SFc2_DYNctl_ver4_etud_nonlineaireInstanceStruct *chartInstance;
ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
chartInstance = (SFc2_DYNctl_ver4_etud_nonlineaireInstanceStruct *)
chartInfo->chartInstance;
if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
/* do this only if simulation is starting */
{
unsigned int chartAlreadyPresent;
chartAlreadyPresent = sf_debug_initialize_chart
(sfGlobalDebugInstanceStruct,
_DYNctl_ver4_etud_nonlineaireMachineNumber_,
2,
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
(_DYNctl_ver4_etud_nonlineaireMachineNumber_,
chartInstance->chartNumber,chartInstance->instanceNumber);
if (chartAlreadyPresent==0) {
/* this is the first instance */
sf_debug_set_chart_disable_implicit_casting
(sfGlobalDebugInstanceStruct,
_DYNctl_ver4_etud_nonlineaireMachineNumber_,
chartInstance->chartNumber,1);
sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
_DYNctl_ver4_etud_nonlineaireMachineNumber_,
chartInstance->chartNumber,
0,
0,
0);
_SFD_SET_DATA_PROPS(0,1,1,0,"angle");
_SFD_SET_DATA_PROPS(1,2,0,1,"f");
_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,2,1);
_SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,123);
_SFD_CV_INIT_EML_IF(0,1,0,53,95,105,122);
{
static int condStart[] = { 56, 77 };
static int condEnd[] = { 73, 95 };
static int pfixExpr[] = { 0, 1, -2 };
_SFD_CV_INIT_EML_MCDC(0,1,0,56,95,2,0,&(condStart[0]),&(condEnd[0]),3,
&(pfixExpr[0]));
}
_SFD_CV_INIT_EML_RELATIONAL(0,1,0,56,73,-1,5);
_SFD_CV_INIT_EML_RELATIONAL(0,1,1,77,95,-1,3);
_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)c2_sf_marshallIn);
_SFD_SET_DATA_VALUE_PTR(0U, chartInstance->c2_angle);
_SFD_SET_DATA_VALUE_PTR(1U, chartInstance->c2_f);
}
} else {
sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,
_DYNctl_ver4_etud_nonlineaireMachineNumber_,chartInstance->chartNumber,
chartInstance->instanceNumber);
}
}
}
开发者ID:bmaxb,项目名称:projet_s4,代码行数:93,代码来源:c2_DYNctl_ver4_etud_nonlineaire.c
示例10: 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_nomMachineNumber_,
19,
1,
1,
6,
0,
0,
0,
0,
0,
&(chartInstance.chartNumber),
&(chartInstance.instanceNumber),
ssGetPath(S),
(void *)S);
if (chartAlreadyPresent==0) {
/* this is the first instance */
init_script_number_translation
(_adcs_v15_integral_Power_nomMachineNumber_,
chartInstance.chartNumber);
sf_debug_set_chart_disable_implicit_casting
(_adcs_v15_integral_Power_nomMachineNumber_,
chartInstance.chartNumber,1);
sf_debug_set_chart_event_thresholds
(_adcs_v15_integral_Power_nomMachineNumber_,
chartInstance.chartNumber,
0,
0,
0);
_SFD_SET_DATA_PROPS(0,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,
"Latitude",0,(MexFcnForType)c19_sf_marshall);
_SFD_SET_DATA_PROPS(1,1,1,0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,
"Longitude",0,(MexFcnForType)c19_sf_marshall);
_SFD_SET_DATA_PROPS(2,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,
"Downlink_power",0,(MexFcnForType)c19_sf_marshall);
_SFD_SET_DATA_PROPS(3,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,
"flag_downlink",0,(MexFcnForType)c19_sf_marshall);
_SFD_SET_DATA_PROPS(4,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,
"flag_france",0,(MexFcnForType)c19_sf_marshall);
_SFD_SET_DATA_PROPS(5,2,0,1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,
"flag_india",0,(MexFcnForType)c19_sf_marshall);
_SFD_STATE_INFO(0,0,2);
_SFD_CH_SUBSTATE_COUNT(0);
_SFD_CH_SUBSTATE_DECOMP(0);
}
_SFD_CV_INIT_CHART(0,0,0,0);
{
_SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);
}
_SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);
/* Initialization of EML Model Coverage */
_SFD_CV_INIT_EML(0,1,2,0,0,0,0,0);
_SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,475);
_SFD_CV_INIT_EML_IF(0,0,141,228,272,426);
_SFD_CV_INIT_EML_IF(0,1,272,350,395,426);
_SFD_TRANS_COV_WTS(0,0,0,1,0);
if (chartAlreadyPresent==0) {
_SFD_TRANS_COV_MAPS(0,
0,NULL,NULL,
0,NULL,NULL,
1,NULL,NULL,
0,NULL,NULL);
}
{
real_T *c19_Latitude;
real_T *c19_Longitude;
real_T *c19_Downlink_power;
real_T *c19_flag_downlink;
real_T *c19_flag_france;
real_T *c19_flag_india;
c19_flag_france = (real_T *)ssGetOutputPortSignal(chartInstance.S, 3);
c19_Downlink_power = (real_T *)ssGetOutputPortSignal(chartInstance.S,
1);
c19_Latitude = (real_T *)ssGetInputPortSignal(chartInstance.S, 0);
c19_Longitude = (real_T *)ssGetInputPortSignal(chartInstance.S, 1);
c19_flag_india = (real_T *)ssGetOutputPortSignal(chartInstance.S, 4);
c19_flag_downlink = (real_T *)ssGetOutputPortSignal(chartInstance.S, 2);
_SFD_SET_DATA_VALUE_PTR(0U, c19_Latitude);
_SFD_SET_DATA_VALUE_PTR(1U, c19_Longitude);
_SFD_SET_DATA_VALUE_PTR(2U, c19_Downlink_power);
_SFD_SET_DATA_VALUE_PTR(3U, c19_flag_downlink);
_SFD_SET_DATA_VALUE_PTR(4U, c19_flag_france);
_SFD_SET_DATA_VALUE_PTR(5U, c19_flag_india);
}
}
} else {
sf_debug_reset_current_state_configuration
//.........这里部分代码省略.........
开发者ID:avnishks,项目名称:pratham,代码行数:101,代码来源:c19_adcs_v15_integral_Power_nom.c
示例11: chart_debug_initialization
static void chart_debug_initialization(SimStruct *S, unsigned int
fullDebuggerInitialization)
{
if (!sim_mode_is_rtw_gen(S)) {
SFc16_HIL_model_overallInstanceStruct *chartInstance;
chartInstance = (SFc16_HIL_model_overallInstanceStruct *) ((ChartInfoStruct *)
(ssGetUserData(S)))->chartInstance;
if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
/* do this only if simulation is starting */
{
unsigned int chartAlreadyPresent;
chartAlreadyPresent = sf_debug_initialize_chart
(sfGlobalDebugInstanceStruct,
_HIL_model_overallMachineNumber_,
16,
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(_HIL_model_overallMachineNumber_,
chartInstance->chartNumber);
sf_debug_set_chart_disable_implicit_casting
(sfGlobalDebugInstanceStruct,_HIL_model_overallMachineNumber_,
chartInstance->chartNumber,1);
sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
_HIL_model_overallMachineNumber_,
chartInstance->chartNumber,
0,
0,
0);
_SFD_SET_DATA_PROPS(0,1,1,0,"WP");
_SFD_SET_DATA_PROPS(1,2,0,1,"eta_ref");
_SFD_SET_DATA_PROPS(2,1,1,0,"L_rope");
_SFD_SET_DATA_PROPS(3,1,1,0,"L_fast");
_SFD_SET_DATA_PROPS(4,1,1,0,"Offset_direction");
_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,330);
_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[2];
dimVector[0]= 2;
dimVector[1]= 2;
_SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,2,&(dimVector[0]),0,0,0,0.0,
1.0,0,0,(MexFcnForType)c16_c_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)c16_sf_marshallOut,(MexInFcnForType)
c16_sf_marshallIn);
}
_SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
(MexFcnForType)c16_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)c16_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)c16_b_sf_marshallOut,(MexInFcnForType)NULL);
{
real_T *c16_L_rope;
real_T *c16_L_fast;
real_T *c16_Offset_direction;
real_T (*c16_WP)[4];
real_T (*c16_eta_ref)[3];
c16_Offset_direction = (real_T *)ssGetInputPortSignal(chartInstance->S,
//.........这里部分代码省略.........
开发者ID:NTNU-MCS,项目名称:CS_EnterpriseI_archive,代码行数:101,代码来源:c16_HIL_model_overall.c
示例12: chart_debug_initialization
static void chart_debug_initialization(SimStruct *S, unsigned int
fullDebuggerInitialization)
{
if (!sim_mode_is_rtw_gen(S)) {
SFc3_Engine_Vehicle_CVT_Wit_System1_trial1InstanceStruct *chartInstance;
ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));
ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);
chartInstance = (SFc3_Engine_Vehicle_CVT_Wit_System1_trial1InstanceStruct *)
chartInfo->chartInstance;
if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {
/* do this only if simulation is starting */
{
unsigned int chartAlreadyPresent;
chartAlreadyPresent = sf_debug_initialize_chart
(sfGlobalDebugInstanceStruct,
_Engine_Vehicle_CVT_Wit_System1_trial1MachineNumber_,
3,
0,
5,
0,
4,
0,
0,
0,
0,
0,
&(chartInstance->chartNumber),
&(chartInstance->instanceNumber),
(void *)S);
/* Each instance must initialize its own list of scripts */
init_script_number_translation
(_Engine_Vehicle_CVT_Wit_System1_trial1MachineNumber_,
chartInstance->chartNumber,chartInstance->instanceNumber);
if (chartAlreadyPresent==0) {
/* this is the first instance */
sf_debug_set_chart_disable_implicit_casting
(sfGlobalDebugInstanceStruct,
_Engine_Vehicle_CVT_Wit_System1_trial1MachineNumber_,
chartInstance->chartNumber,1);
sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,
_Engine_Vehicle_CVT_Wit_System1_trial1MachineNumber_,
chartInstance->chartNumber,
0,
0,
0);
_SFD_SET_DATA_PROPS(0,1,1,0,"Engine_RPM");
_SFD_SET_DATA_PROPS(1,1,1,0,"RPM_Clutch_THLD");
_SFD_SET_DATA_PROPS(2,1,1,0,"RPM_Clutch_Hist_THLD");
_SFD_SET_DATA_PROPS(3,2,0,1,"ClutchON");
_SFD_CH_SUBSTATE_COUNT(0);
_SFD_CH_SUBSTATE_DECOMP(0);
}
_SFD_CV_INIT_CHART(0,0,0,0);
_SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);
_SFD_CV_INIT_TRANS(2,0,NULL,NULL,0,NULL);
_SFD_CV_INIT_TRANS(3,0,NULL,NULL,0,NULL);
_SFD_CV_INIT_TRANS(1,0,NULL,NULL,0,NULL);
_SFD_CV_INIT_TRANS(4,0,NULL,NULL,0,NULL);
/* Initialization of MATLAB Function Model Coverage */
_SFD_CV_INIT_EML(2,0,0,1,0,0,0,0,0,0,0);
_SFD_CV_INIT_EML_IF(2,0,0,1,30,1,30);
_SFD_CV_INIT_EML_RELATIONAL(2,0,0,2,30,-1,4);
_SFD_CV_INIT_EML(3,0,0,0,0,0,0,0,0,0,0);
_SFD_CV_INIT_EML(1,0,0,1,0,0,0,0,0,0,0);
_SFD_CV_INIT_EML_IF(1,0,0,1,52,1,48);
_SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
(MexFcnForType)c3_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)c3_b_sf_marshallOut,(MexInFcnForType)NULL);
_SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,
(MexFcnForType)c3_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)c3_b_sf_marshallOut,(MexInFcnForType)c3_b_sf_marshallIn);
_SFD_SET_DATA_VALUE_PTR(0U, chartInstance->c3_Engine_RPM);
_SFD_SET_DATA_VALUE_PTR(1U, chartInstance->c3_RPM_Clutch_THLD);
_SFD_SET_DATA_VALUE_PTR(2U, chartInstance->c3_RPM_Clutch_Hist_THLD);
_SFD_SET_DATA_VALUE_PTR(3U, chartInstance->c3_ClutchON);
}
} else {
sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,
_Engine_Vehicle_CVT_Wit_System1_trial1MachineNumber_,
chartInstance->chartNumber,chartInstance->instanceNumber);
}
}
}
开发者ID:rsutjion,项目名称:Matlab-Simulation---shared-GitHub,代码行数:88,代码来源:c3_Engine_Vehicle_CVT_Wit_System1_trial1.c
示例13: chart_debug_initialization
-
六六分期app的软件客服如何联系?不知道吗?加qq群【895510560】即可!标题:六六分期
阅读:19143|2023-10-27
-
今天小编告诉大家如何处理win10系统火狐flash插件总是崩溃的问题,可能很多用户都不知
阅读:9973|2022-11-06
-
今天小编告诉大家如何对win10系统删除桌面回收站图标进行设置,可能很多用户都不知道
阅读:8317|2022-11-06
-
今天小编告诉大家如何对win10系统电脑设置节能降温的设置方法,想必大家都遇到过需要
阅读:8686|2022-11-06
-
我们在使用xp系统的过程中,经常需要对xp系统无线网络安装向导设置进行设置,可能很多
阅读:8627|2022-11-06
-
今天小编告诉大家如何处理win7系统玩cf老是与主机连接不稳定的问题,可能很多用户都不
阅读:9643|2022-11-06
-
电脑对日常生活的重要性小编就不多说了,可是一旦碰到win7系统设置cf烟雾头的问题,很
阅读:8611|2022-11-06
-
我们在日常使用电脑的时候,有的小伙伴们可能在打开应用的时候会遇见提示应用程序无法
阅读:7991|2022-11-06
-
今天小编告诉大家如何对win7系统打开vcf文件进行设置,可能很多用户都不知道怎么对win
阅读:8642|2022-11-06
-
今天小编告诉大家如何对win10系统s4开启USB调试模式进行设置,可能很多用户都不知道怎
阅读:7527|2022-11-06
|
请发表评论