1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 <2012> 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 <2012> 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Problem with EPICS c# Library Version 1.2.0.0 |
From: | Alain Bertrand <[email protected]> |
To: | 张玉亮 <[email protected]> |
Cc: | [email protected] |
Date: | Fri, 15 Jun 2012 21:01:00 +0200 |
Hi Zhang Yuliang,The C# Epics server included in the C# client is not anymore supported as we built a new library just for the server part. That part (as well as the prototype gateway) should be removed from the client library.
On Monday I will send you a link with the code (and I should actually update our webpages).
Sincerely, Alain Bertrand On 15/06/2012 11:56, 张玉亮 wrote:
Hi all, One problem confused me with the C# EPICS server using C# library Version 1.2.0.0. I tried to set value directly to Record from C# code, then i used caget to get the pv value, i found that the Record value was always 0 even if i have set Record value to 25. But the version before 1.2.0.0is OK! The following is my code and test: using System; using System.Collections.Generic; using System.Linq; using System.Text; using PSIEpics; namespace sharpServer { class Program { static void Main(string[] args) { EpicsServer Server = new EpicsServer(); //create a new Record which serves a double EpicsRecord<double> cpuRecord =Server.GetEpicsRecord<double>("PV:TEST"); //set HIGH-Alarm cpuRecord.HIGH = 50; //set HIGH-Alert cpuRecord.HIHI = 75; //set PV value cpuRecord.VAL = 25; Console.ReadKey(); } } } [zhangyl@timinglinux2~]$ caget PV:TEST PV:TEST 0 Reagards, Zhang Yuliang