cswpc 0.1.5

There is a newer version of this package available.
See the version list below for details.
dotnet add package cswpc --version 0.1.5                
NuGet\Install-Package cswpc -Version 0.1.5                
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="cswpc" Version="0.1.5" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add cswpc --version 0.1.5                
#r "nuget: cswpc, 0.1.5"                
#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 cswpc as a Cake Addin
#addin nuget:?package=cswpc&version=0.1.5

// Install cswpc as a Cake Tool
#tool nuget:?package=cswpc&version=0.1.5                

Overview

WPC CSharp driver, also known as cswpc, supports .NET 6.0 with compatibility and completeness.

It contains APIs for interacting with basically WPC DAQ cards or any other WPC USB, WiFi and Ethernet based devices.

Some API functions in the package may not compatible with earlier versions of WPC DAQ firmware. To update device firmware to the latest version, please use WPC Device Manager and LabVIEW Run-time engine. You can download WPC Device Manager by visiting WPC Systems Ltd. official website.

nuget Downloads NET Documentation License

[!Note] Make sure the latest version of firmware is up to date with your products.

Link
WPC official site http://www.wpc.com.tw/
GitHub https://github.com/WPC-Systems-Ltd/WPC_CSharp_driver_release
User guide https://wpc-systems-ltd.github.io/WPC_CSharp_driver_release/
Example code https://github.com/WPC-Systems-Ltd/WPC_CSharp_driver_release/tree/main/examples

Install toolkit

This can be done either manually or through the NuGet package

PM> NuGet\Install-Package cswpc

or with dotnet cli:

dotnet add package cswpc

Quick Start

Easy, fast, and just works!

using WPC.Product;

// Get C# driver name
Console.WriteLine($"{Constant.PKG_NAME}");

// Get C# driver full name and version
Console.WriteLine($"{Constant.PKG_FULL_NAME} - Version {Constant.VERSION}");

// Get C# handle list  
foreach (var item in Constant.HANDLE_LIST) 
{
  Console.WriteLine($"{item}");  
} 

Products

Ethernet based motion card

  • EMotion

Ethernet based DAQ card

  • Ethan-A
  • Ethan-D
  • Ethan-L
  • Ethan-O

USB interface DAQ card

  • USB-DAQ-F1-D (Digital)
  • USB-DAQ-F1-DSNK (24V Digital)
  • USB-DAQ-F1-AD (Digital + AI)
  • USB-DAQ-F1-TD (Digital + Thermocouple)
  • USB-DAQ-F1-RD (Digital + RTD)
  • USB-DAQ-F1-CD (Digital + CAN)
  • USB-DAQ-F1-AOD (Digital + AI + AO)

Wifi based DAQ card

  • Wifi-DAQ-E3-A

I/O Function Table

Model AI AO DI DO CAN UART SPI I2C RTD TC Motion
EMotion - - - - - - - - - - 0
Ethan-A 0 - - - - - - - - - -
Ethan-D - - 1 0 - - - - - - -
Ethan-L - - 1 0 - - - - - - -
Ethan-O - 0 - - - - - - - - -
USB-DAQ-F1-D - - 0, 1, 2, 3 0, 1, 2, 3 - 1, 2 1, 2 1, 2 - - -
USB-DAQ-F1-DSNK - - 0, 1 2, 3 - - - - - - -
USB-DAQ-F1-AD 0 - 0, 1, 2, 3 0, 1, 2, 3 - 1, 2 2 1, 2 - - -
USB-DAQ-F1-TD - - 0, 1, 2, 3 0, 1, 2, 3 - 1, 2 2 1, 2 - 1 -
USB-DAQ-F1-RD - - 0, 1, 2, 3 0, 1, 2, 3 - 1, 2 2 1, 2 1 - -
USB-DAQ-F1-CD - - 0, 1, 2, 3 0, 1, 2, 3 1 1, 2 2 1, 2 - - -
USB-DAQ-F1-AOD 0 0 0, 1, 2, 3 0, 1, 2, 3 - 1, 2 - 1, 2 - - -
Wifi-DAQ-E3-A 1 - - - - - - - - - -

Remark: TC stands for Thermocouple

Take USB-DAQ-F1-AOD for example:

  • Port 0 is available for AI
  • Port 2 is available for DI
  • Ports 0 & 1 are available for DO
  • Port 2 is available for UART

References

License

WPC CSharp driver release is licensed under an MIT-style license see LICENSE. Other incorporated projects may be licensed under different licenses. All licenses allow for non-commercial and commercial use.

Product Compatible and additional computed target framework versions.
.NET 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 was computed.  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 was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
0.2.23 126 5/20/2024
0.2.18 123 4/1/2024
0.2.11 226 12/13/2023
0.2.10 158 12/4/2023
0.2.9 157 11/17/2023
0.2.5 186 9/6/2023
0.2.4 179 7/18/2023
0.2.3 189 7/17/2023
0.2.2 212 6/9/2023
0.2.1 183 6/5/2023
0.1.8 298 3/25/2023
0.1.7 286 3/9/2023
0.1.6 312 3/1/2023
0.1.5 354 1/19/2023
0.1.4 370 1/6/2023
0.1.3 380 12/13/2022
0.1.2 363 12/6/2022
0.1.1 386 12/1/2022
0.1.0 422 11/25/2022
0.0.13 429 11/18/2022
0.0.12 446 11/16/2022