static void mdlStart_c4_Force_Rendering(SimStruct *S)
{
  chartInstance.chartInfo.chartInstance = NULL;
  chartInstance.chartInfo.isEMLChart = 1;
  chartInstance.chartInfo.chartInitialized = 0;
  chartInstance.chartInfo.sFunctionGateway =
    sf_opaque_gateway_c4_Force_Rendering;
  chartInstance.chartInfo.initializeChart =
    sf_opaque_initialize_c4_Force_Rendering;
  chartInstance.chartInfo.terminateChart =
    sf_opaque_terminate_c4_Force_Rendering;
  chartInstance.chartInfo.enableChart = sf_opaque_enable_c4_Force_Rendering;
  chartInstance.chartInfo.disableChart = sf_opaque_disable_c4_Force_Rendering;
  chartInstance.chartInfo.zeroCrossings = NULL;
  chartInstance.chartInfo.outputs = NULL;
  chartInstance.chartInfo.derivatives = NULL;
  chartInstance.chartInfo.mdlRTW = mdlRTW_c4_Force_Rendering;
  chartInstance.chartInfo.mdlStart = mdlStart_c4_Force_Rendering;
  chartInstance.chartInfo.mdlSetWorkWidths = mdlSetWorkWidths_c4_Force_Rendering;
  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 */

  if(!sim_mode_is_rtw_gen(S)) {
    init_dsm_address_info();
  }
}
static void mdlStart_c2_function_call_test(SimStruct *S)
{
  chartInstance.chartInfo.chartInstance = NULL;
  chartInstance.chartInfo.isEMLChart = 1;
  chartInstance.chartInfo.chartInitialized = 0;
  chartInstance.chartInfo.sFunctionGateway =
    sf_opaque_gateway_c2_function_call_test;
  chartInstance.chartInfo.initializeChart =
    sf_opaque_initialize_c2_function_call_test;
  chartInstance.chartInfo.terminateChart =
    sf_opaque_terminate_c2_function_call_test;
  chartInstance.chartInfo.enableChart = sf_opaque_enable_c2_function_call_test;
  chartInstance.chartInfo.disableChart = sf_opaque_disable_c2_function_call_test;
  chartInstance.chartInfo.mdlRTW = mdlRTW_c2_function_call_test;
  chartInstance.chartInfo.mdlStart = mdlStart_c2_function_call_test;
  chartInstance.chartInfo.mdlSetWorkWidths =
    mdlSetWorkWidths_c2_function_call_test;
  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 */
  ssSetmdlSimulationContextIO(S, sf_c2_function_call_test_sim_ctx_io);
  if(!sim_mode_is_rtw_gen(S)) {
    init_dsm_address_info();
  }
}
Exemple #3
0
static void mdlStart_c1_minimalist14(SimStruct *S)
{
  chartInstance.chartInfo.chartInstance = NULL;
  chartInstance.chartInfo.isEMLChart = 0;
  chartInstance.chartInfo.chartInitialized = 0;
  chartInstance.chartInfo.sFunctionGateway = sf_opaque_gateway_c1_minimalist14;
  chartInstance.chartInfo.initializeChart = sf_opaque_initialize_c1_minimalist14;
  chartInstance.chartInfo.terminateChart = sf_opaque_terminate_c1_minimalist14;
  chartInstance.chartInfo.enableChart = sf_opaque_enable_c1_minimalist14;
  chartInstance.chartInfo.disableChart = sf_opaque_disable_c1_minimalist14;
  chartInstance.chartInfo.getSimState = sf_opaque_get_sim_state_c1_minimalist14;
  chartInstance.chartInfo.setSimState = sf_opaque_set_sim_state_c1_minimalist14;
  chartInstance.chartInfo.getSimStateInfo =
    sf_get_sim_state_info_c1_minimalist14;
  chartInstance.chartInfo.zeroCrossings = NULL;
  chartInstance.chartInfo.outputs = NULL;
  chartInstance.chartInfo.derivatives = NULL;
  chartInstance.chartInfo.mdlRTW = mdlRTW_c1_minimalist14;
  chartInstance.chartInfo.mdlStart = mdlStart_c1_minimalist14;
  chartInstance.chartInfo.mdlSetWorkWidths = mdlSetWorkWidths_c1_minimalist14;
  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 */
  if (!sim_mode_is_rtw_gen(S)) {
    init_test_point_mapping_info(S);
    init_dsm_address_info();
  }

  chart_debug_initialization(S,1);
}
static void mdlStart_c2_DYNctl_ver4_etud_nonlineaire(SimStruct *S)
{
  SFc2_DYNctl_ver4_etud_nonlineaireInstanceStruct *chartInstance;
  ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)utMalloc(sizeof
    (ChartRunTimeInfo));
  chartInstance = (SFc2_DYNctl_ver4_etud_nonlineaireInstanceStruct *)utMalloc
    (sizeof(SFc2_DYNctl_ver4_etud_nonlineaireInstanceStruct));
  memset(chartInstance, 0, sizeof
         (SFc2_DYNctl_ver4_etud_nonlineaireInstanceStruct));
  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_DYNctl_ver4_etud_nonlineaire;
  chartInstance->chartInfo.initializeChart =
    sf_opaque_initialize_c2_DYNctl_ver4_etud_nonlineaire;
  chartInstance->chartInfo.terminateChart =
    sf_opaque_terminate_c2_DYNctl_ver4_etud_nonlineaire;
  chartInstance->chartInfo.enableChart =
    sf_opaque_enable_c2_DYNctl_ver4_etud_nonlineaire;
  chartInstance->chartInfo.disableChart =
    sf_opaque_disable_c2_DYNctl_ver4_etud_nonlineaire;
  chartInstance->chartInfo.getSimState =
    sf_opaque_get_sim_state_c2_DYNctl_ver4_etud_nonlineaire;
  chartInstance->chartInfo.setSimState =
    sf_opaque_set_sim_state_c2_DYNctl_ver4_etud_nonlineaire;
  chartInstance->chartInfo.getSimStateInfo =
    sf_get_sim_state_info_c2_DYNctl_ver4_etud_nonlineaire;
  chartInstance->chartInfo.zeroCrossings = NULL;
  chartInstance->chartInfo.outputs = NULL;
  chartInstance->chartInfo.derivatives = NULL;
  chartInstance->chartInfo.mdlRTW = mdlRTW_c2_DYNctl_ver4_etud_nonlineaire;
  chartInstance->chartInfo.mdlStart = mdlStart_c2_DYNctl_ver4_etud_nonlineaire;
  chartInstance->chartInfo.mdlSetWorkWidths =
    mdlSetWorkWidths_c2_DYNctl_ver4_etud_nonlineaire;
  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);
}
Exemple #5
0
static void mdlStart_c4_MON_sl_after_replacement3(SimStruct *S)
{
  SFc4_MON_sl_after_replacement3InstanceStruct *chartInstance;
  chartInstance = (SFc4_MON_sl_after_replacement3InstanceStruct *)utMalloc
    (sizeof(SFc4_MON_sl_after_replacement3InstanceStruct));
  if (chartInstance==NULL) {
    sf_mex_error_message("Could not allocate memory for chart instance.");
  }

  memset(chartInstance, 0, sizeof(SFc4_MON_sl_after_replacement3InstanceStruct));
  chartInstance->chartInfo.chartInstance = chartInstance;
  chartInstance->chartInfo.isEMLChart = 0;
  chartInstance->chartInfo.chartInitialized = 0;
  chartInstance->chartInfo.sFunctionGateway =
    sf_opaque_gateway_c4_MON_sl_after_replacement3;
  chartInstance->chartInfo.initializeChart =
    sf_opaque_initialize_c4_MON_sl_after_replacement3;
  chartInstance->chartInfo.terminateChart =
    sf_opaque_terminate_c4_MON_sl_after_replacement3;
  chartInstance->chartInfo.enableChart =
    sf_opaque_enable_c4_MON_sl_after_replacement3;
  chartInstance->chartInfo.disableChart =
    sf_opaque_disable_c4_MON_sl_after_replacement3;
  chartInstance->chartInfo.getSimState =
    sf_opaque_get_sim_state_c4_MON_sl_after_replacement3;
  chartInstance->chartInfo.setSimState =
    sf_opaque_set_sim_state_c4_MON_sl_after_replacement3;
  chartInstance->chartInfo.getSimStateInfo =
    sf_get_sim_state_info_c4_MON_sl_after_replacement3;
  chartInstance->chartInfo.zeroCrossings = NULL;
  chartInstance->chartInfo.outputs = NULL;
  chartInstance->chartInfo.derivatives = NULL;
  chartInstance->chartInfo.mdlRTW = mdlRTW_c4_MON_sl_after_replacement3;
  chartInstance->chartInfo.mdlStart = mdlStart_c4_MON_sl_after_replacement3;
  chartInstance->chartInfo.mdlSetWorkWidths =
    mdlSetWorkWidths_c4_MON_sl_after_replacement3;
  chartInstance->chartInfo.callGetHoverDataForMsg =
    sf_opaque_get_hover_data_for_msg;
  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;
  sf_init_ChartRunTimeInfo(S, &(chartInstance->chartInfo), false, 0);
  init_dsm_address_info(chartInstance);
  init_simulink_io_address(chartInstance);
  if (!sim_mode_is_rtw_gen(S)) {
  }

  chart_debug_initialization(S,1);
  mdl_start_c4_MON_sl_after_replacement3(chartInstance);
}
static void mdlStart_c13_ARP_02_RPSs_Bdr_GK_BIS5(SimStruct *S)
{
  SFc13_ARP_02_RPSs_Bdr_GK_BIS5InstanceStruct *chartInstance;
  ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)utMalloc(sizeof
    (ChartRunTimeInfo));
  chartInstance = (SFc13_ARP_02_RPSs_Bdr_GK_BIS5InstanceStruct *)utMalloc(sizeof
    (SFc13_ARP_02_RPSs_Bdr_GK_BIS5InstanceStruct));
  memset(chartInstance, 0, sizeof(SFc13_ARP_02_RPSs_Bdr_GK_BIS5InstanceStruct));
  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_c13_ARP_02_RPSs_Bdr_GK_BIS5;
  chartInstance->chartInfo.initializeChart =
    sf_opaque_initialize_c13_ARP_02_RPSs_Bdr_GK_BIS5;
  chartInstance->chartInfo.terminateChart =
    sf_opaque_terminate_c13_ARP_02_RPSs_Bdr_GK_BIS5;
  chartInstance->chartInfo.enableChart =
    sf_opaque_enable_c13_ARP_02_RPSs_Bdr_GK_BIS5;
  chartInstance->chartInfo.disableChart =
    sf_opaque_disable_c13_ARP_02_RPSs_Bdr_GK_BIS5;
  chartInstance->chartInfo.getSimState =
    sf_opaque_get_sim_state_c13_ARP_02_RPSs_Bdr_GK_BIS5;
  chartInstance->chartInfo.setSimState =
    sf_opaque_set_sim_state_c13_ARP_02_RPSs_Bdr_GK_BIS5;
  chartInstance->chartInfo.getSimStateInfo =
    sf_get_sim_state_info_c13_ARP_02_RPSs_Bdr_GK_BIS5;
  chartInstance->chartInfo.zeroCrossings = NULL;
  chartInstance->chartInfo.outputs = NULL;
  chartInstance->chartInfo.derivatives = NULL;
  chartInstance->chartInfo.mdlRTW = mdlRTW_c13_ARP_02_RPSs_Bdr_GK_BIS5;
  chartInstance->chartInfo.mdlStart = mdlStart_c13_ARP_02_RPSs_Bdr_GK_BIS5;
  chartInstance->chartInfo.mdlSetWorkWidths =
    mdlSetWorkWidths_c13_ARP_02_RPSs_Bdr_GK_BIS5;
  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);
}
static void mdlStart_c1_motor_control_with_off_the_shelf_SVPWM(SimStruct *S)
{
  SFc1_motor_control_with_off_the_shelf_SVPWMInstanceStruct *chartInstance;
  chartInstance = (SFc1_motor_control_with_off_the_shelf_SVPWMInstanceStruct *)
    malloc(sizeof(SFc1_motor_control_with_off_the_shelf_SVPWMInstanceStruct));
  memset(chartInstance, 0, sizeof
         (SFc1_motor_control_with_off_the_shelf_SVPWMInstanceStruct));
  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_c1_motor_control_with_off_the_shelf_SVPWM;
  chartInstance->chartInfo.initializeChart =
    sf_opaque_initialize_c1_motor_control_with_off_the_shelf_SVPWM;
  chartInstance->chartInfo.terminateChart =
    sf_opaque_terminate_c1_motor_control_with_off_the_shelf_SVPWM;
  chartInstance->chartInfo.enableChart =
    sf_opaque_enable_c1_motor_control_with_off_the_shelf_SVPWM;
  chartInstance->chartInfo.disableChart =
    sf_opaque_disable_c1_motor_control_with_off_the_shelf_SVPWM;
  chartInstance->chartInfo.getSimState =
    sf_opaque_get_sim_state_c1_motor_control_with_off_the_shelf_SVPWM;
  chartInstance->chartInfo.setSimState =
    sf_opaque_set_sim_state_c1_motor_control_with_off_the_shelf_SVPWM;
  chartInstance->chartInfo.getSimStateInfo =
    sf_get_sim_state_info_c1_motor_control_with_off_the_shelf_SVPWM;
  chartInstance->chartInfo.zeroCrossings = NULL;
  chartInstance->chartInfo.outputs = NULL;
  chartInstance->chartInfo.derivatives = NULL;
  chartInstance->chartInfo.mdlRTW =
    mdlRTW_c1_motor_control_with_off_the_shelf_SVPWM;
  chartInstance->chartInfo.mdlStart =
    mdlStart_c1_motor_control_with_off_the_shelf_SVPWM;
  chartInstance->chartInfo.mdlSetWorkWidths =
    mdlSetWorkWidths_c1_motor_control_with_off_the_shelf_SVPWM;
  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);
}