Esempio n. 1
0
static void set_sim_state_c4_iC_3ph_MR2(SFc4_iC_3ph_MR2InstanceStruct
  *chartInstance, const mxArray *c4_st)
{
  const mxArray *c4_u;
  real_T *c4_up_a;
  real_T *c4_up_b;
  real_T *c4_up_c;
  c4_up_c = (real_T *)ssGetOutputPortSignal(chartInstance->S, 3);
  c4_up_b = (real_T *)ssGetOutputPortSignal(chartInstance->S, 2);
  c4_up_a = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c4_doneDoubleBufferReInit = TRUE;
  c4_u = sf_mex_dup(c4_st);
  *c4_up_a = c4_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c4_u,
    0)), "up_a");
  *c4_up_b = c4_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c4_u,
    1)), "up_b");
  *c4_up_c = c4_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c4_u,
    2)), "up_c");
  chartInstance->c4_is_active_c4_iC_3ph_MR2 = c4_e_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c4_u, 3)),
     "is_active_c4_iC_3ph_MR2");
  sf_mex_destroy(&c4_u);
  c4_update_debugger_state_c4_iC_3ph_MR2(chartInstance);
  sf_mex_destroy(&c4_st);
}
static uint8_T c4_d_emlrt_marshallIn(SFc4_varymultiswarmInstanceStruct
  *chartInstance, const mxArray *c4_b_is_active_c4_varymultiswarm, const char_T *
  c4_identifier)
{
  uint8_T c4_y;
  emlrtMsgIdentifier c4_thisId;
  c4_thisId.fIdentifier = c4_identifier;
  c4_thisId.fParent = NULL;
  c4_y = c4_e_emlrt_marshallIn(chartInstance, sf_mex_dup
    (c4_b_is_active_c4_varymultiswarm), &c4_thisId);
  sf_mex_destroy(&c4_b_is_active_c4_varymultiswarm);
  return c4_y;
}
Esempio n. 3
0
static uint8_T c4_d_emlrt_marshallIn
  (SFc4_MON_sl_after_replacement3InstanceStruct *chartInstance, const mxArray
   *c4_b_is_active_c4_MON_sl_after_replacement3, const char_T *c4_identifier)
{
  uint8_T c4_y;
  emlrtMsgIdentifier c4_thisId;
  c4_thisId.fIdentifier = c4_identifier;
  c4_thisId.fParent = NULL;
  c4_thisId.bParentIsCell = false;
  c4_y = c4_e_emlrt_marshallIn(chartInstance, sf_mex_dup
    (c4_b_is_active_c4_MON_sl_after_replacement3), &c4_thisId);
  sf_mex_destroy(&c4_b_is_active_c4_MON_sl_after_replacement3);
  return c4_y;
}
Esempio n. 4
0
static void set_sim_state_c4_DisplayCANMsg(SFc4_DisplayCANMsgInstanceStruct
  *chartInstance, const mxArray *c4_st)
{
  const mxArray *c4_u;
  chartInstance->c4_doneDoubleBufferReInit = true;
  c4_u = sf_mex_dup(c4_st);
  *chartInstance->c4_y = c4_emlrt_marshallIn(chartInstance, sf_mex_dup
    (sf_mex_getcell("y", c4_u, 0)), "y");
  chartInstance->c4_is_active_c4_DisplayCANMsg = c4_e_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell("is_active_c4_DisplayCANMsg", c4_u,
       1)), "is_active_c4_DisplayCANMsg");
  sf_mex_destroy(&c4_u);
  c4_update_debugger_state_c4_DisplayCANMsg(chartInstance);
  sf_mex_destroy(&c4_st);
}
Esempio n. 5
0
static void set_sim_state_c4_StateObserver_2(SFc4_StateObserver_2InstanceStruct *
  chartInstance, const mxArray *c4_st)
{
  const mxArray *c4_b_u;
  real_T c4_dv0[112];
  int32_T c4_i1;
  chartInstance->c4_doneDoubleBufferReInit = true;
  c4_b_u = sf_mex_dup(c4_st);
  c4_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c4_b_u, 0)),
                      "HT_k", c4_dv0);
  for (c4_i1 = 0; c4_i1 < 112; c4_i1++) {
    (*chartInstance->c4_HT_k)[c4_i1] = c4_dv0[c4_i1];
  }

  chartInstance->c4_is_active_c4_StateObserver_2 = c4_e_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c4_b_u, 1)),
     "is_active_c4_StateObserver_2");
  sf_mex_destroy(&c4_b_u);
  c4_update_debugger_state_c4_StateObserver_2(chartInstance);
  sf_mex_destroy(&c4_st);
}