ChannelAccess 2018.11.15.5
See the version list below for details.
dotnet add package ChannelAccess --version 2018.11.15.5
NuGet\Install-Package ChannelAccess -Version 2018.11.15.5
<PackageReference Include="ChannelAccess" Version="2018.11.15.5" />
paket add ChannelAccess --version 2018.11.15.5
#r "nuget: ChannelAccess, 2018.11.15.5"
// Install ChannelAccess as a Cake Addin
#addin nuget:?package=ChannelAccess&version=2018.11.15.5
// Install ChannelAccess as a Cake Tool
#tool nuget:?package=ChannelAccess&version=2018.11.15.5
EpicsSharp is a software library for the .NET platform implementing the Channel Access protocol used by EPICS (version 3.14). The library contains both the EPICS client as well as the EPICS server.
This package replaces the packages "CaSharpServer" and "EpicsClient2".
-------------------------------------------------------------------
The following code will read a value of a channel (ARIDI-PCT:CURRENT) and print it out on the screen
-------------------------------------------------------------------
using EpicsSharp.ChannelAccess.Client;
using System;
namespace ConsoleApp4
{
class Program
{
static void Main(string[] args)
{
var client = new CAClient();
// Required if you use an EPICS Gateway, otherwise skip the line
client.Configuration.SearchAddress = "sls-cagw:5062";
var channel = client.CreateChannel>string<("ARIDI-PCT:CURRENT");
// Synchronously read a channel and shows the value.
// If the channel doesn't exist an exception will be thrown.
Console.WriteLine(channel.Get());
}
}
}
-------------------------------------------------------------------
The second example will instead "monitor" the value and call the callback every time the value changes:
-------------------------------------------------------------------
using EpicsSharp.ChannelAccess.Client;
using System;
namespace ConsoleApp4
{
class Program
{
static void Main(string[] args)
{
var client = new CAClient();
// Required if you use an EPICS Gateway, otherwise skip the line
client.Configuration.SearchAddress = "sls-cagw:5062";
var channel = client.CreateChannel>string<("ARIDI-PCT:CURRENT");
// Will connect (if possible) to the channel and receive the value in the callback. In case of
// disconnection the channel will try to reconnect automatically
channel.MonitorChanged += (chan, val) =>
{
Console.WriteLine(val);
};
Console.ReadKey();
}
}
}
-------------------------------------------------------------------
Note:
The client library will use the app settings "e#ServerList" to grab potential SearchAddress.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net45 is compatible. net451 was computed. net452 was computed. net46 was computed. net461 was computed. net462 was computed. net463 was computed. net47 was computed. net471 was computed. net472 was computed. net48 was computed. net481 was computed. |
This package has no dependencies.
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 |
---|---|---|
2019.9.24.1 | 1,242 | 9/24/2019 |
2019.2.26.1 | 704 | 2/26/2019 |
2019.2.25.2 | 676 | 2/25/2019 |
2019.2.25.1 | 678 | 2/25/2019 |
2019.1.30.4 | 709 | 1/30/2019 |
2018.11.15.6 | 794 | 11/15/2018 |
2018.11.15.5 | 775 | 11/15/2018 |
2018.11.14.1 | 783 | 11/14/2018 |
2018.10.17.9 | 837 | 10/17/2018 |
2018.10.16.7 | 787 | 10/16/2018 |
2018.10.16.6 | 800 | 10/16/2018 |
2018.10.16.5 | 826 | 10/16/2018 |
2018.10.16.3 | 802 | 10/16/2018 |