2 Star 16 Fork 1

snowland.ltd/snowland-FCE

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
getReason.m 1.15 KB
一键复制 编辑 原始数据 按行查看 历史
A.Star 提交于 2018-03-22 09:18 . 增加故障原因
function reason = getReason(codes)
if codes(1) == 0
if codes(2) == 0
if codes(3) == 0
reason = '正常';
elseif codes(3) == 1
reason = '低温过热(低于150℃)';
elseif codes(3) == 2
reason = '高温过热(高于700℃)';
end
elseif codes(2) == 1
if codes(3) == 0
reason = '局部放电';
elseif codes(3) == 1
reason = '正常';
elseif codes(3) == 2
reason = '高温过热(高于700℃)';
end
elseif codes(2) == 2
if codes(3) == 0
reason = '低温过热(150~300℃)';
elseif codes(3) == 1
reason = '中温过热(300~700℃)';
elseif codes(3) == 2
reason = '高温过热(高于700℃)';
end
end
elseif codes(1) == 1
if codes(2) == 0
reason = '低能放电';
elseif codes(2) == 1
reason = '低能放电';
elseif codes(2) == 2
reason = '低能放电兼过热';
end
elseif codes(1) == 2
if codes(2) == 0
reason = '电弧放电';
elseif codes(2) == 1
reason = '电弧放电';
elseif codes(2) == 2
reason = '电弧放电兼过热';
end
end
end
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Matlab
1
https://gitee.com/snowlandltd/snowland-FCE.git
git@gitee.com:snowlandltd/snowland-FCE.git
snowlandltd
snowland-FCE
snowland-FCE
master

搜索帮助