This commit is contained in:
@@ -71,7 +71,7 @@ namespace 头罩视野.Views
|
||||
|
||||
testTimerForLight = new DispatcherTimer();
|
||||
testTimerForLight.Interval = TimeSpan.FromMilliseconds(1000); // 500ms = 0.5秒
|
||||
testTimerForLight.Tick += testTimerForLight;
|
||||
testTimerForLight.Tick += testTimerForLightTick;
|
||||
|
||||
//// 判断连接
|
||||
if (!ModbusHelper.IsConnected)
|
||||
@@ -802,6 +802,7 @@ namespace 头罩视野.Views
|
||||
_timer.Start();
|
||||
ma = new Function(_modbusMaster);
|
||||
c = new DataChange();
|
||||
testTimerForLight.Start();
|
||||
//zmsyarea.Text = "4.00"; // 左目
|
||||
//smsyarea.Text = "5.00"; // 双目
|
||||
//kbsyarea.Text = "6.00"; // 空白
|
||||
|
||||
Reference in New Issue
Block a user