コード例 #1
0
static void set_sim_state_c19_heart_model(SFc19_heart_modelInstanceStruct
  *chartInstance, const mxArray *c19_st)
{
  const mxArray *c19_u;
  boolean_T *c19_event1;
  boolean_T *c19_event2;
  boolean_T *c19_event3;
  c19_event3 = (boolean_T *)ssGetOutputPortSignal(chartInstance->S, 3);
  c19_event2 = (boolean_T *)ssGetOutputPortSignal(chartInstance->S, 2);
  c19_event1 = (boolean_T *)ssGetOutputPortSignal(chartInstance->S, 1);
  c19_u = sf_mex_dup(c19_st);
  *c19_event1 = c19_f_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell
    (c19_u, 0)), "event1");
  *c19_event2 = c19_f_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell
    (c19_u, 1)), "event2");
  *c19_event3 = c19_f_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell
    (c19_u, 2)), "event3");
  chartInstance->c19_event1EventCounter = c19_emlrt_marshallIn(chartInstance,
    sf_mex_dup(sf_mex_getcell(c19_u, 3)), "event1EventCounter");
  chartInstance->c19_event2EventCounter = c19_emlrt_marshallIn(chartInstance,
    sf_mex_dup(sf_mex_getcell(c19_u, 4)), "event2EventCounter");
  chartInstance->c19_event3EventCounter = c19_emlrt_marshallIn(chartInstance,
    sf_mex_dup(sf_mex_getcell(c19_u, 5)), "event3EventCounter");
  chartInstance->c19_is_active_c19_heart_model = c19_d_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c19_u, 6)),
     "is_active_c19_heart_model");
  chartInstance->c19_is_c19_heart_model = c19_d_emlrt_marshallIn(chartInstance,
    sf_mex_dup(sf_mex_getcell(c19_u, 7)), "is_c19_heart_model");
  sf_mex_assign(&chartInstance->c19_setSimStateSideEffectsInfo,
                c19_h_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell
    (c19_u, 8)), "setSimStateSideEffectsInfo"), TRUE);
  sf_mex_destroy(&c19_u);
  chartInstance->c19_doSetSimStateSideEffects = 1U;
  c19_update_debugger_state_c19_heart_model(chartInstance);
  sf_mex_destroy(&c19_st);
}
コード例 #2
0
static void set_sim_state_c19_Array(SFc19_ArrayInstanceStruct *chartInstance,
  const mxArray *c19_st)
{
  const mxArray *c19_u;
  real_T *c19_I;
  c19_I = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c19_doneDoubleBufferReInit = TRUE;
  c19_u = sf_mex_dup(c19_st);
  *c19_I = c19_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c19_u,
    0)), "I");
  chartInstance->c19_is_active_c19_Array = c19_d_emlrt_marshallIn(chartInstance,
    sf_mex_dup(sf_mex_getcell(c19_u, 1)), "is_active_c19_Array");
  sf_mex_destroy(&c19_u);
  c19_update_debugger_state_c19_Array(chartInstance);
  sf_mex_destroy(&c19_st);
}
コード例 #3
0
static void set_sim_state_c19_EP_IdleRandMerg
  (SFc19_EP_IdleRandMergInstanceStruct *chartInstance, const mxArray *c19_st)
{
  const mxArray *c19_u;
  real_T *c19_stateOver;
  c19_stateOver = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
  chartInstance->c19_doneDoubleBufferReInit = true;
  c19_u = sf_mex_dup(c19_st);
  *c19_stateOver = c19_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell
    (c19_u, 0)), "stateOver");
  chartInstance->c19_is_active_c19_EP_IdleRandMerg = c19_d_emlrt_marshallIn
    (chartInstance, sf_mex_dup(sf_mex_getcell(c19_u, 1)),
     "is_active_c19_EP_IdleRandMerg");
  sf_mex_destroy(&c19_u);
  c19_update_debugger_state_c19_EP_IdleRandMerg(chartInstance);
  sf_mex_destroy(&c19_st);
}