test
This commit is contained in:
@@ -206,7 +206,7 @@ namespace 头罩视野.Views
|
||||
var btn = sender as ToggleButton;
|
||||
btn.Content = "试样测试";
|
||||
btn.Background = System.Windows.Media.Brushes.LightBlue;
|
||||
//_modbusMaster.WriteSingleCoilAsync(1, 41, true);
|
||||
_modbusMaster.WriteSingleCoilAsync(1, 41, true);
|
||||
}
|
||||
|
||||
private void TbTest_Unchecked(object sender, RoutedEventArgs e)
|
||||
@@ -215,7 +215,7 @@ namespace 头罩视野.Views
|
||||
var btn = sender as ToggleButton;
|
||||
btn.Content = "空白测试";
|
||||
btn.Background = System.Windows.Media.Brushes.LightGray;
|
||||
//_modbusMaster.WriteSingleCoilAsync(1, 41, false);
|
||||
_modbusMaster.WriteSingleCoilAsync(1, 41, false);
|
||||
}
|
||||
private void Button_Click_home(object sender, RoutedEventArgs e)
|
||||
{
|
||||
|
||||
@@ -183,7 +183,7 @@ namespace 头罩视野.Views
|
||||
try
|
||||
{
|
||||
ushort[] registers = await Task.Run(async () =>
|
||||
await _modbusMaster?.ReadHoldingRegistersAsync(1, (ushort)address, (ushort)length)
|
||||
await _modbusMaster!.ReadHoldingRegistersAsync(1, (ushort)address, (ushort)length)
|
||||
);
|
||||
|
||||
if (registers != null && registers.Length >= 2)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -1,18 +0,0 @@
|
||||
is_global = true
|
||||
build_property.TargetFramework = net10.0-windows
|
||||
build_property.TargetFrameworkIdentifier = .NETCoreApp
|
||||
build_property.TargetFrameworkVersion = v10.0
|
||||
build_property.TargetPlatformMinVersion = 7.0
|
||||
build_property.UsingMicrosoftNETSdkWeb =
|
||||
build_property.ProjectTypeGuids =
|
||||
build_property.InvariantGlobalization =
|
||||
build_property.PlatformNeutralAssembly =
|
||||
build_property.EnforceExtendedAnalyzerRules =
|
||||
build_property._SupportedPlatformList = Linux,macOS,Windows
|
||||
build_property.RootNamespace = 头罩视野
|
||||
build_property.ProjectDir = D:\work\hoodFieldOfView\头罩视野slove\头罩视野\
|
||||
build_property.EnableComHosting =
|
||||
build_property.EnableGeneratedComInterfaceComImportInterop =
|
||||
build_property.CsWinRTUseWindowsUIXamlProjections = false
|
||||
build_property.EffectiveAnalysisLevelStyle = 10.0
|
||||
build_property.EnableCodeStyleSeverity =
|
||||
Reference in New Issue
Block a user