extern const mxArray* sf_internal_get_sim_state_c6_DemoGazeFollowWaveIdleRand (SimStruct* S) { ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); mxArray *plhs[1] = { NULL }; mxArray *prhs[4]; int mxError = 0; prhs[0] = mxCreateString("chart_simctx_raw2high"); prhs[1] = mxCreateDoubleScalar(ssGetSFuncBlockHandle(S)); prhs[2] = (mxArray*) get_sim_state_c6_DemoGazeFollowWaveIdleRand ((SFc6_DemoGazeFollowWaveIdleRandInstanceStruct*)chartInfo->chartInstance);/* raw sim ctx */ prhs[3] = (mxArray*) sf_get_sim_state_info_c6_DemoGazeFollowWaveIdleRand();/* state var info */ mxError = sf_mex_call_matlab(1, plhs, 4, prhs, "sfprivate"); mxDestroyArray(prhs[0]); mxDestroyArray(prhs[1]); mxDestroyArray(prhs[2]); mxDestroyArray(prhs[3]); if (mxError || plhs[0] == NULL) { sf_mex_error_message("Stateflow Internal Error: \nError calling 'chart_simctx_raw2high'.\n"); } return plhs[0]; }
extern void sf_internal_set_sim_state_c13_ARP_02_RPSs_Bdr_GK_BIS7(SimStruct* S, const mxArray *st) { ChartRunTimeInfo * crtInfo = (ChartRunTimeInfo *)(ssGetUserData(S)); ChartInfoStruct * chartInfo = (ChartInfoStruct *)(crtInfo->instanceInfo); mxArray *plhs[1] = { NULL }; mxArray *prhs[3]; int mxError = 0; prhs[0] = mxCreateString("chart_simctx_high2raw"); prhs[1] = mxDuplicateArray(st); /* high level simctx */ prhs[2] = (mxArray*) sf_get_sim_state_info_c13_ARP_02_RPSs_Bdr_GK_BIS7();/* state var info */ mxError = sf_mex_call_matlab(1, plhs, 3, prhs, "sfprivate"); mxDestroyArray(prhs[0]); mxDestroyArray(prhs[1]); mxDestroyArray(prhs[2]); if (mxError || plhs[0] == NULL) { sf_mex_error_message("Stateflow Internal Error: \nError calling 'chart_simctx_high2raw'.\n"); } set_sim_state_c13_ARP_02_RPSs_Bdr_GK_BIS7 ((SFc13_ARP_02_RPSs_Bdr_GK_BIS7InstanceStruct*)chartInfo->chartInstance, mxDuplicateArray(plhs[0])); mxDestroyArray(plhs[0]); }
extern void sf_internal_set_sim_state_c24_ArregloSeisPorSeis(SimStruct* S, const mxArray *st) { ChartInfoStruct *chartInfo = (ChartInfoStruct*) ssGetUserData(S); mxArray *plhs[1] = { NULL }; mxArray *prhs[4]; int mxError = 0; prhs[0] = mxCreateString("chart_simctx_high2raw"); prhs[1] = mxCreateDoubleScalar(ssGetSFuncBlockHandle(S)); prhs[2] = mxDuplicateArray(st); /* high level simctx */ prhs[3] = (mxArray*) sf_get_sim_state_info_c24_ArregloSeisPorSeis();/* state var info */ mxError = sf_mex_call_matlab(1, plhs, 4, prhs, "sfprivate"); mxDestroyArray(prhs[0]); mxDestroyArray(prhs[1]); mxDestroyArray(prhs[2]); mxDestroyArray(prhs[3]); if (mxError || plhs[0] == NULL) { sf_mex_error_message("Stateflow Internal Error: \nError calling 'chart_simctx_high2raw'.\n"); } set_sim_state_c24_ArregloSeisPorSeis((SFc24_ArregloSeisPorSeisInstanceStruct*) chartInfo->chartInstance, mxDuplicateArray(plhs[0])); mxDestroyArray(plhs[0]); }
extern const mxArray* sf_internal_get_sim_state_c2_MigrationOWBG_Proto4_1DLinear2DNonLinear (SimStruct* S) { ChartInfoStruct *chartInfo = (ChartInfoStruct*) ssGetUserData(S); mxArray *plhs[1] = { NULL }; mxArray *prhs[4]; int mxError = 0; prhs[0] = mxCreateString("chart_simctx_raw2high"); prhs[1] = mxCreateDoubleScalar(ssGetSFuncBlockHandle(S)); prhs[2] = (mxArray*) get_sim_state_c2_MigrationOWBG_Proto4_1DLinear2DNonLinear ((SFc2_MigrationOWBG_Proto4_1DLinear2DNonLinearInstanceStruct*) chartInfo->chartInstance); /* raw sim ctx */ prhs[3] = (mxArray*) sf_get_sim_state_info_c2_MigrationOWBG_Proto4_1DLinear2DNonLinear();/* state var info */ mxError = sf_mex_call_matlab(1, plhs, 4, prhs, "sfprivate"); mxDestroyArray(prhs[0]); mxDestroyArray(prhs[1]); mxDestroyArray(prhs[2]); mxDestroyArray(prhs[3]); if (mxError || plhs[0] == NULL) { sf_mex_error_message("Stateflow Internal Error: \nError calling 'chart_simctx_raw2high'.\n"); } return plhs[0]; }