예제 #1
0
static void set_sim_state_c3_ErdMond(SFc3_ErdMondInstanceStruct *chartInstance,
  const mxArray *c3_st)
{
  const mxArray *c3_u;
  real_T c3_dv0[2];
  int32_T c3_i1;
  real_T (*c3_a)[2];
  c3_a = (real_T (*)[2])ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c3_doneDoubleBufferReInit = TRUE;
  c3_u = sf_mex_dup(c3_st);
  c3_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 0)), "a",
                      c3_dv0);
  for (c3_i1 = 0; c3_i1 < 2; c3_i1++) {
    (*c3_a)[c3_i1] = c3_dv0[c3_i1];
  }

  chartInstance->c3_is_active_c3_ErdMond = c3_e_emlrt_marshallIn(chartInstance,
    sf_mex_dup(sf_mex_getcell(c3_u, 1)), "is_active_c3_ErdMond");
  sf_mex_destroy(&c3_u);
  c3_update_debugger_state_c3_ErdMond(chartInstance);
  sf_mex_destroy(&c3_st);
}
static void set_sim_state_c3_Engine_Vehicle_CVT_Wit_System1_trial1
(SFc3_Engine_Vehicle_CVT_Wit_System1_trial1InstanceStruct *chartInstance,
 const mxArray *c3_st)
{
    const mxArray *c3_u;
    boolean_T c3_bv0[1];
    chartInstance->c3_doneDoubleBufferReInit = true;
    c3_u = sf_mex_dup(c3_st);
    *chartInstance->c3_ClutchON = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup
                                  (sf_mex_getcell(c3_u, 0)), "ClutchON");
    chartInstance->c3_is_active_c3_Engine_Vehicle_CVT_Wit_System1_trial1 =
        c3_e_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 1)),
                              "is_active_c3_Engine_Vehicle_CVT_Wit_System1_trial1");
    c3_g_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c3_u, 2)),
                          "dataWrittenToVector", c3_bv0);
    chartInstance->c3_dataWrittenToVector[0] = c3_bv0[0];
    sf_mex_assign(&chartInstance->c3_setSimStateSideEffectsInfo,
                  c3_i_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell
                                        (c3_u, 3)), "setSimStateSideEffectsInfo"), true);
    sf_mex_destroy(&c3_u);
    chartInstance->c3_doSetSimStateSideEffects = 1U;
    c3_update_debugger_state_c3_Engine_Vehicle_CVT_Wit_System1_trial(chartInstance);
    sf_mex_destroy(&c3_st);
}