2022-10-12 17:01:37 +08:00
|
|
|
import win.ui;
|
|
|
|
/*DSG{{*/
|
2022-10-13 16:47:51 +08:00
|
|
|
var winform = win.form(text="诊断读取";right=679;bottom=319;border="thin";max=false;mode="popup")
|
2022-10-12 17:01:37 +08:00
|
|
|
winform.add(
|
2022-10-13 16:47:51 +08:00
|
|
|
btnDID_1701={cls="button";text="电机当前位置霍尔数";left=36;top=162;right=163;bottom=193;z=5};
|
|
|
|
btnDID_1702={cls="button";text="软止点位置霍尔数";left=36;top=203;right=163;bottom=234;z=6};
|
|
|
|
btnDID_1706={cls="button";text="软止点学习状态";left=178;top=40;right=305;bottom=71;z=7};
|
|
|
|
btnDID_1707={cls="button";text="座椅电机电流";left=178;top=80;right=305;bottom=111;z=8};
|
|
|
|
btnDID_1708={cls="button";text="模块输入信号状态";left=178;top=121;right=305;bottom=152;z=9};
|
|
|
|
btnDID_1709={cls="button";text="模块输出信号状态";left=178;top=162;right=305;bottom=193;z=11};
|
|
|
|
btnDID_170B={cls="button";text="系统供电电压";left=178;top=203;right=305;bottom=234;z=10};
|
|
|
|
btnDID_F187={cls="button";text="车辆备用零部件编号";left=36;top=40;right=163;bottom=71;z=2};
|
|
|
|
btnDID_F18A={cls="button";text="供应商公司名称代码";left=36;top=80;right=163;bottom=111;z=3};
|
|
|
|
btnDID_F197={cls="button";text="ECU 系统名称";left=36;top=121;right=163;bottom=152;z=4};
|
|
|
|
groupbox={cls="groupbox";text="DID";left=16;top=12;right=328;bottom=260;edge=1;z=1};
|
|
|
|
groupbox2={cls="groupbox";text="DTC";left=343;top=12;right=655;bottom=260;edge=1;z=12}
|
2022-10-12 17:01:37 +08:00
|
|
|
)
|
|
|
|
/*}}*/
|
|
|
|
|
2022-10-13 16:47:51 +08:00
|
|
|
winform.btnDID_F187.oncommand = function(id,event){
|
|
|
|
DiagReadDID(0xF187);
|
|
|
|
}
|
|
|
|
|
|
|
|
winform.btnDID_F18A.oncommand = function(id,event){
|
|
|
|
DiagReadDID(0xF18A);
|
|
|
|
}
|
|
|
|
|
|
|
|
winform.btnDID_F197.oncommand = function(id,event){
|
|
|
|
DiagReadDID(0xF197);
|
|
|
|
}
|
|
|
|
|
|
|
|
winform.btnDID_1701.oncommand = function(id,event){
|
|
|
|
DiagReadDID(0x1701);
|
|
|
|
}
|
|
|
|
|
|
|
|
winform.btnDID_1702.oncommand = function(id,event){
|
|
|
|
DiagReadDID(0x1702);
|
|
|
|
}
|
|
|
|
|
|
|
|
winform.btnDID_1706.oncommand = function(id,event){
|
|
|
|
DiagReadDID(0x1706);
|
|
|
|
}
|
|
|
|
|
|
|
|
winform.btnDID_1707.oncommand = function(id,event){
|
|
|
|
DiagReadDID(0x1707);
|
|
|
|
}
|
|
|
|
|
|
|
|
winform.btnDID_1708.oncommand = function(id,event){
|
|
|
|
DiagReadDID(0x1708);
|
|
|
|
}
|
|
|
|
|
|
|
|
winform.btnDID_1709.oncommand = function(id,event){
|
|
|
|
DiagReadDID(0x1709);
|
|
|
|
}
|
|
|
|
|
|
|
|
winform.btnDID_170B.oncommand = function(id,event){
|
|
|
|
DiagReadDID(0x170B);
|
|
|
|
}
|
|
|
|
|
|
|
|
winform.onClose = function(hwnd,message,wParam,lParam){
|
|
|
|
winform.show(false);
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
2022-10-12 17:01:37 +08:00
|
|
|
winform.show();
|
|
|
|
win.loopMessage();
|
2022-10-13 16:47:51 +08:00
|
|
|
return winform;
|