基于51单片机便携式心率测试仪的研究与设计(8)

2019-04-23 10:39

哈尔滨理工大学本科生毕业设计

哈尔滨理工大学本科生毕业设计

附录E stateflow的模型查看器

哈尔滨理工大学本科生毕业设计

附录F stateflow 的仿真结果及生成的源代码

/* Include files */ #include \#include \

/* Type Definitions */

/* Named Constants */

/* Variable Declarations */

/* Variable Definitions */ int32_T _sfEvent_;

uint32_T _xingMachineNumber_; real_T _sfTime_;

/* Function Declarations */

/* Function Definitions */

哈尔滨理工大学本科生毕业设计

void xing_initializer(void) {

_sfEvent_ = CALL_EVENT; }

void xing_terminator(void) { }

/* SFunction Glue Code */

unsigned int sf_xing_method_dispatcher(SimStruct *simstructPtr, unsigned int chartFileNumber, const char* specsCksum, int_T method, void *data) {

if (chartFileNumber==7) {

c7_xing_method_dispatcher(simstructPtr, method, data); return 1; }

return 0; }

unsigned int sf_xing_process_check_sum_call( int nlhs, mxArray * plhs[], int nrhs, const mxArray * prhs[] ) {

#ifdef MATLAB_MEX_FILE

char commandName[20]; if (nrhs<1 || !mxIsChar(prhs[0]) ) return 0;

/* Possible call to get the checksum */

mxGetString(prhs[0], commandName,sizeof(commandName)/sizeof(char));

哈尔滨理工大学本科生毕业设计

commandName[(sizeof(commandName)/sizeof(char)-1)] = '\\0'; if (strcmp(commandName,\ return 0;

plhs[0] = mxCreateDoubleMatrix( 1,4,mxREAL); if (nrhs>1 && mxIsChar(prhs[1])) {

mxGetString(prhs[1], commandName,sizeof(commandName)/sizeof(char)); commandName[(sizeof(commandName)/sizeof(char)-1)] = '\\0'; if (!strcmp(commandName,\

((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(2828399030U); ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(2887128318U); ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(2617034442U); ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(3406542588U); } else if (!strcmp(commandName,\ ((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(0U); ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(0U); ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(0U); ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(0U); } else if (!strcmp(commandName,\

((real_T *)mxGetPr((plhs[0])))[0] = (real_T)(117619422U); ((real_T *)mxGetPr((plhs[0])))[1] = (real_T)(1692202746U); ((real_T *)mxGetPr((plhs[0])))[2] = (real_T)(541368259U); ((real_T *)mxGetPr((plhs[0])))[3] = (real_T)(1263927372U); } else if (nrhs==3 && !strcmp(commandName,\ unsigned int chartFileNumber;

chartFileNumber = (unsigned int)mxGetScalar(prhs[2]); switch (chartFileNumber) { case 7: {

extern void sf_c7_xing_get_check_sum(mxArray *plhs[]); sf_c7_xing_get_check_sum(plhs); break; }


基于51单片机便携式心率测试仪的研究与设计(8).doc 将本文的Word文档下载到电脑 下载失败或者文档不完整,请联系客服人员解决!

下一篇:小学拼音教学方法研究2

相关阅读
本类排行
× 注册会员免费下载(下载后可以自由复制和排版)

马上注册会员

注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: