• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C++ sf_opaque_init_subchart_simstructs函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: mdlStart_c29_CusakisME4901arcs

static void mdlStart_c29_CusakisME4901arcs(SimStruct *S)
{
  SFc29_CusakisME4901arcsInstanceStruct *chartInstance;
  chartInstance = (SFc29_CusakisME4901arcsInstanceStruct *)utMalloc(sizeof
    (SFc29_CusakisME4901arcsInstanceStruct));
  memset(chartInstance, 0, sizeof(SFc29_CusakisME4901arcsInstanceStruct));
  if (chartInstance==NULL) {
    sf_mex_error_message("Could not allocate memory for chart instance.");
  }

  chartInstance->chartInfo.chartInstance = chartInstance;
  chartInstance->chartInfo.isEMLChart = 1;
  chartInstance->chartInfo.chartInitialized = 0;
  chartInstance->chartInfo.sFunctionGateway =
    sf_opaque_gateway_c29_CusakisME4901arcs;
  chartInstance->chartInfo.initializeChart =
    sf_opaque_initialize_c29_CusakisME4901arcs;
  chartInstance->chartInfo.terminateChart =
    sf_opaque_terminate_c29_CusakisME4901arcs;
  chartInstance->chartInfo.enableChart = sf_opaque_enable_c29_CusakisME4901arcs;
  chartInstance->chartInfo.disableChart =
    sf_opaque_disable_c29_CusakisME4901arcs;
  chartInstance->chartInfo.getSimState =
    sf_opaque_get_sim_state_c29_CusakisME4901arcs;
  chartInstance->chartInfo.setSimState =
    sf_opaque_set_sim_state_c29_CusakisME4901arcs;
  chartInstance->chartInfo.getSimStateInfo =
    sf_get_sim_state_info_c29_CusakisME4901arcs;
  chartInstance->chartInfo.zeroCrossings = NULL;
  chartInstance->chartInfo.outputs = NULL;
  chartInstance->chartInfo.derivatives = NULL;
  chartInstance->chartInfo.mdlRTW = mdlRTW_c29_CusakisME4901arcs;
  chartInstance->chartInfo.mdlStart = mdlStart_c29_CusakisME4901arcs;
  chartInstance->chartInfo.mdlSetWorkWidths =
    mdlSetWorkWidths_c29_CusakisME4901arcs;
  chartInstance->chartInfo.extModeExec = NULL;
  chartInstance->chartInfo.restoreLastMajorStepConfiguration = NULL;
  chartInstance->chartInfo.restoreBeforeLastMajorStepConfiguration = NULL;
  chartInstance->chartInfo.storeCurrentConfiguration = NULL;
  chartInstance->S = S;
  ssSetUserData(S,(void *)(&(chartInstance->chartInfo)));/* register the chart instance with simstruct */
  init_dsm_address_info(chartInstance);
  if (!sim_mode_is_rtw_gen(S)) {
  }

  sf_opaque_init_subchart_simstructs(chartInstance->chartInfo.chartInstance);
  chart_debug_initialization(S,1);
}
开发者ID:alexgrompone,项目名称:Cusakis,代码行数:48,代码来源:c29_CusakisME4901arcs.c


示例2: mdlStart_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile

static void mdlStart_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile(SimStruct
  *S)
{
  SFc2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmileInstanceStruct
    *chartInstance;
  ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)utMalloc(sizeof
    (ChartRunTimeInfo));
  chartInstance =
    (SFc2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmileInstanceStruct *)
    utMalloc(sizeof
             (SFc2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmileInstanceStruct));
  memset(chartInstance, 0, sizeof
         (SFc2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmileInstanceStruct));
  if (chartInstance==NULL) {
    sf_mex_error_message("Could not allocate memory for chart instance.");
  }

  chartInstance->chartInfo.chartInstance = chartInstance;
  chartInstance->chartInfo.isEMLChart = 1;
  chartInstance->chartInfo.chartInitialized = 0;
  chartInstance->chartInfo.sFunctionGateway =
    sf_opaque_gateway_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile;
  chartInstance->chartInfo.initializeChart =
    sf_opaque_initialize_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile;
  chartInstance->chartInfo.terminateChart =
    sf_opaque_terminate_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile;
  chartInstance->chartInfo.enableChart =
    sf_opaque_enable_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile;
  chartInstance->chartInfo.disableChart =
    sf_opaque_disable_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile;
  chartInstance->chartInfo.getSimState =
    sf_opaque_get_sim_state_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile;
  chartInstance->chartInfo.setSimState =
    sf_opaque_set_sim_state_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile;
  chartInstance->chartInfo.getSimStateInfo =
    sf_get_sim_state_info_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile;
  chartInstance->chartInfo.zeroCrossings = NULL;
  chartInstance->chartInfo.outputs = NULL;
  chartInstance->chartInfo.derivatives = NULL;
  chartInstance->chartInfo.mdlRTW =
    mdlRTW_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile;
  chartInstance->chartInfo.mdlStart =
    mdlStart_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile;
  chartInstance->chartInfo.mdlSetWorkWidths =
    mdlSetWorkWidths_c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile;
  chartInstance->chartInfo.extModeExec = NULL;
  chartInstance->chartInfo.restoreLastMajorStepConfiguration = NULL;
  chartInstance->chartInfo.restoreBeforeLastMajorStepConfiguration = NULL;
  chartInstance->chartInfo.storeCurrentConfiguration = NULL;
  chartInstance->chartInfo.debugInstance = sfGlobalDebugInstanceStruct;
  chartInstance->S = S;
  crtInfo->instanceInfo = (&(chartInstance->chartInfo));
  crtInfo->isJITEnabled = false;
  ssSetUserData(S,(void *)(crtInfo));  /* register the chart instance with simstruct */
  init_dsm_address_info(chartInstance);
  if (!sim_mode_is_rtw_gen(S)) {
  }

  sf_opaque_init_subchart_simstructs(chartInstance->chartInfo.chartInstance);
  chart_debug_initialization(S,1);
}
开发者ID:maryamsab,项目名称:realact,代码行数:61,代码来源:c2_ARP_02_RPSsmile_GloveAtomicBradNotImitateSmile.c


示例3: mdlStart_c3_Engine_Vehicle_CVT_Wit_System1_trial1

static void mdlStart_c3_Engine_Vehicle_CVT_Wit_System1_trial1(SimStruct *S)
{
    SFc3_Engine_Vehicle_CVT_Wit_System1_trial1InstanceStruct *chartInstance;
    ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)utMalloc(sizeof
                                 (ChartRunTimeInfo));
    chartInstance = (SFc3_Engine_Vehicle_CVT_Wit_System1_trial1InstanceStruct *)
                    utMalloc(sizeof(SFc3_Engine_Vehicle_CVT_Wit_System1_trial1InstanceStruct));
    memset(chartInstance, 0, sizeof
           (SFc3_Engine_Vehicle_CVT_Wit_System1_trial1InstanceStruct));
    if (chartInstance==NULL) {
        sf_mex_error_message("Could not allocate memory for chart instance.");
    }

    chartInstance->chartInfo.chartInstance = chartInstance;
    chartInstance->chartInfo.isEMLChart = 0;
    chartInstance->chartInfo.chartInitialized = 0;
    chartInstance->chartInfo.sFunctionGateway =
        sf_opaque_gateway_c3_Engine_Vehicle_CVT_Wit_System1_trial1;
    chartInstance->chartInfo.initializeChart =
        sf_opaque_initialize_c3_Engine_Vehicle_CVT_Wit_System1_trial1;
    chartInstance->chartInfo.terminateChart =
        sf_opaque_terminate_c3_Engine_Vehicle_CVT_Wit_System1_trial1;
    chartInstance->chartInfo.enableChart =
        sf_opaque_enable_c3_Engine_Vehicle_CVT_Wit_System1_trial1;
    chartInstance->chartInfo.disableChart =
        sf_opaque_disable_c3_Engine_Vehicle_CVT_Wit_System1_trial1;
    chartInstance->chartInfo.getSimState =
        sf_opaque_get_sim_state_c3_Engine_Vehicle_CVT_Wit_System1_trial1;
    chartInstance->chartInfo.setSimState =
        sf_opaque_set_sim_state_c3_Engine_Vehicle_CVT_Wit_System1_trial1;
    chartInstance->chartInfo.getSimStateInfo =
        sf_get_sim_state_info_c3_Engine_Vehicle_CVT_Wit_System1_trial1;
    chartInstance->chartInfo.zeroCrossings = NULL;
    chartInstance->chartInfo.outputs = NULL;
    chartInstance->chartInfo.derivatives = NULL;
    chartInstance->chartInfo.mdlRTW =
        mdlRTW_c3_Engine_Vehicle_CVT_Wit_System1_trial1;
    chartInstance->chartInfo.mdlStart =
        mdlStart_c3_Engine_Vehicle_CVT_Wit_System1_trial1;
    chartInstance->chartInfo.mdlSetWorkWidths =
        mdlSetWorkWidths_c3_Engine_Vehicle_CVT_Wit_System1_trial1;
    chartInstance->chartInfo.extModeExec = NULL;
    chartInstance->chartInfo.restoreLastMajorStepConfiguration = NULL;
    chartInstance->chartInfo.restoreBeforeLastMajorStepConfiguration = NULL;
    chartInstance->chartInfo.storeCurrentConfiguration = NULL;
    chartInstance->chartInfo.callAtomicSubchartUserFcn = NULL;
    chartInstance->chartInfo.callAtomicSubchartAutoFcn = NULL;
    chartInstance->chartInfo.debugInstance = sfGlobalDebugInstanceStruct;
    chartInstance->S = S;
    crtInfo->checksum = SF_RUNTIME_INFO_CHECKSUM;
    crtInfo->instanceInfo = (&(chartInstance->chartInfo));
    crtInfo->isJITEnabled = false;
    crtInfo->compiledInfo = NULL;
    ssSetUserData(S,(void *)(crtInfo));  /* register the chart instance with simstruct */
    init_dsm_address_info(chartInstance);
    init_simulink_io_address(chartInstance);
    if (!sim_mode_is_rtw_gen(S)) {
    }

    sf_opaque_init_subchart_simstructs(chartInstance->chartInfo.chartInstance);
    chart_debug_initialization(S,1);
}
开发者ID:rsutjion,项目名称:Matlab-Simulation---shared-GitHub,代码行数:62,代码来源:c3_Engine_Vehicle_CVT_Wit_System1_trial1.c



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C++ sf_process_autoinheritance_call函数代码示例发布时间:2022-05-30
下一篇:
C++ sf_mex_setcell函数代码示例发布时间:2022-05-30
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap