g+
g+ Communities
Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
<== Date ==> <== Thread ==>

Subject: RE: Problem with EPICS c# Library Version 1.2.0.0
From: "Bertrand Alain Gregor" <alain.bertrand@psi.ch>
To: 张玉亮 <zhangyl@ihep.ac.cn>, <tech-talk@aps.anl.gov>
Date: Mon, 18 Jun 2012 14:15:06 +0200
Updated the download page:

http://gfa-it.web.psi.ch/epicsSharp/index.php?site=download

Will update the documentation in the coming days.

Sincerely,

Alain Bertrand

-----Original Message-----
From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of ???
Sent: Friday, June 15, 2012 11:56
To: tech-talk@aps.anl.gov
Subject: Problem with EPICS c# Library Version 1.2.0.0

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




References:
Problem with EPICS c# Library Version 1.2.0.0 张玉亮

Navigate by Date:
Prev: Has anyone built SynApps under minGW? S. Stein
Next: subArray problem Steve Hunt
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
Navigate by Thread:
Prev: Re: Problem with EPICS c# Library Version 1.2.0.0 Alain Bertrand
Next: Has anyone built SynApps under minGW? S. Stein
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICSv4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·