예제 #1
0
static uint8_T c10_d_emlrt_marshallIn(SFc10_hybridSysSimInstanceStruct
  *chartInstance, const mxArray *c10_b_is_active_c10_hybridSysSim, const char_T *
  c10_identifier)
{
  uint8_T c10_y;
  emlrtMsgIdentifier c10_thisId;
  c10_thisId.fIdentifier = c10_identifier;
  c10_thisId.fParent = NULL;
  c10_y = c10_e_emlrt_marshallIn(chartInstance, sf_mex_dup
    (c10_b_is_active_c10_hybridSysSim), &c10_thisId);
  sf_mex_destroy(&c10_b_is_active_c10_hybridSysSim);
  return c10_y;
}
static void set_sim_state_c10_experiment_lib2
  (SFc10_experiment_lib2InstanceStruct *chartInstance, const mxArray *c10_st)
{
  const mxArray *c10_u;
  real_T c10_dv0[4];
  int32_T c10_i1;
  real_T (*c10_out)[4];
  c10_out = (real_T (*)[4])ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c10_doneDoubleBufferReInit = true;
  c10_u = sf_mex_dup(c10_st);
  c10_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c10_u, 0)),
                       "out", c10_dv0);
  for (c10_i1 = 0; c10_i1 < 4; c10_i1++) {
    (*c10_out)[c10_i1] = c10_dv0[c10_i1];
  }

  chartInstance->c10_is_active_c10_experiment_lib2 = c10_e_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c10_u, 1)),
     "is_active_c10_experiment_lib2");
  sf_mex_destroy(&c10_u);
  c10_update_debugger_state_c10_experiment_lib2(chartInstance);
  sf_mex_destroy(&c10_st);
}
static void set_sim_state_c10_dynamics_kinematics
  (SFc10_dynamics_kinematicsInstanceStruct *chartInstance, const mxArray *c10_st)
{
  const mxArray *c10_u;
  real_T c10_dv0[144];
  int32_T c10_i1;
  real_T (*c10_M)[144];
  c10_M = (real_T (*)[144])ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c10_doneDoubleBufferReInit = TRUE;
  c10_u = sf_mex_dup(c10_st);
  c10_b_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c10_u, 0)),
    "M", c10_dv0);
  for (c10_i1 = 0; c10_i1 < 144; c10_i1++) {
    (*c10_M)[c10_i1] = c10_dv0[c10_i1];
  }

  chartInstance->c10_is_active_c10_dynamics_kinematics = c10_e_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c10_u, 1)),
     "is_active_c10_dynamics_kinematics");
  sf_mex_destroy(&c10_u);
  c10_update_debugger_state_c10_dynamics_kinematics(chartInstance);
  sf_mex_destroy(&c10_st);
}
static void set_sim_state_c10_HIL_model_overall
  (SFc10_HIL_model_overallInstanceStruct *chartInstance, const mxArray *c10_st)
{
  const mxArray *c10_u;
  real_T c10_dv0[9];
  int32_T c10_i1;
  real_T (*c10_R)[9];
  c10_R = (real_T (*)[9])ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c10_doneDoubleBufferReInit = TRUE;
  c10_u = sf_mex_dup(c10_st);
  c10_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c10_u, 0)), "R",
                       c10_dv0);
  for (c10_i1 = 0; c10_i1 < 9; c10_i1++) {
    (*c10_R)[c10_i1] = c10_dv0[c10_i1];
  }

  chartInstance->c10_is_active_c10_HIL_model_overall = c10_e_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c10_u, 1)),
     "is_active_c10_HIL_model_overall");
  sf_mex_destroy(&c10_u);
  c10_update_debugger_state_c10_HIL_model_overall(chartInstance);
  sf_mex_destroy(&c10_st);
}