cswpc 0.2.4

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

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

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

Controller

  • STEM

Ethernet motor drive

  • Edrive-ST

Ethernet based motion card

  • EMotion

Ethernet based DAQ card

  • Ethan-A
  • Ethan-D
  • Ethan-I
  • Ethan-L
  • Ethan-O
  • Ethan-T

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
  • Wifi-DAQ-F4-A

I/O port function table

EMotion & Motor driver series

Product/module Motion Drive
EMotion 0 -
Edrive-ST - 0

STEM series

Product/module AI AO DI DO
STEM 1,2,4 1,2,4 0~7 0~7

In the STEM product, the values 1, 2, and 4 are used to represent the slots in the AIO. Additionally, the DIO ports 0 to 1 are assigned to slot 1, while ports 2 to 3 are assigned to slot 2.

Ethan & Wifi series

Product/module AI AO DI DO TC
Ethan-A 0 - - - -
Ethan-D - - 1 0 -
Ethan-I 0 - - - -
Ethan-L - - - 0 -
Ethan-O - 0 - - -
Ethan-T - - - - 1
Wifi-DAQ-E3-A 0 - - - -
Wifi-DAQ-F4-A 0 - - - -

USB series

Product/module AI AO DI DO CAN UART SPI I2C RTD TC
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 - -

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.18 89 4/1/2024
0.2.11 196 12/13/2023
0.2.10 133 12/4/2023
0.2.9 127 11/17/2023
0.2.5 159 9/6/2023
0.2.4 154 7/18/2023
0.2.3 162 7/17/2023
0.2.2 187 6/9/2023
0.2.1 153 6/5/2023
0.1.8 274 3/25/2023
0.1.7 262 3/9/2023
0.1.6 287 3/1/2023
0.1.5 325 1/19/2023
0.1.4 340 1/6/2023
0.1.3 351 12/13/2022
0.1.2 338 12/6/2022
0.1.1 360 12/1/2022
0.1.0 392 11/25/2022
0.0.13 398 11/18/2022
0.0.12 418 11/16/2022