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: Problem with EPICS c# Library Version 1.2.0.0
From: 张玉亮 <zhangyl@ihep.ac.cn>
To: tech-talk@aps.anl.gov
Date: Fri, 15 Jun 2012 17:56:11 +0800 (CST)
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



Replies:
Re: Problem with EPICS c# Library Version 1.2.0.0 Alain Bertrand
RE: Problem with EPICS c# Library Version 1.2.0.0 Bertrand Alain Gregor

Navigate by Date:
Prev: RE: Problems with areaDetector Prosilica driver on Windows? Mark Rivers
Next: Re: Problem with EPICS c# Library Version 1.2.0.0 Alain Bertrand
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: streamdevice: error handling for multiple lines of input from one command Dirk Zimoch
Next: Re: Problem with EPICS c# Library Version 1.2.0.0 Alain Bertrand
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 ·