本文整理汇总了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);
}
示例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);
}
示例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