static void set_sim_state_c27_Model_justmodel (SFc27_Model_justmodelInstanceStruct *chartInstance, const mxArray *c27_st) { const mxArray *c27_u; real_T *c27_surge; real_T *c27_sway; c27_sway = (real_T *)ssGetOutputPortSignal(chartInstance->S, 2); c27_surge = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); chartInstance->c27_doneDoubleBufferReInit = TRUE; c27_u = sf_mex_dup(c27_st); *c27_surge = c27_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell (c27_u, 0)), "surge"); *c27_sway = c27_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell (c27_u, 1)), "sway"); chartInstance->c27_is_active_c27_Model_justmodel = c27_d_emlrt_marshallIn (chartInstance, sf_mex_dup(sf_mex_getcell(c27_u, 2)), "is_active_c27_Model_justmodel"); sf_mex_destroy(&c27_u); c27_update_debugger_state_c27_Model_justmodel(chartInstance); sf_mex_destroy(&c27_st); }
static void set_sim_state_c27_ArregloSeisPorSeis (SFc27_ArregloSeisPorSeisInstanceStruct *chartInstance, const mxArray *c27_st) { const mxArray *c27_u; real_T *c27_I; c27_I = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); chartInstance->c27_doneDoubleBufferReInit = TRUE; c27_u = sf_mex_dup(c27_st); *c27_I = c27_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c27_u, 0)), "I"); chartInstance->c27_is_active_c27_ArregloSeisPorSeis = c27_d_emlrt_marshallIn (chartInstance, sf_mex_dup(sf_mex_getcell(c27_u, 1)), "is_active_c27_ArregloSeisPorSeis"); sf_mex_destroy(&c27_u); c27_update_debugger_state_c27_ArregloSeisPorSeis(chartInstance); sf_mex_destroy(&c27_st); }