《MATLAB7.0_Simulink6.0建模仿真开发与高级工程应用》书中程序

源代码在线查看: vdpmult_capi.c

软件大小: 1210 K
上传用户: wuqiweipp
关键词: Simulink MATLAB 7.0 6.0
下载地址: 免注册下载 普通下载 VIP

相关代码

				#include "vdpmult.h"
				#include "rtw_capi.h"
				#include "vdpmult_private.h"
				
				static rtwCAPI_Signals rtBlockSignals[] = {
				
				  {
				    0, 0, NULL, NULL, 0, 0, 0, 0, 0
				  }
				};
				
				static rtwCAPI_States rtBlockStates[] = {
				
				  {
				    0, NULL, NULL, 0, 0, 0, 0
				  }
				};
				
				static void vdpmult_InitializeSystemRanArray(void *systemRanArray[]) {
				  static SubSystemRanBCTransition alwaysEnabled = SUBSYS_RAN_BC_ENABLE;
				
				  systemRanArray[0] = (void *)&alwaysEnabled;
				  systemRanArray[1] = (void *)&alwaysEnabled;
				}
				
				static rtwCAPI_DataTypeMap rtDataTypeMap[] = {
				
				  {
				    "", "", 0, 0, 0, 0, 0, 0
				  }
				};
				
				static rtwCAPI_ElementMap rtElementMap[] = {
				
				  {NULL, 0, 0, 0, 0},
				};
				
				static rtwCAPI_DimensionMap rtDimensionMap[] = {
				
				  {
				    rtwCAPI_SCALAR, 0, 0
				  }
				};
				
				static uint_T rtDimensionArray[] = {0};
				
				static const real_T rtcapiStoredFloats[] = {
				  0.0
				};
				
				static rtwCAPI_FixPtMap rtFixPtMap[] = {
				
				  {NULL, NULL, rtwCAPI_FIX_RESERVED, 0, 0 },
				};
				
				static rtwCAPI_SampleTimeMap rtSampleTimeMap[] = {
				
				  {
				    NULL, NULL, 0,
				    0, 0
				  }
				};
				
				static rtwCAPI_ModelMappingStaticInfo mmiStatic = {
				
				  {rtBlockSignals, 0},
				  {NULL, 0,
				    NULL, 0},
				  {rtBlockStates, 0},
				  {rtDataTypeMap, rtDimensionMap, rtFixPtMap,
				    rtElementMap, rtSampleTimeMap, rtDimensionArray},
				  "float"
				};
				
				void vdpmult_InitializeDataMapInfo(RT_MODEL_vdpmult *vdpmult_M) {
				
				  rtwCAPI_SetVersion(vdpmult_M->DataMapInfo.mmi, 1);
				
				  rtwCAPI_SetStaticMap(vdpmult_M->DataMapInfo.mmi, &mmiStatic);
				
				  rtwCAPI_SetPath(vdpmult_M->DataMapInfo.mmi, NULL);
				  rtwCAPI_SetFullPath(vdpmult_M->DataMapInfo.mmi, NULL);
				
				  rtwCAPI_SetChildMMIArray(vdpmult_M->DataMapInfo.mmi, NULL);
				  rtwCAPI_SetChildMMIArrayLen(vdpmult_M->DataMapInfo.mmi, 0);
				
				  vdpmult_InitializeSystemRanArray(vdpmult_M->DataMapInfo.systemRanArray);
				  rtwCAPI_SetSystemRanArray(vdpmult_M->DataMapInfo.mmi,
				   vdpmult_M->DataMapInfo.systemRanArray);
				  rtwCAPI_SetSystemRanArrayLen(vdpmult_M->DataMapInfo.mmi, 2);
				}
				
							

相关资源