您当前的位置:首页 > IT编程 > C++
| C语言 | Java | VB | VC | python | Android | TensorFlow | C++ | oracle | 学术与代码 | cnn卷积神经网络 | gnn | 图像修复 | Keras | 数据集 | Neo4j | 自然语言处理 | 深度学习 | 医学CAD | 医学影像 | 超参数 | pointnet | pytorch | 异常检测 | Transformers | 情感分类 | 知识图谱 |

自学教程:C++ ssGetUserData函数代码示例

51自学网 2021-06-03 08:17:38
  C++
这篇教程C++ ssGetUserData函数代码示例写得很实用,希望能帮到您。

本文整理汇总了C++中ssGetUserData函数的典型用法代码示例。如果您正苦于以下问题:C++ ssGetUserData函数的具体用法?C++ ssGetUserData怎么用?C++ ssGetUserData使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。

在下文中一共展示了ssGetUserData函数的30个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。

示例1: sf_internal_get_sim_state_c6_Array

extern const mxArray* sf_internal_get_sim_state_c6_Array(SimStruct* S){  ChartInfoStruct *chartInfo = (ChartInfoStruct*) ssGetUserData(S);  mxArray *plhs[1] = { NULL };  mxArray *prhs[4];  int mxError = 0;  prhs[0] = mxCreateString("chart_simctx_raw2high");  prhs[1] = mxCreateDoubleScalar(ssGetSFuncBlockHandle(S));  prhs[2] = (mxArray*) get_sim_state_c6_Array((SFc6_ArrayInstanceStruct*)    chartInfo->chartInstance);         /* raw sim ctx */  prhs[3] = (mxArray*) sf_get_sim_state_info_c6_Array();/* state var info */  mxError = sf_mex_call_matlab(1, plhs, 4, prhs, "sfprivate");  mxDestroyArray(prhs[0]);  mxDestroyArray(prhs[1]);  mxDestroyArray(prhs[2]);  mxDestroyArray(prhs[3]);  if (mxError || plhs[0] == NULL) {    sf_mex_error_message("Stateflow Internal Error: /nError calling 'chart_simctx_raw2high'./n");  }  return plhs[0];}
开发者ID:DavidDeYong,项目名称:Partial-Shading,代码行数:23,


示例2: mdlOutputs

/* Function: mdlOutputs ======================================================= **/static void mdlOutputs(SimStruct *S, int_T tid){    const char *xref = (char *) ssGetInputPortSignal(S,0);    const char *x = (char *) ssGetInputPortSignal(S,1);    char *u = (char *) ssGetOutputPortSignal(S,0);	int_T* busInfo = (int_T *) ssGetUserData(S);	/* Temporary bus copy declarations */	xref_bus _u0BUS;	x_bus _u1BUS;	u_bus _y0BUS;	/*Copy input bus into temporary structure*/	(void) memcpy(&_u0BUS.x_C,xref + busInfo[0], busInfo[1]);	(void) memcpy(&_u0BUS.x_L,xref + busInfo[2], busInfo[3]);	(void) memcpy(&_u0BUS.v_C,xref + busInfo[4], busInfo[5]);	(void) memcpy(&_u0BUS.v_L,xref + busInfo[6], busInfo[7]);	(void) memcpy(&_u0BUS.theta,xref + busInfo[8], busInfo[9]);	(void) memcpy(&_u0BUS.omega,xref + busInfo[10], busInfo[11]);	(void) memcpy(&_u0BUS.u_C,xref + busInfo[12], busInfo[13]);	(void) memcpy(&_u0BUS.u_L,xref + busInfo[14], busInfo[15]);	(void) memcpy(&_u1BUS.x_C,x + busInfo[16], busInfo[17]);	(void) memcpy(&_u1BUS.x_L,x + busInfo[18], busInfo[19]);	(void) memcpy(&_u1BUS.v_C,x + busInfo[20], busInfo[21]);	(void) memcpy(&_u1BUS.v_L,x + busInfo[22], busInfo[23]);	(void) memcpy(&_u1BUS.theta,x + busInfo[24], busInfo[25]);	(void) memcpy(&_u1BUS.omega,x + busInfo[26], busInfo[27]);	(void) memcpy(&_u1BUS.u_C,x + busInfo[28], busInfo[29]);	(void) memcpy(&_u1BUS.u_L,x + busInfo[30], busInfo[31]);		SGems(&_u0BUS,&_u1BUS, &_y0BUS);	/*Copy temporary structure into output bus*/	(void) memcpy(u+ busInfo[32], &_y0BUS.u_CR, busInfo[33]);	(void) memcpy(u+ busInfo[34], &_y0BUS.u_LR, busInfo[35]);}
开发者ID:EMBOCONcs,项目名称:EMBOCON_Interfaces,代码行数:40,


示例3: sf_internal_set_sim_state_c9_Array

extern void sf_internal_set_sim_state_c9_Array(SimStruct* S, const mxArray *st){  ChartInfoStruct *chartInfo = (ChartInfoStruct*) ssGetUserData(S);  mxArray *plhs[1] = { NULL };  mxArray *prhs[4];  int mxError = 0;  prhs[0] = mxCreateString("chart_simctx_high2raw");  prhs[1] = mxCreateDoubleScalar(ssGetSFuncBlockHandle(S));  prhs[2] = mxDuplicateArray(st);      /* high level simctx */  prhs[3] = (mxArray*) sf_get_sim_state_info_c9_Array();/* state var info */  mxError = sf_mex_call_matlab(1, plhs, 4, prhs, "sfprivate");  mxDestroyArray(prhs[0]);  mxDestroyArray(prhs[1]);  mxDestroyArray(prhs[2]);  mxDestroyArray(prhs[3]);  if (mxError || plhs[0] == NULL) {    sf_mex_error_message("Stateflow Internal Error: /nError calling 'chart_simctx_high2raw'./n");  }  set_sim_state_c9_Array((SFc9_ArrayInstanceStruct*)chartInfo->chartInstance,    mxDuplicateArray(plhs[0]));  mxDestroyArray(plhs[0]);}
开发者ID:DavidDeYong,项目名称:Partial-Shading,代码行数:24,


示例4: utFree

static void sf_opaque_terminate_c3_ARP_02_RPSsmile_GloveAtomicRachelImitateSmile  (void *chartInstanceVar){  if (chartInstanceVar!=NULL) {    SimStruct *S =      ((SFc3_ARP_02_RPSsmile_GloveAtomicRachelImitateSmileInstanceStruct*)       chartInstanceVar)->S;    ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));    if (sim_mode_is_rtw_gen(S) || sim_mode_is_external(S)) {      sf_clear_rtw_identifier(S);      unload_ARP_02_RPSsmile_GloveAtomicRachelImitateSmile_optimization_info();    }    finalize_c3_ARP_02_RPSsmile_GloveAtomicRachelImitateSmile      ((SFc3_ARP_02_RPSsmile_GloveAtomicRachelImitateSmileInstanceStruct*)       chartInstanceVar);    utFree((void *)chartInstanceVar);    if (crtInfo != NULL) {      utFree((void *)crtInfo);    }    ssSetUserData(S,NULL);  }}
开发者ID:maryamsab,项目名称:realact,代码行数:24,


示例5: sf_internal_set_sim_state_c2_Expriment_Pose

extern void sf_internal_set_sim_state_c2_Expriment_Pose(SimStruct* S, const  mxArray *st){  ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));  ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);  mxArray *plhs[1] = { NULL };  mxArray *prhs[3];  int mxError = 0;  prhs[0] = mxCreateString("chart_simctx_high2raw");  prhs[1] = mxDuplicateArray(st);      /* high level simctx */  prhs[2] = (mxArray*) sf_get_sim_state_info_c2_Expriment_Pose();/* state var info */  mxError = sf_mex_call_matlab(1, plhs, 3, prhs, "sfprivate");  mxDestroyArray(prhs[0]);  mxDestroyArray(prhs[1]);  mxDestroyArray(prhs[2]);  if (mxError || plhs[0] == NULL) {    sf_mex_error_message("Stateflow Internal Error: /nError calling 'chart_simctx_high2raw'./n");  }  set_sim_state_c2_Expriment_Pose((SFc2_Expriment_PoseInstanceStruct*)    chartInfo->chartInstance, mxDuplicateArray(plhs[0]));  mxDestroyArray(plhs[0]);}
开发者ID:maryamsab,项目名称:realact,代码行数:24,


示例6: mdlZeroCrossings

  static void mdlZeroCrossings(SimStruct *S)  {    int i;    double now = ssGetT(S);    RTnetwork *nwsys = (RTnetwork*)ssGetUserData(S);    InputRealPtrsType input_0 = ssGetInputPortRealSignalPtrs(S,0);    InputRealPtrsType input_1 = ssGetInputPortRealSignalPtrs(S,1);    InputRealPtrsType input_2 = ssGetInputPortRealSignalPtrs(S,2);    /* Check for external events */    for (i=0; i < nwsys->nbrOfNodes; i++) {      if (fabs(*input_0[i] - nwsys->inputs[i]) > 0.1) {	nwsys->nextHit = now;	break;      }    }    /* Copy inputs */    for (i=0; i < nwsys->nbrOfNodes; i++) {      nwsys->inputs[i] = *input_0[i];      nwsys->nwnodes[i]->xCoordinate = *input_1[i];      nwsys->nwnodes[i]->yCoordinate = *input_2[i];    }    ssGetNonsampledZCs(S)[0] = nwsys->nextHit - now;  }
开发者ID:AndFroSwe,项目名称:MF2044,代码行数:24,


示例7: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc22_BuckBoost1InstanceStruct *chartInstance;    chartInstance = (SFc22_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_,           22,           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,2,0,1,"PWM");          _SFD_SET_DATA_PROPS(1,1,1,0,"Carrier");          _SFD_SET_DATA_PROPS(2,1,1,0,"Duty");          _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,146);        _SFD_CV_INIT_EML_IF(0,1,0,100,110,122,141);        _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)c22_sf_marshallOut,(MexInFcnForType)c22_sf_marshallIn);        _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c22_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c22_sf_marshallOut,(MexInFcnForType)NULL);        {          real_T *c22_PWM;          real_T *c22_Carrier;          real_T *c22_Duty;          c22_Duty = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);          c22_Carrier = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);          c22_PWM = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);          _SFD_SET_DATA_VALUE_PTR(0U, c22_PWM);          _SFD_SET_DATA_VALUE_PTR(1U, c22_Carrier);          _SFD_SET_DATA_VALUE_PTR(2U, c22_Duty);        }      }    } else {      sf_debug_reset_current_state_configuration(_BuckBoost1MachineNumber_,        chartInstance->chartNumber,chartInstance->instanceNumber);    }  }}
开发者ID:harriwijaya,项目名称:sys_id_cond_mon,代码行数:91,


示例8: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc6_Demo_KinectInstanceStruct *chartInstance;    ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));    ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);    chartInstance = (SFc6_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_,           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(_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,"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,        _Demo_KinectMachineNumber_,chartInstance->chartNumber,        chartInstance->instanceNumber);    }  }}
开发者ID:maryamsab,项目名称:realact,代码行数:90,


示例9: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc61_heart_modelInstanceStruct *chartInstance;    chartInstance = (SFc61_heart_modelInstanceStruct *) ((ChartInfoStruct *)      (ssGetUserData(S)))->chartInstance;    if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {      /* do this only if simulation is starting */      {        unsigned int chartAlreadyPresent;        chartAlreadyPresent = sf_debug_initialize_chart          (_heart_modelMachineNumber_,           61,           1,           4,           1,           3,           0,           0,           0,           0,           &(chartInstance->chartNumber),           &(chartInstance->instanceNumber),           ssGetPath(S),           (void *)S);        if (chartAlreadyPresent==0) {          /* this is the first instance */          init_script_number_translation(_heart_modelMachineNumber_,            chartInstance->chartNumber);          sf_debug_set_chart_disable_implicit_casting(_heart_modelMachineNumber_,            chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds(_heart_modelMachineNumber_,            chartInstance->chartNumber,            3,            3,            3);          _SFD_SET_DATA_PROPS(0,1,1,0,"v");          _SFD_EVENT_SCOPE(0,2);          _SFD_EVENT_SCOPE(1,2);          _SFD_EVENT_SCOPE(2,2);          _SFD_STATE_INFO(0,0,0);          _SFD_CH_SUBSTATE_COUNT(1);          _SFD_CH_SUBSTATE_DECOMP(0);          _SFD_CH_SUBSTATE_INDEX(0,0);          _SFD_ST_SUBSTATE_COUNT(0,0);        }        _SFD_CV_INIT_CHART(1,0,0,0);        {          _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);        }        _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);        {          static unsigned int sStartGuardMap[] = { 1 };          static unsigned int sEndGuardMap[] = { 7 };          static int sPostFixPredicateTree[] = { 0 };          _SFD_CV_INIT_TRANS(3,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1,                             &(sPostFixPredicateTree[0]));        }        {          static unsigned int sStartGuardMap[] = { 1 };          static unsigned int sEndGuardMap[] = { 5 };          static int sPostFixPredicateTree[] = { 0 };          _SFD_CV_INIT_TRANS(1,1,&(sStartGuardMap[0]),&(sEndGuardMap[0]),1,                             &(sPostFixPredicateTree[0]));        }        {          static unsigned int sStartGuardMap[] = { 1, 8 };          static unsigned int sEndGuardMap[] = { 6, 13 };          static int sPostFixPredicateTree[] = { 0, 1, -3 };          _SFD_CV_INIT_TRANS(2,2,&(sStartGuardMap[0]),&(sEndGuardMap[0]),3,                             &(sPostFixPredicateTree[0]));        }        _SFD_TRANS_COV_WTS(0,0,0,0,0);        if (chartAlreadyPresent==0) {          _SFD_TRANS_COV_MAPS(0,                              0,NULL,NULL,                              0,NULL,NULL,                              0,NULL,NULL,                              0,NULL,NULL);        }        _SFD_TRANS_COV_WTS(3,0,1,0,1);        if (chartAlreadyPresent==0) {//.........这里部分代码省略.........
开发者ID:mingcongzhang,项目名称:Software-Projects-Work,代码行数:101,


示例10: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc9_ArrayInstanceStruct *chartInstance;    chartInstance = (SFc9_ArrayInstanceStruct *) ((ChartInfoStruct *)      (ssGetUserData(S)))->chartInstance;    if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {      /* do this only if simulation is starting */      {        unsigned int chartAlreadyPresent;        chartAlreadyPresent = sf_debug_initialize_chart(_ArrayMachineNumber_,          9,          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(_ArrayMachineNumber_,            chartInstance->chartNumber);          sf_debug_set_chart_disable_implicit_casting(_ArrayMachineNumber_,            chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds(_ArrayMachineNumber_,            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)c9_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)c9_sf_marshallIn);        _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c9_sf_marshallOut,(MexInFcnForType)NULL);        {          real_T *c9_V;          real_T *c9_I;          real_T *c9_Radiacion;          real_T *c9_Temp;          c9_Temp = (real_T *)ssGetInputPortSignal(chartInstance->S, 2);          c9_Radiacion = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);          c9_I = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);          c9_V = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);          _SFD_SET_DATA_VALUE_PTR(0U, c9_V);          _SFD_SET_DATA_VALUE_PTR(1U, c9_I);          _SFD_SET_DATA_VALUE_PTR(2U, c9_Radiacion);          _SFD_SET_DATA_VALUE_PTR(3U, c9_Temp);        }      }    } else {      sf_debug_reset_current_state_configuration(_ArrayMachineNumber_,        chartInstance->chartNumber,chartInstance->instanceNumber);    }  }}
开发者ID:DavidDeYong,项目名称:Partial-Shading,代码行数:96,


示例11: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc11_Batman_CodeInstanceStruct *chartInstance;    chartInstance = (SFc11_Batman_CodeInstanceStruct *) ((ChartInfoStruct *)      (ssGetUserData(S)))->chartInstance;    if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {      /* do this only if simulation is starting */      {        unsigned int chartAlreadyPresent;        chartAlreadyPresent = sf_debug_initialize_chart          (_Batman_CodeMachineNumber_,           11,           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(_Batman_CodeMachineNumber_,            chartInstance->chartNumber);          sf_debug_set_chart_disable_implicit_casting(_Batman_CodeMachineNumber_,            chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds(_Batman_CodeMachineNumber_,            chartInstance->chartNumber,            0,            0,            0);          _SFD_SET_DATA_PROPS(0,1,1,0,"msg");          _SFD_SET_DATA_PROPS(1,1,1,0,"cell_temperatures_in");          _SFD_SET_DATA_PROPS(2,2,0,1,"cell_temperatures_out");          _SFD_STATE_INFO(0,0,2);          _SFD_CH_SUBSTATE_COUNT(0);          _SFD_CH_SUBSTATE_DECOMP(0);        }        _SFD_CV_INIT_CHART(0,0,0,0);        {          _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);        }        _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);        /* Initialization of MATLAB Function Model Coverage */        _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0);        _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,529);        _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]= 2;          _SFD_SET_DATA_COMPILED_PROPS(0,SF_UINT32,1,&(dimVector[0]),0,0,0,0.0,            1.0,0,0,(MexFcnForType)c11_b_sf_marshallOut,(MexInFcnForType)NULL);        }        {          unsigned int dimVector[1];          dimVector[0]= 12;          _SFD_SET_DATA_COMPILED_PROPS(1,SF_UINT16,1,&(dimVector[0]),0,0,0,0.0,            1.0,0,0,(MexFcnForType)c11_sf_marshallOut,(MexInFcnForType)NULL);        }        {          unsigned int dimVector[1];          dimVector[0]= 12;          _SFD_SET_DATA_COMPILED_PROPS(2,SF_UINT16,1,&(dimVector[0]),0,0,0,0.0,            1.0,0,0,(MexFcnForType)c11_sf_marshallOut,(MexInFcnForType)            c11_sf_marshallIn);        }        {          uint32_T (*c11_msg)[2];          uint16_T (*c11_cell_temperatures_in)[12];          uint16_T (*c11_cell_temperatures_out)[12];          c11_cell_temperatures_out = (uint16_T (*)[12])ssGetOutputPortSignal            (chartInstance->S, 1);          c11_cell_temperatures_in = (uint16_T (*)[12])ssGetInputPortSignal            (chartInstance->S, 1);          c11_msg = (uint32_T (*)[2])ssGetInputPortSignal(chartInstance->S, 0);          _SFD_SET_DATA_VALUE_PTR(0U, *c11_msg);          _SFD_SET_DATA_VALUE_PTR(1U, *c11_cell_temperatures_in);          _SFD_SET_DATA_VALUE_PTR(2U, *c11_cell_temperatures_out);        }//.........这里部分代码省略.........
开发者ID:M118-project,项目名称:M118_project,代码行数:101,


示例12: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc6_CSE1_DPInstanceStruct *chartInstance;    ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));    ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);    chartInstance = (SFc6_CSE1_DPInstanceStruct *) chartInfo->chartInstance;    if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {      /* do this only if simulation is starting */      {        unsigned int chartAlreadyPresent;        chartAlreadyPresent = sf_debug_initialize_chart          (sfGlobalDebugInstanceStruct,           _CSE1_DPMachineNumber_,           6,           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(_CSE1_DPMachineNumber_,          chartInstance->chartNumber,chartInstance->instanceNumber);        if (chartAlreadyPresent==0) {          /* this is the first instance */          sf_debug_set_chart_disable_implicit_casting            (sfGlobalDebugInstanceStruct,_CSE1_DPMachineNumber_,             chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,            _CSE1_DPMachineNumber_,            chartInstance->chartNumber,            0,            0,            0);          _SFD_SET_DATA_PROPS(0,1,1,0,"u_BT");          _SFD_SET_DATA_PROPS(1,2,0,1,"F_y");          _SFD_SET_DATA_PROPS(2,1,1,0,"nu");          _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,535);        _SFD_CV_INIT_EML_IF(0,1,0,76,92,217,382);        _SFD_CV_INIT_EML_IF(0,1,1,217,237,362,382);        _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]= 3;          _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_BT;          real_T *c6_F_y;          real_T (*c6_nu)[3];          c6_nu = (real_T (*)[3])ssGetInputPortSignal(chartInstance->S, 1);          c6_F_y = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);          c6_u_BT = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);          _SFD_SET_DATA_VALUE_PTR(0U, c6_u_BT);          _SFD_SET_DATA_VALUE_PTR(1U, c6_F_y);          _SFD_SET_DATA_VALUE_PTR(2U, *c6_nu);        }      }    } else {      sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,        _CSE1_DPMachineNumber_,chartInstance->chartNumber,        chartInstance->instanceNumber);    }  }}
开发者ID:NTNU-MCS,项目名称:CS_EnterpriseI_archive,代码行数:95,


示例13: 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,


示例14: 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,


示例15: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int                                       fullDebuggerInitialization){    if (!sim_mode_is_rtw_gen(S)) {        SFc54_Expriment_FacialExprInstanceStruct *chartInstance;        ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));        ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);        chartInstance = (SFc54_Expriment_FacialExprInstanceStruct *)                        chartInfo->chartInstance;        if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {            /* do this only if simulation is starting */            {                unsigned int chartAlreadyPresent;                chartAlreadyPresent = sf_debug_initialize_chart                                      (sfGlobalDebugInstanceStruct,                                       _Expriment_FacialExprMachineNumber_,                                       54,                                       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_FacialExprMachineNumber_,                                               chartInstance->chartNumber,chartInstance->instanceNumber);                if (chartAlreadyPresent==0) {                    /* this is the first instance */                    sf_debug_set_chart_disable_implicit_casting                    (sfGlobalDebugInstanceStruct,_Expriment_FacialExprMachineNumber_,                     chartInstance->chartNumber,1);                    sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,                                                        _Expriment_FacialExprMachineNumber_,                                                        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)c54_sf_marshallOut,(MexInFcnForType)c54_sf_marshallIn);                _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,                                             (MexFcnForType)c54_sf_marshallOut,(MexInFcnForType)NULL);                {                    real_T *c54_v2;                    real_T *c54_v1;                    c54_v1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);                    c54_v2 = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);                    _SFD_SET_DATA_VALUE_PTR(0U, c54_v2);                    _SFD_SET_DATA_VALUE_PTR(1U, c54_v1);                }            }        } else {            sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,                    _Expriment_FacialExprMachineNumber_,chartInstance->chartNumber,                    chartInstance->instanceNumber);        }    }}
开发者ID:maryamsab,项目名称:realact,代码行数:88,


示例16: 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,


示例17: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc3_V2A1_2InstanceStruct *chartInstance;    chartInstance = (SFc3_V2A1_2InstanceStruct *) ((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,           _V2A1_2MachineNumber_,           3,           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(_V2A1_2MachineNumber_,            chartInstance->chartNumber);          sf_debug_set_chart_disable_implicit_casting            (sfGlobalDebugInstanceStruct,_V2A1_2MachineNumber_,             chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,            _V2A1_2MachineNumber_,            chartInstance->chartNumber,            0,            0,            0);          _SFD_SET_DATA_PROPS(0,1,1,0,"delta");          _SFD_SET_DATA_PROPS(1,2,0,1,"x0");          _SFD_SET_DATA_PROPS(2,1,1,0,"hoehe");          _SFD_STATE_INFO(0,0,2);          _SFD_CH_SUBSTATE_COUNT(0);          _SFD_CH_SUBSTATE_DECOMP(0);        }        _SFD_CV_INIT_CHART(0,0,0,0);        {          _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);        }        _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);        /* Initialization of MATLAB Function Model Coverage */        _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0,0);        _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,211);        _SFD_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);        {          unsigned int dimVector[1];          dimVector[0]= 2;          _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,            1.0,0,0,(MexFcnForType)c3_sf_marshallOut,(MexInFcnForType)            c3_sf_marshallIn);        }        _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);        {          real_T *c3_delta;          real_T *c3_hoehe;          real_T (*c3_x0)[2];          c3_hoehe = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);          c3_x0 = (real_T (*)[2])ssGetOutputPortSignal(chartInstance->S, 1);          c3_delta = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);          _SFD_SET_DATA_VALUE_PTR(0U, c3_delta);          _SFD_SET_DATA_VALUE_PTR(1U, *c3_x0);          _SFD_SET_DATA_VALUE_PTR(2U, c3_hoehe);        }      }    } else {      sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,        _V2A1_2MachineNumber_,chartInstance->chartNumber,        chartInstance->instanceNumber);    }  }}
开发者ID:d-f,项目名称:MTP,代码行数:92,


示例18: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc3_canudas_goal3InstanceStruct *chartInstance;    chartInstance = (SFc3_canudas_goal3InstanceStruct *) ((ChartInfoStruct *)      (ssGetUserData(S)))->chartInstance;    if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {      /* do this only if simulation is starting */      {        unsigned int chartAlreadyPresent;        chartAlreadyPresent = sf_debug_initialize_chart          (_canudas_goal3MachineNumber_,           3,           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(_canudas_goal3MachineNumber_,            chartInstance->chartNumber);          sf_debug_set_chart_disable_implicit_casting            (_canudas_goal3MachineNumber_,chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds(_canudas_goal3MachineNumber_,            chartInstance->chartNumber,            0,            0,            0);          _SFD_SET_DATA_PROPS(0,2,0,1,"w");          _SFD_SET_DATA_PROPS(1,1,1,0,"z");          _SFD_SET_DATA_PROPS(2,1,1,0,"thetad");          _SFD_SET_DATA_PROPS(3,1,1,0,"r");          _SFD_SET_DATA_PROPS(4,2,0,1,"v");          _SFD_SET_DATA_PROPS(5,1,1,0,"qe");          _SFD_SET_DATA_PROPS(6,1,1,0,"k1");          _SFD_SET_DATA_PROPS(7,1,1,0,"k2");          _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,326);        _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_marshallOut,(MexInFcnForType)c3_sf_marshallIn);        {          unsigned int dimVector[1];          dimVector[0]= 2;          _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,            1.0,0,0,(MexFcnForType)c3_c_sf_marshallOut,(MexInFcnForType)NULL);        }        _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c3_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_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c3_sf_marshallOut,(MexInFcnForType)c3_sf_marshallIn);        {          unsigned int dimVector[1];          dimVector[0]= 3;          _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,            1.0,0,0,(MexFcnForType)c3_b_sf_marshallOut,(MexInFcnForType)NULL);        }        _SFD_SET_DATA_COMPILED_PROPS(6,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c3_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(7,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c3_sf_marshallOut,(MexInFcnForType)NULL);        {//.........这里部分代码省略.........
开发者ID:OneTwoSteph,项目名称:Work,代码行数:101,


示例19: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc1_a3InstanceStruct *chartInstance;    chartInstance = (SFc1_a3InstanceStruct *) ((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,           _a3MachineNumber_,           1,           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(_a3MachineNumber_,            chartInstance->chartNumber);          sf_debug_set_chart_disable_implicit_casting            (sfGlobalDebugInstanceStruct,_a3MachineNumber_,             chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,            _a3MachineNumber_,            chartInstance->chartNumber,            0,            0,            0);          _SFD_SET_DATA_PROPS(0,1,1,0,"c");          _SFD_SET_DATA_PROPS(1,1,1,0,"d");          _SFD_SET_DATA_PROPS(2,1,1,0,"xp1");          _SFD_SET_DATA_PROPS(3,1,1,0,"xp2");          _SFD_SET_DATA_PROPS(4,1,1,0,"m");          _SFD_SET_DATA_PROPS(5,1,1,0,"u");          _SFD_SET_DATA_PROPS(6,2,0,1,"xpp");          _SFD_SET_DATA_PROPS(7,1,1,0,"x");          _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,95);        _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(6,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)c1_sf_marshallIn);        _SFD_SET_DATA_COMPILED_PROPS(7,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL);        {          real_T *c1_c;          real_T *c1_d;          real_T *c1_xp1;          real_T *c1_xp2;          real_T *c1_m;          real_T *c1_u;          real_T *c1_xpp;          real_T *c1_x;          c1_x = (real_T *)ssGetInputPortSignal(chartInstance->S, 6);          c1_xpp = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);          c1_u = (real_T *)ssGetInputPortSignal(chartInstance->S, 5);          c1_m = (real_T *)ssGetInputPortSignal(chartInstance->S, 4);          c1_xp2 = (real_T *)ssGetInputPortSignal(chartInstance->S, 3);          c1_xp1 = (real_T *)ssGetInputPortSignal(chartInstance->S, 2);          c1_d = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);          c1_c = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);          _SFD_SET_DATA_VALUE_PTR(0U, c1_c);          _SFD_SET_DATA_VALUE_PTR(1U, c1_d);//.........这里部分代码省略.........
开发者ID:d-f,项目名称:MTP,代码行数:101,


示例20: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc2_Demo_AU_VA1InstanceStruct *chartInstance;    ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));    ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);    chartInstance = (SFc2_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_,           2,           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,"randv");          _SFD_SET_DATA_PROPS(1,2,0,1,"v_trigW");          _SFD_SET_DATA_PROPS(2,2,0,1,"v_trig");          _SFD_STATE_INFO(0,0,2);          _SFD_CH_SUBSTATE_COUNT(0);          _SFD_CH_SUBSTATE_DECOMP(0);        }        _SFD_CV_INIT_CHART(0,0,0,0);        {          _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);        }        _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);        /* Initialization of MATLAB Function Model Coverage */        _SFD_CV_INIT_EML(0,1,1,4,0,0,0,0,0,4,2);        _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,414);        _SFD_CV_INIT_EML_IF(0,1,0,102,137,-1,178);        _SFD_CV_INIT_EML_IF(0,1,1,183,219,-1,260);        _SFD_CV_INIT_EML_IF(0,1,2,266,279,302,413);        _SFD_CV_INIT_EML_IF(0,1,3,302,319,373,413);        {          static int condStart[] = { 105, 122 };          static int condEnd[] = { 118, 136 };          static int pfixExpr[] = { 0, 1, -3 };          _SFD_CV_INIT_EML_MCDC(0,1,0,104,137,2,0,&(condStart[0]),&(condEnd[0]),                                3,&(pfixExpr[0]));        }        {          static int condStart[] = { 186, 204 };          static int condEnd[] = { 200, 218 };          static int pfixExpr[] = { 0, 1, -3 };          _SFD_CV_INIT_EML_MCDC(0,1,1,185,219,2,2,&(condStart[0]),&(condEnd[0]),                                3,&(pfixExpr[0]));        }        _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_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)c2_sf_marshallIn);        {          real_T *c2_randv;          real_T *c2_v_trigW;          real_T *c2_v_trig;//.........这里部分代码省略.........
开发者ID:maryamsab,项目名称:realact,代码行数:101,


示例21: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc1_mainInstanceStruct *chartInstance;    chartInstance = (SFc1_mainInstanceStruct *) ((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,           _mainMachineNumber_,           1,           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(_mainMachineNumber_,            chartInstance->chartNumber);          sf_debug_set_chart_disable_implicit_casting            (sfGlobalDebugInstanceStruct,_mainMachineNumber_,             chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,            _mainMachineNumber_,            chartInstance->chartNumber,            0,            0,            0);          _SFD_SET_DATA_PROPS(0,1,1,0,"time");          _SFD_SET_DATA_PROPS(1,2,0,1,"y");          _SFD_STATE_INFO(0,0,2);          _SFD_CH_SUBSTATE_COUNT(0);          _SFD_CH_SUBSTATE_DECOMP(0);        }        _SFD_CV_INIT_CHART(0,0,0,0);        {          _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);        }        _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);        /* Initialization of MATLAB Function Model Coverage */        _SFD_CV_INIT_EML(0,1,1,3,0,0,0,0,0,0,0);        _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,179);        _SFD_CV_INIT_EML_IF(0,1,0,33,46,69,175);        _SFD_CV_INIT_EML_IF(0,1,1,69,85,106,175);        _SFD_CV_INIT_EML_IF(0,1,2,106,123,145,175);        _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c1_sf_marshallOut,(MexInFcnForType)c1_sf_marshallIn);        {          real_T *c1_time;          real_T *c1_y;          c1_y = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);          c1_time = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);          _SFD_SET_DATA_VALUE_PTR(0U, c1_time);          _SFD_SET_DATA_VALUE_PTR(1U, c1_y);        }      }    } else {      sf_debug_reset_current_state_configuration(sfGlobalDebugInstanceStruct,        _mainMachineNumber_,chartInstance->chartNumber,        chartInstance->instanceNumber);    }  }}
开发者ID:JohnPicchi,项目名称:Dependable_Systems_Project,代码行数:82,


示例22: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc1_QPSK_Transmit_v5_w_FIFOInstanceStruct *chartInstance;    chartInstance = (SFc1_QPSK_Transmit_v5_w_FIFOInstanceStruct *)      ((ChartInfoStruct *)(ssGetUserData(S)))->chartInstance;    if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {      /* do this only if simulation is starting */      {        unsigned int chartAlreadyPresent;        chartAlreadyPresent = sf_debug_initialize_chart          (_QPSK_Transmit_v5_w_FIFOMachineNumber_,           1,           1,           1,           2,           0,           0,           0,           0,           1,           &(chartInstance->chartNumber),           &(chartInstance->instanceNumber),           ssGetPath(S),           (void *)S);        if (chartAlreadyPresent==0) {          /* this is the first instance */          init_script_number_translation(_QPSK_Transmit_v5_w_FIFOMachineNumber_,            chartInstance->chartNumber);          sf_debug_set_chart_disable_implicit_casting            (_QPSK_Transmit_v5_w_FIFOMachineNumber_,chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds            (_QPSK_Transmit_v5_w_FIFOMachineNumber_,             chartInstance->chartNumber,             0,             0,             0);          _SFD_SET_DATA_PROPS(0,1,1,0,"d_in");          _SFD_SET_DATA_PROPS(1,2,0,1,"d_out");          _SFD_STATE_INFO(0,0,2);          _SFD_CH_SUBSTATE_COUNT(0);          _SFD_CH_SUBSTATE_DECOMP(0);        }        _SFD_CV_INIT_CHART(0,0,0,0);        {          _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);        }        _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);        /* Initialization of MATLAB Function Model Coverage */        _SFD_CV_INIT_EML(0,1,1,1,0,0,0,0,0,0,0);        _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,199);        _SFD_CV_INIT_EML_IF(0,1,0,75,90,-1,156);        _SFD_CV_INIT_SCRIPT(0,1,0,0,0,0,0,0,0,0);        _SFD_CV_INIT_SCRIPT_FCN(0,0,"SRRC",0,-1,300);        _SFD_TRANS_COV_WTS(0,0,0,1,0);        if (chartAlreadyPresent==0) {          _SFD_TRANS_COV_MAPS(0,                              0,NULL,NULL,                              0,NULL,NULL,                              1,NULL,NULL,                              0,NULL,NULL);        }        _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c1_c_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,1,          (MexFcnForType)c1_b_sf_marshallOut,(MexInFcnForType)c1_b_sf_marshallIn);        {          real_T *c1_d_in;          creal_T *c1_d_out;          c1_d_out = (creal_T *)ssGetOutputPortSignal(chartInstance->S, 1);          c1_d_in = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);          _SFD_SET_DATA_VALUE_PTR(0U, c1_d_in);          _SFD_SET_DATA_VALUE_PTR(1U, c1_d_out);        }      }    } else {      sf_debug_reset_current_state_configuration        (_QPSK_Transmit_v5_w_FIFOMachineNumber_,chartInstance->chartNumber,         chartInstance->instanceNumber);    }  }}
开发者ID:gnanjundiah,项目名称:capstone,代码行数:89,


示例23: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc7_ekffedepreInstanceStruct *chartInstance;    chartInstance = (SFc7_ekffedepreInstanceStruct *) ((ChartInfoStruct *)      (ssGetUserData(S)))->chartInstance;    if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {      /* do this only if simulation is starting */      {        unsigned int chartAlreadyPresent;        chartAlreadyPresent = sf_debug_initialize_chart          (_ekffedepreMachineNumber_,           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(_ekffedepreMachineNumber_,            chartInstance->chartNumber);          sf_debug_set_chart_disable_implicit_casting(_ekffedepreMachineNumber_,            chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds(_ekffedepreMachineNumber_,            chartInstance->chartNumber,            0,            0,            0);          _SFD_SET_DATA_PROPS(0,1,1,0,"sfasamento");          _SFD_SET_DATA_PROPS(1,2,0,1,"wave");          _SFD_SET_DATA_PROPS(2,1,1,0,"ampiezza");          _SFD_SET_DATA_PROPS(3,1,1,0,"frequenza");          _SFD_SET_DATA_PROPS(4,1,1,0,"noise");          _SFD_SET_DATA_PROPS(5,1,1,0,"t");          _SFD_STATE_INFO(0,0,2);          _SFD_CH_SUBSTATE_COUNT(0);          _SFD_CH_SUBSTATE_DECOMP(0);        }        _SFD_CV_INIT_CHART(0,0,0,0);        {          _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);        }        _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);        /* Initialization of MATLAB Function Model Coverage */        _SFD_CV_INIT_EML(0,1,0,0,0,0,0,0,0);        _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,126);        _SFD_TRANS_COV_WTS(0,0,0,1,0);        if (chartAlreadyPresent==0) {          _SFD_TRANS_COV_MAPS(0,                              0,NULL,NULL,                              0,NULL,NULL,                              1,NULL,NULL,                              0,NULL,NULL);        }        _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)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);//.........这里部分代码省略.........
开发者ID:lovewubo,项目名称:foxg20_ahrs_1xx,代码行数:101,


示例24: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc4_iC_3ph_MR2InstanceStruct *chartInstance;    chartInstance = (SFc4_iC_3ph_MR2InstanceStruct *) ((ChartInfoStruct *)      (ssGetUserData(S)))->chartInstance;    if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {      /* do this only if simulation is starting */      {        unsigned int chartAlreadyPresent;        chartAlreadyPresent = sf_debug_initialize_chart          (_iC_3ph_MR2MachineNumber_,           4,           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(_iC_3ph_MR2MachineNumber_,            chartInstance->chartNumber);          sf_debug_set_chart_disable_implicit_casting(_iC_3ph_MR2MachineNumber_,            chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds(_iC_3ph_MR2MachineNumber_,            chartInstance->chartNumber,            0,            0,            0);          _SFD_SET_DATA_PROPS(0,2,0,1,"up_a");          _SFD_SET_DATA_PROPS(1,1,1,0,"up_alpha");          _SFD_SET_DATA_PROPS(2,2,0,1,"up_b");          _SFD_SET_DATA_PROPS(3,2,0,1,"up_c");          _SFD_SET_DATA_PROPS(4,1,1,0,"up_beta");          _SFD_SET_DATA_PROPS(5,1,1,0,"up_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 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,390);        _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)c4_sf_marshallOut,(MexInFcnForType)c4_sf_marshallIn);        _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c4_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c4_sf_marshallOut,(MexInFcnForType)c4_sf_marshallIn);        _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c4_sf_marshallOut,(MexInFcnForType)c4_sf_marshallIn);        _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c4_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c4_sf_marshallOut,(MexInFcnForType)NULL);        {          real_T *c4_up_a;          real_T *c4_up_alpha;          real_T *c4_up_b;          real_T *c4_up_c;          real_T *c4_up_beta;          real_T *c4_up_0;          c4_up_0 = (real_T *)ssGetInputPortSignal(chartInstance->S, 2);          c4_up_beta = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);          c4_up_c = (real_T *)ssGetOutputPortSignal(chartInstance->S, 3);          c4_up_b = (real_T *)ssGetOutputPortSignal(chartInstance->S, 2);          c4_up_alpha = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);          c4_up_a = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);          _SFD_SET_DATA_VALUE_PTR(0U, c4_up_a);          _SFD_SET_DATA_VALUE_PTR(1U, c4_up_alpha);          _SFD_SET_DATA_VALUE_PTR(2U, c4_up_b);          _SFD_SET_DATA_VALUE_PTR(3U, c4_up_c);          _SFD_SET_DATA_VALUE_PTR(4U, c4_up_beta);          _SFD_SET_DATA_VALUE_PTR(5U, c4_up_0);//.........这里部分代码省略.........
开发者ID:durgante,项目名称:dissertacao,代码行数:101,


示例25: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc2_Expriment_PoseInstanceStruct *chartInstance;    ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));    ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);    chartInstance = (SFc2_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_,           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(_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,1,1,0,"gameStatus");          _SFD_SET_DATA_PROPS(1,1,1,0,"bradHand");          _SFD_SET_DATA_PROPS(2,1,1,0,"userHand");          _SFD_SET_DATA_PROPS(3,1,1,0,"win");          _SFD_SET_DATA_PROPS(4,1,1,0,"bTotal");          _SFD_SET_DATA_PROPS(5,1,1,0,"uTotal");          _SFD_SET_DATA_PROPS(6,1,1,0,"gameNum");          _SFD_STATE_INFO(0,0,2);          _SFD_CH_SUBSTATE_COUNT(0);          _SFD_CH_SUBSTATE_DECOMP(0);        }        _SFD_CV_INIT_CHART(0,0,0,0);        {          _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);        }        _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);        /* Initialization of MATLAB Function Model Coverage */        _SFD_CV_INIT_EML(0,1,1,0,0,0,0,0,0,0,0);        _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,309);        _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(5,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL);        _SFD_SET_DATA_COMPILED_PROPS(6,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c2_sf_marshallOut,(MexInFcnForType)NULL);        {          real_T *c2_gameStatus;          real_T *c2_bradHand;          real_T *c2_userHand;          real_T *c2_win;          real_T *c2_bTotal;          real_T *c2_uTotal;          real_T *c2_gameNum;          c2_gameNum = (real_T *)ssGetInputPortSignal(chartInstance->S, 6);          c2_uTotal = (real_T *)ssGetInputPortSignal(chartInstance->S, 5);          c2_bTotal = (real_T *)ssGetInputPortSignal(chartInstance->S, 4);          c2_win = (real_T *)ssGetInputPortSignal(chartInstance->S, 3);          c2_userHand = (real_T *)ssGetInputPortSignal(chartInstance->S, 2);          c2_bradHand = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);          c2_gameStatus = (real_T *)ssGetInputPortSignal(chartInstance->S, 0);          _SFD_SET_DATA_VALUE_PTR(0U, c2_gameStatus);          _SFD_SET_DATA_VALUE_PTR(1U, c2_bradHand);          _SFD_SET_DATA_VALUE_PTR(2U, c2_userHand);//.........这里部分代码省略.........
开发者ID:maryamsab,项目名称:realact,代码行数:101,


示例26: 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,


示例27: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc25_CusakisME4901arcs2InstanceStruct *chartInstance;    chartInstance = (SFc25_CusakisME4901arcs2InstanceStruct *) ((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,           _CusakisME4901arcs2MachineNumber_,           25,           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(_CusakisME4901arcs2MachineNumber_,            chartInstance->chartNumber);          sf_debug_set_chart_disable_implicit_casting            (sfGlobalDebugInstanceStruct,_CusakisME4901arcs2MachineNumber_,             chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,            _CusakisME4901arcs2MachineNumber_,            chartInstance->chartNumber,            0,            0,            0);          _SFD_SET_DATA_PROPS(0,1,1,0,"u");          _SFD_SET_DATA_PROPS(1,10,0,0,"mt");          _SFD_SET_DATA_PROPS(2,2,0,1,"a");          _SFD_SET_DATA_PROPS(3,10,0,0,"mb");          _SFD_SET_DATA_PROPS(4,10,0,0,"m");          _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,162);        _SFD_TRANS_COV_WTS(0,0,0,1,0);        if (chartAlreadyPresent==0) {          _SFD_TRANS_COV_MAPS(0,                              0,NULL,NULL,                              0,NULL,NULL,                              1,NULL,NULL,                              0,NULL,NULL);        }        {          unsigned int dimVector[1];          dimVector[0]= 3;          _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,            1.0,0,0,(MexFcnForType)c25_c_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_b_sf_marshallOut,(MexInFcnForType)          c25_b_sf_marshallIn);        {          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)c25_sf_marshallOut,(MexInFcnForType)            c25_sf_marshallIn);        }        _SFD_SET_DATA_COMPILED_PROPS(3,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c25_b_sf_marshallOut,(MexInFcnForType)          c25_b_sf_marshallIn);        _SFD_SET_DATA_COMPILED_PROPS(4,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c25_b_sf_marshallOut,(MexInFcnForType)          c25_b_sf_marshallIn);        {          real_T (*c25_u)[3];          real_T (*c25_a)[6];          c25_a = (real_T (*)[6])ssGetOutputPortSignal(chartInstance->S, 1);//.........这里部分代码省略.........
开发者ID:alexgrompone,项目名称:Cusakis,代码行数:101,


示例28: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc3_car_modelInstanceStruct *chartInstance;    chartInstance = (SFc3_car_modelInstanceStruct *) ((ChartInfoStruct *)      (ssGetUserData(S)))->chartInstance;    if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {      /* do this only if simulation is starting */      {        unsigned int chartAlreadyPresent;        chartAlreadyPresent = sf_debug_initialize_chart(_car_modelMachineNumber_,          3,          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(_car_modelMachineNumber_,            chartInstance->chartNumber);          sf_debug_set_chart_disable_implicit_casting(_car_modelMachineNumber_,            chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds(_car_modelMachineNumber_,            chartInstance->chartNumber,            0,            0,            0);          {            unsigned int dimVector[1];            dimVector[0]= 4;            _SFD_SET_DATA_PROPS(0,1,1,0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,                                1.0,0,"X",0,(MexFcnForType)c3_c_sf_marshall);          }          {            unsigned int dimVector[1];            dimVector[0]= 2;            _SFD_SET_DATA_PROPS(1,2,0,1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,                                1.0,0,"s",0,(MexFcnForType)c3_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,"u",0,(MexFcnForType)c3_b_sf_marshall);          }          _SFD_STATE_INFO(0,0,2);          _SFD_CH_SUBSTATE_COUNT(0);          _SFD_CH_SUBSTATE_DECOMP(0);        }        _SFD_CV_INIT_CHART(0,0,0,0);        {          _SFD_CV_INIT_STATE(0,0,0,0,0,0,NULL,NULL);        }        _SFD_CV_INIT_TRANS(0,0,NULL,NULL,0,NULL);        /* Initialization of EML Model Coverage */        _SFD_CV_INIT_EML(0,1,3,0,0,0,0,6,3);        _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,665);        _SFD_CV_INIT_EML_IF(0,0,197,219,234,266);        _SFD_CV_INIT_EML_IF(0,1,397,434,449,489);        _SFD_CV_INIT_EML_IF(0,2,554,591,606,646);        {          static int condStart[] = { 201, 212 };          static int condEnd[] = { 208, 218 };          static int pfixExpr[] = { 0, 1, -3 };          _SFD_CV_INIT_EML_MCDC(0,0,201,218,2,0,&(condStart[0]),&(condEnd[0]),3,                                &(pfixExpr[0]));        }        {          static int condStart[] = { 401, 418 };          static int condEnd[] = { 414, 433 };          static int pfixExpr[] = { 0, 1, -3 };          _SFD_CV_INIT_EML_MCDC(0,1,401,433,2,2,&(condStart[0]),&(condEnd[0]),3,                                &(pfixExpr[0]));        }//.........这里部分代码省略.........
开发者ID:geniuskpj,项目名称:term-project-ae6511,代码行数:101,


示例29: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc10_experiment_lib2InstanceStruct *chartInstance;    ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S));    ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo);    chartInstance = (SFc10_experiment_lib2InstanceStruct *)      chartInfo->chartInstance;    if (ssIsFirstInitCond(S) && fullDebuggerInitialization==1) {      /* do this only if simulation is starting */      {        unsigned int chartAlreadyPresent;        chartAlreadyPresent = sf_debug_initialize_chart          (sfGlobalDebugInstanceStruct,           _experiment_lib2MachineNumber_,           10,           1,           1,           0,           4,           0,           0,           0,           0,           0,           &(chartInstance->chartNumber),           &(chartInstance->instanceNumber),           (void *)S);        /* Each instance must initialize ist own list of scripts */        init_script_number_translation(_experiment_lib2MachineNumber_,          chartInstance->chartNumber,chartInstance->instanceNumber);        if (chartAlreadyPresent==0) {          /* this is the first instance */          sf_debug_set_chart_disable_implicit_casting            (sfGlobalDebugInstanceStruct,_experiment_lib2MachineNumber_,             chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,            _experiment_lib2MachineNumber_,            chartInstance->chartNumber,            0,            0,            0);          _SFD_SET_DATA_PROPS(0,1,1,0,"V");          _SFD_SET_DATA_PROPS(1,2,0,1,"out");          _SFD_SET_DATA_PROPS(2,1,1,0,"val");          _SFD_SET_DATA_PROPS(3,10,0,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,1,0,0,0,0,0,0,0,0);        _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,50);        {          unsigned int dimVector[1];          dimVector[0]= 4;          _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,            1.0,0,0,(MexFcnForType)c10_sf_marshallOut,(MexInFcnForType)NULL);        }        {          unsigned int dimVector[1];          dimVector[0]= 4;          _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,            1.0,0,0,(MexFcnForType)c10_sf_marshallOut,(MexInFcnForType)            c10_sf_marshallIn);        }        _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,0,NULL,0,0,0,0.0,1.0,0,0,          (MexFcnForType)c10_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)c10_b_sf_marshallOut,(MexInFcnForType)          c10_b_sf_marshallIn);        {          real_T *c10_val;          real_T (*c10_V)[4];          real_T (*c10_out)[4];          c10_val = (real_T *)ssGetInputPortSignal(chartInstance->S, 1);          c10_out = (real_T (*)[4])ssGetOutputPortSignal(chartInstance->S, 1);          c10_V = (real_T (*)[4])ssGetInputPortSignal(chartInstance->S, 0);          _SFD_SET_DATA_VALUE_PTR(0U, *c10_V);          _SFD_SET_DATA_VALUE_PTR(1U, *c10_out);          _SFD_SET_DATA_VALUE_PTR(2U, c10_val);          _SFD_SET_DATA_VALUE_PTR(3U, &chartInstance->c10_a);        }      }    } else {//.........这里部分代码省略.........
开发者ID:manelvelasco,项目名称:Matlab-Library,代码行数:101,


示例30: chart_debug_initialization

static void chart_debug_initialization(SimStruct *S, unsigned int  fullDebuggerInitialization){  if (!sim_mode_is_rtw_gen(S)) {    SFc9_CusakisME4901arcs2InstanceStruct *chartInstance;    chartInstance = (SFc9_CusakisME4901arcs2InstanceStruct *) ((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,           _CusakisME4901arcs2MachineNumber_,           9,           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(_CusakisME4901arcs2MachineNumber_,            chartInstance->chartNumber);          sf_debug_set_chart_disable_implicit_casting            (sfGlobalDebugInstanceStruct,_CusakisME4901arcs2MachineNumber_,             chartInstance->chartNumber,1);          sf_debug_set_chart_event_thresholds(sfGlobalDebugInstanceStruct,            _CusakisME4901arcs2MachineNumber_,            chartInstance->chartNumber,            0,            0,            0);          _SFD_SET_DATA_PROPS(0,2,0,1,"u");          _SFD_SET_DATA_PROPS(1,2,0,1,"but");          _SFD_SET_DATA_PROPS(2,1,1,0,"Axes");          _SFD_SET_DATA_PROPS(3,1,1,0,"Buttons");          _SFD_SET_DATA_PROPS(4,2,0,1,"j");          _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,10,0,0,0,0,0,0,0);        _SFD_CV_INIT_EML_FCN(0,0,"eML_blk_kernel",0,-1,732);        _SFD_CV_INIT_EML_IF(0,1,0,176,190,212,391);        _SFD_CV_INIT_EML_IF(0,1,1,212,229,261,391);        _SFD_CV_INIT_EML_IF(0,1,2,261,280,304,391);        _SFD_CV_INIT_EML_IF(0,1,3,304,322,349,391);        _SFD_CV_INIT_EML_IF(0,1,4,393,409,415,468);        _SFD_CV_INIT_EML_IF(0,1,5,420,436,447,464);        _SFD_CV_INIT_EML_IF(0,1,6,470,486,519,728);        _SFD_CV_INIT_EML_IF(0,1,7,519,539,572,728);        _SFD_CV_INIT_EML_IF(0,1,8,572,592,625,728);        _SFD_CV_INIT_EML_IF(0,1,9,625,645,678,728);        _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]= 2;          _SFD_SET_DATA_COMPILED_PROPS(0,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,            1.0,0,0,(MexFcnForType)c9_c_sf_marshallOut,(MexInFcnForType)            c9_c_sf_marshallIn);        }        {          unsigned int dimVector[1];          dimVector[0]= 4;          _SFD_SET_DATA_COMPILED_PROPS(1,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,            1.0,0,0,(MexFcnForType)c9_b_sf_marshallOut,(MexInFcnForType)            c9_b_sf_marshallIn);        }        {          unsigned int dimVector[1];          dimVector[0]= 5;          _SFD_SET_DATA_COMPILED_PROPS(2,SF_DOUBLE,1,&(dimVector[0]),0,0,0,0.0,//.........这里部分代码省略.........
开发者ID:alexgrompone,项目名称:Cusakis,代码行数:101,



注:本文中的ssGetUserData函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


C++ ssSetChecksum1函数代码示例
C++ ssGetT函数代码示例
万事OK自学网:51自学网_软件自学网_CAD自学网自学excel、自学PS、自学CAD、自学C语言、自学css3实例,是一个通过网络自主学习工作技能的自学平台,网友喜欢的软件自学网站。