DiagnosticTool.Devices.Vector 1.0.1.2

dotnet add package DiagnosticTool.Devices.Vector --version 1.0.1.2                
NuGet\Install-Package DiagnosticTool.Devices.Vector -Version 1.0.1.2                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="DiagnosticTool.Devices.Vector" Version="1.0.1.2" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add DiagnosticTool.Devices.Vector --version 1.0.1.2                
#r "nuget: DiagnosticTool.Devices.Vector, 1.0.1.2"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install DiagnosticTool.Devices.Vector as a Cake Addin
#addin nuget:?package=DiagnosticTool.Devices.Vector&version=1.0.1.2

// Install DiagnosticTool.Devices.Vector as a Cake Tool
#tool nuget:?package=DiagnosticTool.Devices.Vector&version=1.0.1.2                

诊断工具 Vector 设备类库

  • 以下是用于记录参数的 record struct,剔除非必要的成员,构造、传递的性能开销低:
    • XlHardwareRecord
    • XlHardwareChannelRecord
    • XlApplicationChannelRecord
  • 以下是用于辅助管理 Vector 驱动相关模型的 class,通常需要调用驱动读取配置,涉及到 I/O 操作,不宜在高频场景中使用:
    • XlDriver
    • XlApplication
    • XlHardware
    • XlHardwareChannel

Examples

获取已注册的通道

获取 Vector Hardware Config 中指定应用程序上注册的所有 CAN 总线通道。

var xlApp = new XlApplication("DiagnosticTool");
xlApp.RefreshRegisteredCanChannel();
var canChannels = xlApp.RegisteredCanChannels;

获取 Vector Hardware Config 中指定应用程序上注册的所有指定类型总线通道。

var xlApp = new XlApplication("DiagnosticTool");
var otherChannels = XlApplication.SearchRegisteredChannelByBusType("DiagnosticTool", XLDefine.XL_BusTypes.XL_BUS_TYPE_ETHERNET);
注册新的通道

构建一个 CAN 通道,并注册到应用程序上。

var xlApp = new XlApplication("DiagnosticTool");
var channel = new XlHardwareChannelRecord(XLDefine.XL_HardwareType.XL_HWTYPE_VN1630, 0, 0);
var status = xlApp.RegisterCanChannel(0, channel);

注册 XlApplication 实例上添加的所有 CAN 通道。

var xlApp = new XlApplication("DiagnosticTool");
xlApp.RegisterCanChannels();
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 is compatible.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible. 
.NET Framework net462 is compatible.  net463 was computed.  net47 is compatible.  net471 is compatible.  net472 is compatible.  net48 is compatible.  net481 is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • .NETFramework 4.6.2

    • No dependencies.
  • .NETFramework 4.7

    • No dependencies.
  • .NETFramework 4.7.1

    • No dependencies.
  • .NETFramework 4.7.2

    • No dependencies.
  • .NETFramework 4.8

    • No dependencies.
  • .NETFramework 4.8.1

    • No dependencies.
  • net5.0

    • No dependencies.
  • net6.0

    • No dependencies.
  • net7.0

    • No dependencies.
  • net8.0

    • No dependencies.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on DiagnosticTool.Devices.Vector:

Package Downloads
DiagnosticTool.Devices.Vector.Can

使用 Vector 公司设备进行 CAN 总线通讯辅助类库。

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1.2 101 12/18/2024

修复由于 .NET Framework 框架不支持 record 类型而导致的错误。