资源简介

永磁同步电机矢量控制 有传感器 无传感器 多个simulink仿真模型

资源截图

代码片段和文件信息

/* Include files */

#include “blascompat32.h“
#include “smo_sfun.h“
#include “c1_smo.h“
#define CHARTINSTANCE_CHARTNUMBER      (chartInstance->chartNumber)
#define CHARTINSTANCE_INSTANCENUMBER   (chartInstance->instanceNumber)
#include “smo_sfun_debug_macros.h“

/* Type Definitions */

/* Named Constants */

/* Variable Declarations */

/* Variable Definitions */
static const char *c1_debug_family_names[4] = { “nargin“ “nargout“ “u“ “y“ };

/* Function Declarations */
static void initialize_c1_smo(SFc1_smoInstanceStruct *chartInstance);
static void initialize_params_c1_smo(SFc1_smoInstanceStruct *chartInstance);
static void enable_c1_smo(SFc1_smoInstanceStruct *chartInstance);
static void disable_c1_smo(SFc1_smoInstanceStruct *chartInstance);
static void c1_update_debugger_state_c1_smo(SFc1_smoInstanceStruct
  *chartInstance);
static const mxArray *get_sim_state_c1_smo(SFc1_smoInstanceStruct *chartInstance);
static void set_sim_state_c1_smo(SFc1_smoInstanceStruct *chartInstance const
  mxArray *c1_st);
static void finalize_c1_smo(SFc1_smoInstanceStruct *chartInstance);
static void sf_c1_smo(SFc1_smoInstanceStruct *chartInstance);
static void init_script_number_translation(uint32_T c1_machineNumber uint32_T
  c1_chartNumber);
static const mxArray *c1_sf_marshall(void *chartInstanceVoid void *c1_u);
static const mxArray *c1_b_sf_marshall(void *chartInstanceVoid void *c1_u);
static real_T c1_emlrt_marshallIn(SFc1_smoInstanceStruct *chartInstance const
  mxArray *c1_y const char_T *c1_name);
static uint8_T c1_b_emlrt_marshallIn(SFc1_smoInstanceStruct *chartInstance
  const mxArray *c1_b_is_active_c1_smo const char_T *c1_name);
static void init_dsm_address_info(SFc1_smoInstanceStruct *chartInstance);

/* Function Definitions */
static void initialize_c1_smo(SFc1_smoInstanceStruct *chartInstance)
{
  _sfTime_ = (real_T)ssGetT(chartInstance->S);
  chartInstance->c1_is_active_c1_smo = 0U;
}

static void initialize_params_c1_smo(SFc1_smoInstanceStruct *chartInstance)
{
}

static void enable_c1_smo(SFc1_smoInstanceStruct *chartInstance)
{
  _sfTime_ = (real_T)ssGetT(chartInstance->S);
}

static void disable_c1_smo(SFc1_smoInstanceStruct *chartInstance)
{
  _sfTime_ = (real_T)ssGetT(chartInstance->S);
}

static void c1_update_debugger_state_c1_smo(SFc1_smoInstanceStruct
  *chartInstance)
{
}

static const mxArray *get_sim_state_c1_smo(SFc1_smoInstanceStruct *chartInstance)
{
  const mxArray *c1_st = NULL;
  const mxArray *c1_y = NULL;
  real_T c1_hoistedGlobal;
  real_T c1_u;
  const mxArray *c1_b_y = NULL;
  uint8_T c1_b_hoistedGlobal;
  uint8_T c1_b_u;
  const mxArray *c1_c_y = NULL;
  real_T *c1_d_y;
  c1_d_y = (real_T *)ssGetOutputPortSignal(chartInstance->S 1);
  c1_st = NULL;
  c1_y = NULL;
  sf_mex_assign(&c1_y sf_mex_createcellarray(2));
  c1_hoistedGlobal = *c1_d_y;
  c1_u = c1_hoistedGlobal;
  c1_b_y = NULL;
  sf_mex_assign(&c1_b_y sf_mex_create(“y“

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2014-06-21 22:09  论文仿真\
     目录           0  2014-06-21 22:09  论文仿真\slprj\
     目录           0  2014-06-21 22:09  论文仿真\slprj\_sfprj\
     目录           0  2014-06-21 22:09  论文仿真\slprj\_sfprj\smo\
     目录           0  2014-06-21 22:09  论文仿真\slprj\_sfprj\smo\_self\
     目录           0  2014-06-21 22:09  论文仿真\slprj\_sfprj\smo\_self\sfun\
     目录           0  2014-06-21 22:09  论文仿真\slprj\_sfprj\smo\_self\sfun\html\
     目录           0  2013-12-12 10:57  论文仿真\slprj\_sfprj\smo\_self\sfun\html\chart1\
     目录           0  2013-12-12 10:57  论文仿真\slprj\_sfprj\smo\_self\sfun\html\chart2\
     目录           0  2013-12-12 10:57  论文仿真\slprj\_sfprj\smo\_self\sfun\html\chart3\
     目录           0  2014-06-21 22:09  论文仿真\slprj\_sfprj\smo\_self\sfun\info\
     文件        1450  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\info\binfo.mat
     文件        1618  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\info\chart1.mat
     文件        1948  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\info\chart2.mat
     文件        1951  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\info\chart3.mat
     目录           0  2014-06-21 22:09  论文仿真\slprj\_sfprj\smo\_self\sfun\src\
     文件       27119  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\c1_smo.c
     文件         982  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\c1_smo.h
     文件       20476  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\c1_smo.obj
     文件       27563  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\c2_smo.c
     文件         982  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\c2_smo.h
     文件       21596  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\c2_smo.obj
     文件       27563  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\c3_smo.c
     文件         982  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\c3_smo.h
     文件       21596  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\c3_smo.obj
     文件         384  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\lccstub.obj
     文件        8816  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\rtwtypes.h
     文件        1002  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\rtwtypeschksum.mat
     文件          70  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\smo_sfun.bat
     文件        7537  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\smo_sfun.c
     文件          45  2013-12-11 10:06  论文仿真\slprj\_sfprj\smo\_self\sfun\src\smo_sfun.exp
............此处省略17个文件信息

评论

共有 条评论