当前位置: 首页 > news >正文

【GUI】用于电动助力车性能分析的GUI(Matlab代码实现)

👨‍🎓个人主页:研学社的博客
💥💥💞💞欢迎来到本博客❤️❤️💥💥


🏆博主优势:🌞🌞🌞博客内容尽量做到思维缜密,逻辑清晰,为了方便读者。


座右铭:行百里者,半于九十。

📋📋📋本文目录如下:🎁🎁🎁
目录
💥1 概述
📚2 运行结果
🎉3 参考文献
🌈4 Matlab代码及文章讲解

💥1 概述

当给定的电动自行车(=电动助力自行车)的自行车速度、踏板扭矩和牵引力的测量数据可用时,此图形用户界面将分析该电动助力车的性能。GUI 将与 LS-SVM 工具箱一起使用。

用所开发的第6节测试装置对脚踏车的表征分几个步骤进行:

1 . pedelec2的测量。LS - SVM建模

3 .表演情节的创设

4 .性能参数的计算5 .与其他脚型的比较

第一步相当耗时。每一种援助模式都需要采取很多措施。自行车骑行者力矩、脚踏车速度和牵引力在一个工况点的记录耗时约20秒。第二个电池的可用性被推荐为能够在没有重新加载中断的情况下进行测量。共同,测量步骤快速耗时数小时。

通过引入图形用户界面( GUI )来控制其他步骤的时间,包括步骤2到步骤5的所有工具。本章将描述用户界面最重要的功能,并将其编写为详细文章。

📚2 运行结果

部分代码:

% Begin initialization code - DO NOT EDIT

gui_Singleton = 1;

gui_State = struct('gui_Name', mfilename, ...

'gui_Singleton', gui_Singleton, ...

'gui_OpeningFcn', @Performance_Plots_OpeningFcn, ...

'gui_OutputFcn', @Performance_Plots_OutputFcn, ...

'gui_LayoutFcn', [], ...

'gui_Callback', []);

if nargin && ischar(varargin{1})

gui_State.gui_Callback = str2func(varargin{1});

end

if nargout

[varargout{1:nargout}] = gui_mainfcn(gui_State, varargin{:});

else

gui_mainfcn(gui_State, varargin{:});

end

% End initialization code - DO NOT EDIT

% --- Executes just before Performance_Plots is made visible.

function Performance_Plots_OpeningFcn(hObject, eventdata, handles, varargin)

% This function has no output args, see OutputFcn.

% hObject handle to figure

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% varargin unrecognized PropertyName/PropertyValue pairs from the

% command line (see VARARGIN)

% Choose default command line output for Performance_Plots

handles.output = hObject;

handles.folderput=0; %says if folder input is given

addpath(genpath(fullfile(matlabroot,'toolbox\Pedelecs')));

addpath(genpath(fullfile(matlabroot,'toolbox\LSSVM\LS-SVMlab1.5')));

handles.Plottype=1;

%Determine some constants for plotting

handles.vmax=25;

handles.Tmax=80;

handles.Pmax=400;

handles.deltav=0.5;

handles.deltaT=1;

%initialize the checkboxes

handles.ZA1=0;

handles.MA1=0;

handles.MA2=0;

handles.MA3=0;

handles.velocities=[5 10 15];

handles.Mped=30;

handles.Mcyc=70;

handles.PlotName=0;

handles.ThisPlot=plot(0,0);

%initializes the radiobutton performance parameter

handles.PP=1;

%initializes the total mass

handles.mtot=100;

%update the handles

guidata(hObject, handles);

% UIWAIT makes Performance_Plots wait for user response (see UIRESUME)

% uiwait(handles.figure1);

% --- Outputs from this function are returned to the command line.

function varargout = Performance_Plots_OutputFcn(hObject, eventdata, handles)

% varargout cell array for returning output args (see VARARGOUT);

% hObject handle to figure

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

% Get default command line output from handles structure

varargout{1} = handles.output;

% --- Executes on button press in ZA.

function ZA1_Callback(hObject, eventdata, handles)

% hObject handle to ZA (see GCBO)

% eventdata reserved - to be defined in a future version of MATLAB

% handles structure with handles and user data (see GUIDATA)

handles.ZA1=get(hObject,'Value');

guidata(hObject, handles);

% Hint: get(hObject,'Value') returns toggle state of ZA

% val=get(hObject,'Value')

% model=get(ReadModel.handles.Load1)

% if val==1

% axes(handles.Figuurveld)

% plotlssvm_GUI1(model,'Traction force without assistance','Cyclist Torque T_c [Nm]','Speed v [km/h]','Traction Force F_t [N]',handles.Z);

% end

🎉3 参考文献

部分理论来源于网络,如有侵权请联系删除。

[1]Jan Cappelle (2023). GUI for the performance analysis of pedelecs.

🌈4 Matlab代码及文章讲解

http://www.lryc.cn/news/19415.html

相关文章:

  • Android:反编译apk踩坑/apktool/dex2jar/JDGUI
  • React 跨域的配置
  • Elasticsearch7.8.0版本进阶——持久化变更
  • CF Edu 127 A-E vp补题
  • 剑指 Offer 05. 替换空格
  • 通过操作Cortex-A7核,串口输入相应的命令,控制LED灯进行工作
  • Python实现某du文库vip内容下载,保存成PDF
  • vue3.0 模板语法
  • 【GlobalMapper精品教程】054:标签(标注)功能案例详解
  • 超详细树状数组讲解(+例题:动态求连续区间和)
  • 【学习笔记】AGC055
  • 墨者——内部文件上传系统漏洞分析溯源 内部文件上传系统漏洞分析溯源
  • 5.2 Python if语句
  • ubuntu gerrit 配置
  • 运动蓝牙耳机什么牌子好,运动蓝牙耳机品牌推荐
  • (7)C#传智:方法及参数、重载(第7天)
  • Python 函数式编程
  • pandas读取EXCEL列名重复问题解决——pandas设置多行为列名(多层列名)
  • CMake常用语法
  • Java知识复习(一)基础知识
  • springboot+vue.js校园车辆用车预约管理系统
  • 【 K8s 源码之调度学习】Pod 间亲和性和反亲和性的源码分析
  • 计及绿证交易及碳排放的含智能楼宇微网优化调度(Matlab代码实现)
  • 场景扩展,体验升级 | DBMotion新增无公网数据库迁移、支持监控报警等多项功能
  • 【正点原子FPGA连载】第十五章eMMC读写测试实验 摘自【正点原子】DFZU2EG_4EV MPSoC之嵌入式Vitis开发指南
  • i2c子系统
  • 【K3s】第17篇 Helm版本和支持的Kubernetes版本对照表
  • 如何自己搭建一个ai画图系统? 从0开始云服务器部署novelai
  • SpringSecurity过滤请求导致的系统bug
  • css\js\vue知识点