/* Include files */
#include <stddef.h>
#include "blas.h"
#include "mppt_sfun.h"
#include "c2_mppt.h"
#define CHARTINSTANCE_CHARTNUMBER (chartInstance->chartNumber)
#define CHARTINSTANCE_INSTANCENUMBER (chartInstance->instanceNumber)
#include "mppt_sfun_debug_macros.h"
#define _SF_MEX_LISTEN_FOR_CTRL_C(S) sf_mex_listen_for_ctrl_c(sfGlobalDebugInstanceStruct,S);
/* Type Definitions */
/* Named Constants */
#define CALL_EVENT (-1)
/* Variable Declarations */
/* Variable Definitions */
static real_T _sfTime_;
static const char * c2_debug_family_names[15] = { "c", "DVpv", "DIpv", "a",
"DIpv4", "Vref", "e0", "nargin", "nargout", "Vpv2", "Ipv2", "y", "m", "Vpv1",
"Ipv1" };
/* Function Declarations */
static void initialize_c2_mppt(SFc2_mpptInstanceStruct *chartInstance);
static void initialize_params_c2_mppt(SFc2_mpptInstanceStruct *chartInstance);
static void enable_c2_mppt(SFc2_mpptInstanceStruct *chartInstance);
static void disable_c2_mppt(SFc2_mpptInstanceStruct *chartInstance);
static void c2_update_debugger_state_c2_mppt(SFc2_mpptInstanceStruct
*chartInstance);
static const mxArray *get_sim_state_c2_mppt(SFc2_mpptInstanceStruct
*chartInstance);
static void set_sim_state_c2_mppt(SFc2_mpptInstanceStruct *chartInstance, const
mxArray *c2_st);
static void finalize_c2_mppt(SFc2_mpptInstanceStruct *chartInstance);
static void sf_gateway_c2_mppt(SFc2_mpptInstanceStruct *chartInstance);
static void c2_chartstep_c2_mppt(SFc2_mpptInstanceStruct *chartInstance);
static void initSimStructsc2_mppt(SFc2_mpptInstanceStruct *chartInstance);
static void init_script_number_translation(uint32_T c2_machineNumber, uint32_T
c2_chartNumber, uint32_T c2_instanceNumber);
static const mxArray *c2_sf_marshallOut(void *chartInstanceVoid, void *c2_inData);
static real_T c2_emlrt_marshallIn(SFc2_mpptInstanceStruct *chartInstance, const
mxArray *c2_b_Ipv1, const char_T *c2_identifier);
static real_T c2_b_emlrt_marshallIn(SFc2_mpptInstanceStruct *chartInstance,
const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId);
static void c2_sf_marshallIn(void *chartInstanceVoid, const mxArray
*c2_mxArrayInData, const char_T *c2_varName, void *c2_outData);
static const mxArray *c2_b_sf_marshallOut(void *chartInstanceVoid, void
*c2_inData);
static real_T c2_c_emlrt_marshallIn(SFc2_mpptInstanceStruct *chartInstance,
const mxArray *c2_b_Vpv1, const char_T *c2_identifier);
static real_T c2_d_emlrt_marshallIn(SFc2_mpptInstanceStruct *chartInstance,
const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId);
static void c2_b_sf_marshallIn(void *chartInstanceVoid, const mxArray
*c2_mxArrayInData, const char_T *c2_varName, void *c2_outData);
static const mxArray *c2_c_sf_marshallOut(void *chartInstanceVoid, void
*c2_inData);
static real_T c2_e_emlrt_marshallIn(SFc2_mpptInstanceStruct *chartInstance,
const mxArray *c2_b_m, const char_T *c2_identifier);
static real_T c2_f_emlrt_marshallIn(SFc2_mpptInstanceStruct *chartInstance,
const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId);
static void c2_c_sf_marshallIn(void *chartInstanceVoid, const mxArray
*c2_mxArrayInData, const char_T *c2_varName, void *c2_outData);
static const mxArray *c2_d_sf_marshallOut(void *chartInstanceVoid, void
*c2_inData);
static real_T c2_g_emlrt_marshallIn(SFc2_mpptInstanceStruct *chartInstance,
const mxArray *c2_y, const char_T *c2_identifier);
static real_T c2_h_emlrt_marshallIn(SFc2_mpptInstanceStruct *chartInstance,
const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId);
static void c2_d_sf_marshallIn(void *chartInstanceVoid, const mxArray
*c2_mxArrayInData, const char_T *c2_varName, void *c2_outData);
static void c2_info_helper(const mxArray **c2_info);
static const mxArray *c2_emlrt_marshallOut(const char * c2_u);
static const mxArray *c2_b_emlrt_marshallOut(const uint32_T c2_u);
static const mxArray *c2_e_sf_marshallOut(void *chartInstanceVoid, void
*c2_inData);
static int32_T c2_i_emlrt_marshallIn(SFc2_mpptInstanceStruct *chartInstance,
const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId);
static void c2_e_sf_marshallIn(void *chartInstanceVoid, const mxArray
*c2_mxArrayInData, const char_T *c2_varName, void *c2_outData);
static uint8_T c2_j_emlrt_marshallIn(SFc2_mpptInstanceStruct *chartInstance,
const mxArray *c2_b_is_active_c2_mppt, const char_T *c2_identifier);
static uint8_T c2_k_emlrt_marshallIn(SFc2_mpptInstanceStruct *chartInstance,
const mxArray *c2_u, const emlrtMsgIdentifier *c2_parentId);
static void init_dsm_address_info(SFc2_mpptInstanceStruct *chartInstance);
/* Function Definitions */
static void initialize_c2_mppt(SFc2_mpptInstanceStruct *chartInstance)
{
chartInstance->c2_sfEvent = CALL_EVENT;
_sfTime_ = sf_get_time(chartInstance->S);
chartInstance->c2_m_not_empty = false;
chartInstance->c2_Vpv1_not_empty = false;
chartInstance->c2_Ipv1_not_empty = false;
chartInstance->c2_is_active_c2_mppt = 0U;
}
static void initialize_params_c2_mppt(SFc2_mpptInstanceStruct *chartInstance)
{
(void)chartInstance;
}
static void enable_c2_mppt(SFc2_mpptInstanceStruct *chartInstance)
{
_sfTime_ = sf_get_time(chartInstance->S);
}
static void disable_c2_mppt(SFc2_mpptInstanceStruct *chartInstance)
{
_sfTime_ = sf_get_time(chartInstance->S);
}
static void c2_update_debugger_state_c2_mppt(SFc2_mpptInstanceStruct
*chartInstance)
{
(void)chartInstance;
}
static const mxArray *get_sim_state_c2_mppt(SFc2_mpptInstanceStruct
*chartInstance)
{
const mxArray *c2_st;
const mxArray *c2_y = NULL;
real_T c2_hoistedGlobal;
real_T c2_u;
const mxArray *c2_b_y = NULL;
real_T c2_b_hoistedGlobal;
real_T c2_b_u;
const mxArray *c2_c_y = NULL;
real_T c2_c_hoistedGlobal;
real_T c2_c_u;
const mxArray *c2_d_y = NULL;
real_T c2_d_hoistedGlobal;
real_T c2_d_u;
const mxArray *c2_e_y = NULL;
uint8_T c2_e_hoistedGlobal;
uint8_T c2_e_u;
const mxArray *c2_f_y = NULL;
real_T *c2_g_y;
c2_g_y = (real_T *)ssGetOutputPortSignal(chartInstance->S, 1);
c2_st = NULL;
c2_st = NULL;
c2_y = NULL;
sf_mex_assign(&c2_y, sf_mex_createcellmatrix(5, 1), false);
c2_hoistedGlobal = *c2_g_y;
c2_u = c2_hoistedGlobal;
c2_b_y = NULL;
sf_mex_assign(&c2_b_y, sf_mex_create("y", &c2_u, 0, 0U, 0U, 0U, 0), false);
sf_mex_setcell(c2_y, 0, c2_b_y);
c2_b_hoistedGlobal = chartInstance->c2_Ipv1;
c2_b_u = c2_b_hoistedGlobal;
c2_c_y = NULL;
if (!chartInstance->c2_Ipv1_not_empty) {
sf_mex_assign(&c2_c_y, sf_mex_create("y", NULL, 0, 0U, 1U, 0U, 2, 0, 0),
false);
} else {
sf_mex_assign(&c2_c_y, sf_mex_create("y", &c2_b_u, 0, 0U, 0U, 0U, 0), false);
}
sf_mex_setcell(c2_y, 1, c2_c_y);
c2_c_hoistedGlobal = chartInstance->c2_Vpv1;
c2_c_u = c2_c_hoistedGlobal;
c2_d_y = NULL;
if (!chartInstance->c2_Vpv1_not_empty) {
sf_mex_assign(&c2_d_y, sf_mex_create("y", NULL, 0, 0U, 1U, 0U, 2, 0, 0),
false);
} else {
sf_mex_assign(&c2_d_y, sf_mex_create("y", &c2_c_u, 0, 0U, 0U, 0U, 0), false);
}
sf_mex_setcell(c2_y, 2, c2_d_y);
c2_d_hoistedGlobal = chartInstance->c2_m;
c2_d_u = c2_d_hoistedGlobal;
c2_e_y = NULL;
if (!chartInstance->c2_m_not_empty) {
sf_mex_assign(&c2_e_y, sf_mex_create("y", NULL, 0, 0U, 1U, 0U, 2, 0, 0),
false);
} else {
sf_mex_assign(&c2_e_y, sf_mex_create("y", &c2_d_u, 0, 0U, 0U, 0U, 0), false);
}
sf_mex_setcell(c2_y, 3, c2_e_y);
c2_e_hoistedGlobal = chartInstance->c2_is_active_c2_mppt;
c2_e_u = c2_e_hoistedGlobal;
c2_f_y = NULL;
sf_mex_assign(&c2_f_y, sf_mex_create("y", &c2_e_u, 3, 0U, 0U, 0U, 0), false);
sf_mex_setcell(c2_y, 4, c2_f_y);
sf_mex_assign(&c2_st, c2_y, false);
return c2_st;
}
static void set_sim_state_c2_mppt(SFc2_mpptInstanceStruct *chartInstance, const
mxArr
没有合适的资源?快使用搜索试试~ 我知道了~
【数学建模】 GUI光伏发电系统仿真【含Matlab源码 2554期】.zip
共93个文件
mat:32个
jpg:13个
slx:6个
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 45 浏览量
2024-06-20
16:03:24
上传
评论
收藏 3.1MB ZIP 举报
温馨提示
Matlab领域上传的全部代码均可运行,亲测可用,尽我所能,为你服务; 1、代码压缩包内容 主函数:main.m; 调用函数:其他m文件;无需运行 运行结果效果图; 2、代码运行版本 Matlab 2019b;若运行有误,根据提示修改;若不会,可私信博主; 3、运行操作步骤 步骤一:将所有文件放到Matlab的当前文件夹中; 步骤二:双击打开除main.m的其他m文件; 步骤三:点击运行,等程序运行完得到结果; 4、仿真咨询 如需其他服务,可私信博主或扫描博主博客文章底部QQ名片; 4.1 CSDN博客或资源的完整代码提供 4.2 期刊或参考文献复现 4.3 Matlab程序定制 4.4 科研合作
资源推荐
资源详情
资源评论
收起资源包目录
【数学建模】 GUI光伏发电系统仿真【含Matlab源码 2554期】.zip (93个子文件)
【数学建模】基于matlab GUI光伏发电系统仿真【含Matlab源码 2554期】
02.jpg 117KB
mppt_sfun.mexw64 163KB
solar.slxc 5KB
运行结果1.jpg 180KB
gui3_3.fig 7KB
运行结果6.jpg 157KB
运行结果5.jpg 139KB
06.jpg 1.05MB
gui3_1.m 24KB
fangzhen.slx 26KB
mppt1_sfun.mexw64 163KB
mppt1.slx 31KB
01.jpg 4KB
solar_cell.slxc 5KB
Untitled.m 1KB
gui1.m 4KB
mppt1.slxc 5KB
slprj
_jitprj
jitEngineAccessInfo.mat 841B
sRJIWIXNs1QfCcnBqkUOp6B.mat 1KB
sRqTxDokEpZJiHjmn9gPjdD.l 11KB
sRqTxDokEpZJiHjmn9gPjdD.mat 1009B
sRJIWIXNs1QfCcnBqkUOp6B.l 15KB
sMCfEEtfWmaWGnQ0eYyv1AG.l 14KB
sfW70Rlfhhg8o3LzzyJiU7B.l 20KB
sMCfEEtfWmaWGnQ0eYyv1AG.mat 1007B
sfW70Rlfhhg8o3LzzyJiU7B.mat 1007B
_sfprj
precompile
autoInferAccessInfo.mat 959B
8oymvk27WPT166T6LUVFTG.mat 676B
jYLRr2du0hwwyCH9B2PFLF.mat 691B
wMuRLcStN01By1XRN539WB.mat 727B
alIczKbUzxYZkQk5QOfTgE.mat 725B
YDgTNECDHaz2KqVxi2bOvH.mat 691B
KKHOMz8OpGXQjyNl4paGxF.mat 937B
Lnuwl8Fd0XB2nrqMOilMlH.mat 976B
mppt
_self
sfun
src
mppt_sfun.bat 68B
c2_mppt.c 60KB
mppt_sfun.lmko 743B
mppt_sfun.obj 9KB
sfun.map 209KB
lccstub.obj 706B
mppt_sfun_registry.obj 60KB
mppt_sfun.lib 284B
mppt_sfun.exp 44B
mppt_sfun_debug_macros.h 25KB
mppt_sfun.def 44B
mppt_sfun_registry.c 8KB
mppt_sfun.c 9KB
c2_mppt.h 1KB
multiword_types.h 4KB
mppt_sfun.h 1KB
mppt_sfun.lmk 2KB
c2_mppt.obj 62KB
rtwtypeschksum.mat 1KB
rtwtypes.h 1KB
html
chart2_9Imqb6785ordhG59fJIBbF
info
binfo.mat 1KB
chart2_9Imqb6785ordhG59fJIBbF.mat 7KB
amsi_serial.mat 227B
solar
_self
sfun
info
binfo.mat 824B
amsi_serial.mat 228B
EMLReport
sMCfEEtfWmaWGnQ0eYyv1AG
sRJIWIXNs1QfCcnBqkUOp6B.mat 4KB
sRqTxDokEpZJiHjmn9gPjdD.mat 7KB
sRqTxDokEpZJiHjmn9gPjdD
sRJIWIXNs1QfCcnBqkUOp6B
sfW70Rlfhhg8o3LzzyJiU7B
emlReportAccessInfo.mat 841B
sMCfEEtfWmaWGnQ0eYyv1AG.mat 28KB
sfW70Rlfhhg8o3LzzyJiU7B.mat 40KB
mppt1
_self
sfun
src
html
info
binfo.mat 747B
amsi_serial.mat 228B
sim
varcache
solar
checksumOfCache.mat 392B
varInfo.mat 3KB
tmwinternal
simulink_cache.xml 312B
solar_cell
checksumOfCache.mat 392B
varInfo.mat 1KB
tmwinternal
simulink_cache.xml 312B
mppt1
checksumOfCache.mat 392B
varInfo.mat 1008B
tmwinternal
simulink_cache.xml 312B
solar.slx 22KB
gui3_2.fig 7KB
solar_cell.slx 26KB
gui1.fig 3KB
运行结果2.jpg 197KB
gui3_3.m 7KB
gui3_1.fig 16KB
04.jpg 436KB
mppt.slx 31KB
运行结果4.jpg 129KB
运行结果7.jpg 147KB
gui3_2.m 10KB
gui2.m 4KB
gui2.fig 3KB
solar_cell1.slx 25KB
03.jpg 93KB
运行结果3.jpg 131KB
00.jpg 29KB
共 93 条
- 1
资源评论
Matlab领域
- 粉丝: 3w+
- 资源: 3301
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 【毕业设计+开题答辩】-javaEE土地档案管理系统-【源代码+截图+数据库+论文+视频讲解】.zip
- 【毕业设计+开题答辩】-Java聊天室的设计与实现-【源代码+截图+数据库+论文+视频讲解】.zip
- 【毕业设计+开题答辩】-Java扫雷游戏的设计与实现-【源代码+截图+数据库+论文+视频讲解】.zip
- Redis RedisJSON 的 Java 客户端(包装器).zip
- Unity语音合成工具
- 【毕业设计+开题答辩】-jsp码头船只出行及配套货柜码放管理系统的设计与实现-【源代码+截图+数据库+论文+视频讲解】.zip
- 【毕业设计+开题答辩】-JSP企业电子投票系统-【源代码+截图+数据库+论文+视频讲解】.zip
- 【毕业设计+开题答辩】-jsp城市公交查询系统-【源代码+截图+数据库+论文+视频讲解】.zip
- 【毕业设计+开题答辩】-jsp网上招标系统-【源代码+截图+数据库+论文+视频讲解】.zip
- 【毕业设计+开题答辩】-jsp企业快信系统-【源代码+截图+数据库+论文+视频讲解】.zip
- 石油泄漏检测29-YOLO(v5至v9)、COCO、CreateML、Darknet、Paligemma、TFRecord、VOC数据集合集.rar
- Redis Sentinel 对 Redigo 库的支持.zip
- 微信小程序开发的在线点餐平台(包括微信小程序、Web商户管理系统和Java服务器)+源码+文档说明(高分作品)
- 主持人音效软件易语言源码
- Redis 地理空间索引的辅助库.zip
- Unity语音识别工具
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功