static void mdlStart(SimStruct *S) { rtMdlrefDWork_mr_vdmultRM *dw = (rtMdlrefDWork_mr_vdmultRM *) ssGetDWork(S, 0); void *sysRanPtr = NULL; int sysTid = 0; ssGetContextSysRanBCPtr(S, &sysRanPtr); ssGetContextSysTid(S, &sysTid); { static const char* toFileNames[] = { "" }; static const char* fromFileNames[] = { "" }; if (!ssSetModelRefFromFiles(S, 0,fromFileNames)) return; if (!ssSetModelRefToFiles(S, 0,toFileNames)) return; } mr_vdmultRM_initialize(S, ssGetSampleTimeTaskID(S, 0), &(dw->rtm), sysRanPtr, sysTid, NULL, NULL, 0, -1); ssSetModelMappingInfoPtr(S, &(dw->rtm.DataMapInfo.mmi)); if (S->mdlInfo->genericFcn != NULL) { _GenericFcn fcn = S->mdlInfo->genericFcn; boolean_T hasDiscTs = 0; real_T startTime = 0.0; real_T fixedStep = 0.4; if (!(fcn)(S, GEN_FCN_CHK_MODELREF_START_TIME, -1, &startTime)) return; if (!(fcn)(S, GEN_FCN_CHK_MODELREF_FIXED_STEP, (int_T)hasDiscTs, &fixedStep)) return; } }
static void mdlStart ( SimStruct * S ) { void * sysRanPtr = ( NULL ) ; int sysTid = 0 ; ssGetContextSysRanBCPtr ( S , & sysRanPtr ) ; ssGetContextSysTid ( S , & sysTid ) ; if ( sysTid == CONSTANT_TID ) { sysTid = 0 ; } ks1vmf3v3l ( S , ssGetSampleTimeTaskID ( S , 0 ) , sysRanPtr , sysTid , ( NULL ) , ( NULL ) , 0 , - 1 ) ; ssSetModelMappingInfoPtr ( S , & ( kds0y0wo0q . rtm . DataMapInfo . mmi ) ) ; if ( S -> mdlInfo -> genericFcn != ( NULL ) ) { _GenericFcn fcn = S -> mdlInfo -> genericFcn ; } }
static void init_test_point_mapping_info(SimStruct *S) { rtwCAPI_ModelMappingInfo *testPointMappingInfo; void **testPointAddrMap; init_test_point_addr_map(); testPointMappingInfo = get_test_point_mapping_info(); testPointAddrMap = get_test_point_address_map(); rtwCAPI_SetStaticMap(*testPointMappingInfo, &testPointMappingStaticInfo); rtwCAPI_SetLoggingStaticMap(*testPointMappingInfo, NULL); rtwCAPI_SetInstanceLoggingInfo(*testPointMappingInfo, NULL); rtwCAPI_SetPath(*testPointMappingInfo, ""); rtwCAPI_SetFullPath(*testPointMappingInfo, NULL); rtwCAPI_SetDataAddressMap(*testPointMappingInfo, testPointAddrMap); rtwCAPI_SetChildMMIArray(*testPointMappingInfo, NULL); rtwCAPI_SetChildMMIArrayLen(*testPointMappingInfo, 0); ssSetModelMappingInfoPtr(S, testPointMappingInfo); }