static void c2_b_emlrt_marshallIn(SFc2_gesamtmodellInstanceStruct *chartInstance, const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId, real_T c2_y[3]) { real_T c2_dv1[3]; int32_T c2_i18; sf_mex_import(c2_parentId, sf_mex_dup(c2_u), c2_dv1, 1, 0, 0U, 1, 0U, 1, 3); for (c2_i18 = 0; c2_i18 < 3; c2_i18++) { c2_y[c2_i18] = c2_dv1[c2_i18]; } sf_mex_destroy(&c2_u); }
static real_T c19_emlrt_marshallIn(SFc19_EP_IdleRandMergInstanceStruct *chartInstance, const mxArray *c19_stateOver, const char_T *c19_identifier) { real_T c19_y; emlrtMsgIdentifier c19_thisId; c19_thisId.fIdentifier = c19_identifier; c19_thisId.fParent = NULL; c19_y = c19_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c19_stateOver), &c19_thisId); sf_mex_destroy(&c19_stateOver); return c19_y; }
static uint8_T c2_c_emlrt_marshallIn(SFc2_DemoIdleInstanceStruct *chartInstance, const mxArray *c2_b_is_active_c2_DemoIdle, const char_T *c2_identifier) { uint8_T c2_y; emlrtMsgIdentifier c2_thisId; c2_thisId.fIdentifier = c2_identifier; c2_thisId.fParent = NULL; c2_y = c2_d_emlrt_marshallIn(chartInstance, sf_mex_dup (c2_b_is_active_c2_DemoIdle), &c2_thisId); sf_mex_destroy(&c2_b_is_active_c2_DemoIdle); return c2_y; }
static void c2_b_emlrt_marshallIn(SFc2_QuadsimInstanceStruct *chartInstance, const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId, real_T c2_y[12]) { real_T c2_dv1[12]; int32_T c2_i8; sf_mex_import(c2_parentId, sf_mex_dup(c2_u), c2_dv1, 1, 0, 0U, 1, 0U, 2, 1, 12); for (c2_i8 = 0; c2_i8 < 12; c2_i8++) { c2_y[c2_i8] = c2_dv1[c2_i8]; } sf_mex_destroy(&c2_u); }
static uint8_T c3_e_emlrt_marshallIn (SFc3_ARP_02_RPSsmile_GloveSHOREInstanceStruct *chartInstance, const mxArray *c3_u, const emlrtMsgIdentifier *c3_parentId) { uint8_T c3_y; uint8_T c3_u0; (void)chartInstance; sf_mex_import(c3_parentId, sf_mex_dup(c3_u), &c3_u0, 1, 3, 0U, 0, 0U, 0); c3_y = c3_u0; sf_mex_destroy(&c3_u); return c3_y; }
static void c2_d_emlrt_marshallIn(SFc2_gesamtmodellInstanceStruct *chartInstance, const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId, real_T c2_y[9]) { real_T c2_dv2[9]; int32_T c2_i28; sf_mex_import(c2_parentId, sf_mex_dup(c2_u), c2_dv2, 1, 0, 0U, 1, 0U, 2, 3, 3); for (c2_i28 = 0; c2_i28 < 9; c2_i28++) { c2_y[c2_i28] = c2_dv2[c2_i28]; } sf_mex_destroy(&c2_u); }
static real_T c3_emlrt_marshallIn(SFc3_aircraft_2InstanceStruct *chartInstance, const mxArray *c3_b_etaLat, const char_T *c3_identifier) { real_T c3_y; emlrtMsgIdentifier c3_thisId; c3_thisId.fIdentifier = c3_identifier; c3_thisId.fParent = NULL; c3_y = c3_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c3_b_etaLat), &c3_thisId); sf_mex_destroy(&c3_b_etaLat); return c3_y; }
static void set_sim_state_c1_minimalist14(const mxArray *c1_st) { const mxArray *c1_u; const mxArray *c1_b_is_active_c1_minimalist14; uint8_T c1_u0; uint8_T c1_y; const mxArray *c1_c_is_active_c1_minimalist14; uint8_T c1_u1; uint8_T c1_b_y; const mxArray *c1_b_setSimStateSideEffectsInfo; const mxArray *c1_c_y = NULL; c1_u = sf_mex_dup(c1_st); c1_b_is_active_c1_minimalist14 = sf_mex_dup(sf_mex_getcell(c1_u, 0)); sf_mex_import("is_active_c1_minimalist14", sf_mex_dup (c1_b_is_active_c1_minimalist14), &c1_u0, 1, 3, 0U, 0, 0U, 0); c1_y = c1_u0; sf_mex_destroy(&c1_b_is_active_c1_minimalist14); chartInstance.c1_is_active_c1_minimalist14 = c1_y; c1_c_is_active_c1_minimalist14 = sf_mex_dup(sf_mex_getcell(c1_u, 1)); sf_mex_import("is_c1_minimalist14", sf_mex_dup(c1_c_is_active_c1_minimalist14), &c1_u1, 1, 3, 0U, 0, 0U, 0); c1_b_y = c1_u1; sf_mex_destroy(&c1_c_is_active_c1_minimalist14); chartInstance.c1_is_c1_minimalist14 = c1_b_y; c1_b_setSimStateSideEffectsInfo = sf_mex_dup(sf_mex_getcell(c1_u, 2)); c1_c_y = NULL; sf_mex_assign(&c1_c_y, sf_mex_duplicatearraysafe (&c1_b_setSimStateSideEffectsInfo)); sf_mex_destroy(&c1_b_setSimStateSideEffectsInfo); sf_mex_assign(&chartInstance.c1_setSimStateSideEffectsInfo, c1_c_y); sf_mex_destroy(&c1_u); chartInstance.c1_doSetSimStateSideEffects = 1U; c1_update_debugger_state_c1_minimalist14(); sf_mex_destroy(&c1_st); }
static void set_sim_state_c1_my_demo_ref(SFc1_my_demo_refInstanceStruct *chartInstance, const mxArray *c1_st) { const mxArray *c1_u; real_T *c1_stop; real_T *c1_x_g; real_T *c1_y_g; c1_stop = (real_T *)ssGetOutputPortSignal(chartInstance->S, 3); c1_y_g = (real_T *)ssGetOutputPortSignal(chartInstance->S, 2); c1_x_g = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1); chartInstance->c1_doneDoubleBufferReInit = TRUE; c1_u = sf_mex_dup(c1_st); *c1_stop = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 0)), "stop"); *c1_x_g = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 1)), "x_g"); *c1_y_g = c1_c_emlrt_marshallIn(chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 2)), "y_g"); chartInstance->c1_i = c1_emlrt_marshallIn(chartInstance, sf_mex_dup (sf_mex_getcell(c1_u, 3)), "i"); chartInstance->c1_is_active_c1_my_demo_ref = c1_g_emlrt_marshallIn (chartInstance, sf_mex_dup(sf_mex_getcell(c1_u, 4)), "is_active_c1_my_demo_ref"); sf_mex_destroy(&c1_u); c1_update_debugger_state_c1_my_demo_ref(chartInstance); sf_mex_destroy(&c1_st); }
static void c25_sf_marshallIn(void *chartInstanceVoid, const mxArray *c25_mxArrayInData, const char_T *c25_varName, void *c25_outData) { const mxArray *c25_a; const char_T *c25_identifier; emlrtMsgIdentifier c25_thisId; real_T c25_y[6]; int32_T c25_i10; SFc25_CusakisME4901arcs2InstanceStruct *chartInstance; chartInstance = (SFc25_CusakisME4901arcs2InstanceStruct *)chartInstanceVoid; c25_a = sf_mex_dup(c25_mxArrayInData); c25_identifier = c25_varName; c25_thisId.fIdentifier = c25_identifier; c25_thisId.fParent = NULL; c25_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c25_a), &c25_thisId, c25_y); sf_mex_destroy(&c25_a); for (c25_i10 = 0; c25_i10 < 6; c25_i10++) { (*(real_T (*)[6])c25_outData)[c25_i10] = c25_y[c25_i10]; } sf_mex_destroy(&c25_mxArrayInData); }
static uint8_T c11_f_emlrt_marshallIn(SFc11_Batman_CodeInstanceStruct *chartInstance, const mxArray *c11_b_is_active_c11_Batman_Code, const char_T *c11_identifier) { uint8_T c11_y; emlrtMsgIdentifier c11_thisId; c11_thisId.fIdentifier = c11_identifier; c11_thisId.fParent = NULL; c11_y = c11_g_emlrt_marshallIn(chartInstance, sf_mex_dup (c11_b_is_active_c11_Batman_Code), &c11_thisId); sf_mex_destroy(&c11_b_is_active_c11_Batman_Code); return c11_y; }
static uint8_T c7_d_emlrt_marshallIn(SFc7_ekffedepreInstanceStruct *chartInstance, const mxArray *c7_b_is_active_c7_ekffedepre, const char_T *c7_identifier) { uint8_T c7_y; emlrtMsgIdentifier c7_thisId; c7_thisId.fIdentifier = c7_identifier; c7_thisId.fParent = NULL; c7_y = c7_e_emlrt_marshallIn(chartInstance, sf_mex_dup (c7_b_is_active_c7_ekffedepre), &c7_thisId); sf_mex_destroy(&c7_b_is_active_c7_ekffedepre); return c7_y; }
static uint8_T c6_e_emlrt_marshallIn(SFc6_Demo_KinectInstanceStruct *chartInstance, const mxArray *c6_b_is_active_c6_Demo_Kinect, const char_T *c6_identifier) { uint8_T c6_y; emlrtMsgIdentifier c6_thisId; c6_thisId.fIdentifier = c6_identifier; c6_thisId.fParent = NULL; c6_y = c6_f_emlrt_marshallIn(chartInstance, sf_mex_dup (c6_b_is_active_c6_Demo_Kinect), &c6_thisId); sf_mex_destroy(&c6_b_is_active_c6_Demo_Kinect); return c6_y; }
static uint8_T c10_e_emlrt_marshallIn(SFc10_experiment_lib2InstanceStruct *chartInstance, const mxArray *c10_b_is_active_c10_experiment_lib2, const char_T *c10_identifier) { uint8_T c10_y; emlrtMsgIdentifier c10_thisId; c10_thisId.fIdentifier = c10_identifier; c10_thisId.fParent = NULL; c10_y = c10_f_emlrt_marshallIn(chartInstance, sf_mex_dup (c10_b_is_active_c10_experiment_lib2), &c10_thisId); sf_mex_destroy(&c10_b_is_active_c10_experiment_lib2); return c10_y; }
static void c1_c_emlrt_marshallIn(SFc1_newtons_cradleInstanceStruct *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId, real_T c1_y[3]) { real_T c1_dv1[3]; int32_T c1_i4; sf_mex_import(c1_parentId, sf_mex_dup(c1_u), c1_dv1, 1, 0, 0U, 1, 0U, 1, 3); for (c1_i4 = 0; c1_i4 < 3; c1_i4++) { c1_y[c1_i4] = c1_dv1[c1_i4]; } sf_mex_destroy(&c1_u); }
static void c6_b_sf_marshallIn(void *chartInstanceVoid, const mxArray *c6_mxArrayInData, const char_T *c6_varName, void *c6_outData) { const mxArray *c6_xab; const char_T *c6_identifier; emlrtMsgIdentifier c6_thisId; real_T c6_y[2]; int32_T c6_i14; SFc6_motor_controlInstanceStruct *chartInstance; chartInstance = (SFc6_motor_controlInstanceStruct *)chartInstanceVoid; c6_xab = sf_mex_dup(c6_mxArrayInData); c6_identifier = c6_varName; c6_thisId.fIdentifier = c6_identifier; c6_thisId.fParent = NULL; c6_c_emlrt_marshallIn(chartInstance, sf_mex_dup(c6_xab), &c6_thisId, c6_y); sf_mex_destroy(&c6_xab); for (c6_i14 = 0; c6_i14 < 2; c6_i14++) { (*(real_T (*)[2])c6_outData)[c6_i14] = c6_y[c6_i14]; } sf_mex_destroy(&c6_mxArrayInData); }
static void c6_d_emlrt_marshallIn(SFc6_motor_controlInstanceStruct *chartInstance, const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, real_T c6_y[4]) { real_T c6_dv1[4]; int32_T c6_i21; sf_mex_import(c6_parentId, sf_mex_dup(c6_u), c6_dv1, 1, 0, 0U, 1, 0U, 2, 2, 2); for (c6_i21 = 0; c6_i21 < 4; c6_i21++) { c6_y[c6_i21] = c6_dv1[c6_i21]; } sf_mex_destroy(&c6_u); }
static uint8_T c35_d_emlrt_marshallIn(SFc35_Expriment_PoseInstanceStruct *chartInstance, const mxArray *c35_b_tp_stateCreatePawn, const char_T *c35_identifier) { uint8_T c35_y; emlrtMsgIdentifier c35_thisId; c35_thisId.fIdentifier = c35_identifier; c35_thisId.fParent = NULL; c35_y = c35_e_emlrt_marshallIn(chartInstance, sf_mex_dup (c35_b_tp_stateCreatePawn), &c35_thisId); sf_mex_destroy(&c35_b_tp_stateCreatePawn); return c35_y; }
static void c10_sf_marshallIn(void *chartInstanceVoid, const mxArray *c10_mxArrayInData, const char_T *c10_varName, void *c10_outData) { const mxArray *c10_out; const char_T *c10_identifier; emlrtMsgIdentifier c10_thisId; real_T c10_y[4]; int32_T c10_i10; SFc10_experiment_lib2InstanceStruct *chartInstance; chartInstance = (SFc10_experiment_lib2InstanceStruct *)chartInstanceVoid; c10_out = sf_mex_dup(c10_mxArrayInData); c10_identifier = c10_varName; c10_thisId.fIdentifier = c10_identifier; c10_thisId.fParent = NULL; c10_b_emlrt_marshallIn(chartInstance, sf_mex_dup(c10_out), &c10_thisId, c10_y); sf_mex_destroy(&c10_out); for (c10_i10 = 0; c10_i10 < 4; c10_i10++) { (*(real_T (*)[4])c10_outData)[c10_i10] = c10_y[c10_i10]; } sf_mex_destroy(&c10_mxArrayInData); }
static void c35_e_sf_marshallIn(void *chartInstanceVoid, const mxArray *c35_mxArrayInData, const char_T *c35_varName, void *c35_outData) { const mxArray *c35_In2; const char_T *c35_identifier; emlrtMsgIdentifier c35_thisId; real_T c35_y[1000]; int32_T c35_i21; SFc35_Expriment_PoseInstanceStruct *chartInstance; chartInstance = (SFc35_Expriment_PoseInstanceStruct *)chartInstanceVoid; c35_In2 = sf_mex_dup(c35_mxArrayInData); c35_identifier = c35_varName; c35_thisId.fIdentifier = c35_identifier; c35_thisId.fParent = NULL; c35_f_emlrt_marshallIn(chartInstance, sf_mex_dup(c35_In2), &c35_thisId, c35_y); sf_mex_destroy(&c35_In2); for (c35_i21 = 0; c35_i21 < 1000; c35_i21++) { (*(real_T (*)[1000])c35_outData)[c35_i21] = c35_y[c35_i21]; } sf_mex_destroy(&c35_mxArrayInData); }
static void c3_emlrt_marshallIn(SFc3_car_modelInstanceStruct *chartInstance, const mxArray *c3_s, const char_T *c3_name, real_T c3_y [2]) { real_T c3_dv1[2]; int32_T c3_i17; sf_mex_import(c3_name, sf_mex_dup(c3_s), &c3_dv1, 1, 0, 0U, 1, 0U, 1, 2); for (c3_i17 = 0; c3_i17 < 2; c3_i17 = c3_i17 + 1) { c3_y[c3_i17] = c3_dv1[c3_i17]; } sf_mex_destroy(&c3_s); }
static void c1_f_emlrt_marshallIn(SFc1_QPSK_Transmit_v5_w_FIFOInstanceStruct *chartInstance, const mxArray *c1_u, const emlrtMsgIdentifier *c1_parentId, real_T c1_y[17]) { real_T c1_dv0[17]; int32_T c1_i15; sf_mex_import(c1_parentId, sf_mex_dup(c1_u), c1_dv0, 1, 0, 0U, 1, 0U, 1, 17); for (c1_i15 = 0; c1_i15 < 17; c1_i15++) { c1_y[c1_i15] = c1_dv0[c1_i15]; } sf_mex_destroy(&c1_u); }
static uint8_T c2_emlrt_marshallIn(SFc2_newtons_cradle_inelasticInstanceStruct *chartInstance, const mxArray *c2_b_is_active_c2_newtons_cradle_inelastic, const char_T *c2_identifier) { uint8_T c2_y; emlrtMsgIdentifier c2_thisId; c2_thisId.fIdentifier = c2_identifier; c2_thisId.fParent = NULL; c2_y = c2_b_emlrt_marshallIn(chartInstance, sf_mex_dup (c2_b_is_active_c2_newtons_cradle_inelastic), &c2_thisId); sf_mex_destroy(&c2_b_is_active_c2_newtons_cradle_inelastic); return c2_y; }
static uint8_T c1_h_emlrt_marshallIn(SFc1_QPSK_Transmit_v5_w_FIFOInstanceStruct * chartInstance, const mxArray *c1_b_is_active_c1_QPSK_Transmit_v5_w_FIFO, const char_T *c1_identifier) { uint8_T c1_y; emlrtMsgIdentifier c1_thisId; c1_thisId.fIdentifier = c1_identifier; c1_thisId.fParent = NULL; c1_y = c1_i_emlrt_marshallIn(chartInstance, sf_mex_dup (c1_b_is_active_c1_QPSK_Transmit_v5_w_FIFO), &c1_thisId); sf_mex_destroy(&c1_b_is_active_c1_QPSK_Transmit_v5_w_FIFO); return c1_y; }
static void c11_b_emlrt_marshallIn(SFc11_Batman_CodeInstanceStruct *chartInstance, const mxArray *c11_u, const emlrtMsgIdentifier *c11_parentId, uint16_T c11_y[12]) { uint16_T c11_uv1[12]; int32_T c11_i11; sf_mex_import(c11_parentId, sf_mex_dup(c11_u), c11_uv1, 1, 5, 0U, 1, 0U, 1, 12); for (c11_i11 = 0; c11_i11 < 12; c11_i11++) { c11_y[c11_i11] = c11_uv1[c11_i11]; } sf_mex_destroy(&c11_u); }
static void c4_b_sf_marshallIn(void *chartInstanceVoid, const mxArray *c4_mxArrayInData, const char_T *c4_varName, void *c4_outData) { const mxArray *c4_abc; const char_T *c4_identifier; emlrtMsgIdentifier c4_thisId; real_T c4_y[3]; int32_T c4_i12; SFc4_iC_3ph_MR2InstanceStruct *chartInstance; chartInstance = (SFc4_iC_3ph_MR2InstanceStruct *)chartInstanceVoid; c4_abc = sf_mex_dup(c4_mxArrayInData); c4_identifier = c4_varName; c4_thisId.fIdentifier = c4_identifier; c4_thisId.fParent = NULL; c4_c_emlrt_marshallIn(chartInstance, sf_mex_dup(c4_abc), &c4_thisId, c4_y); sf_mex_destroy(&c4_abc); for (c4_i12 = 0; c4_i12 < 3; c4_i12++) { (*(real_T (*)[3])c4_outData)[c4_i12] = c4_y[c4_i12]; } sf_mex_destroy(&c4_mxArrayInData); }
static void c25_b_emlrt_marshallIn(SFc25_CusakisME4901arcs2InstanceStruct *chartInstance, const mxArray *c25_u, const emlrtMsgIdentifier *c25_parentId, real_T c25_y[6]) { real_T c25_dv1[6]; int32_T c25_i9; sf_mex_import(c25_parentId, sf_mex_dup(c25_u), c25_dv1, 1, 0, 0U, 1, 0U, 1, 6); for (c25_i9 = 0; c25_i9 < 6; c25_i9++) { c25_y[c25_i9] = c25_dv1[c25_i9]; } sf_mex_destroy(&c25_u); }
static uint8_T c4_e_emlrt_marshallIn(SFc4_iC_3ph_MR2InstanceStruct *chartInstance, const mxArray *c4_b_is_active_c4_iC_3ph_MR2, const char_T *c4_identifier) { uint8_T c4_y; emlrtMsgIdentifier c4_thisId; c4_thisId.fIdentifier = c4_identifier; c4_thisId.fParent = NULL; c4_y = c4_f_emlrt_marshallIn(chartInstance, sf_mex_dup (c4_b_is_active_c4_iC_3ph_MR2), &c4_thisId); sf_mex_destroy(&c4_b_is_active_c4_iC_3ph_MR2); return c4_y; }
static uint8_T c25_e_emlrt_marshallIn(SFc25_CusakisME4901arcs2InstanceStruct *chartInstance, const mxArray *c25_b_is_active_c25_CusakisME4901arcs2, const char_T *c25_identifier) { uint8_T c25_y; emlrtMsgIdentifier c25_thisId; c25_thisId.fIdentifier = c25_identifier; c25_thisId.fParent = NULL; c25_y = c25_f_emlrt_marshallIn(chartInstance, sf_mex_dup (c25_b_is_active_c25_CusakisME4901arcs2), &c25_thisId); sf_mex_destroy(&c25_b_is_active_c25_CusakisME4901arcs2); return c25_y; }
static void c6_c_emlrt_marshallIn(SFc6_motor_controlInstanceStruct *chartInstance, const mxArray *c6_u, const emlrtMsgIdentifier *c6_parentId, real_T c6_y[2]) { real_T c6_dv0[2]; int32_T c6_i13; sf_mex_import(c6_parentId, sf_mex_dup(c6_u), c6_dv0, 1, 0, 0U, 1, 0U, 1, 2); for (c6_i13 = 0; c6_i13 < 2; c6_i13++) { c6_y[c6_i13] = c6_dv0[c6_i13]; } sf_mex_destroy(&c6_u); }