EPICS Controls 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  2012  <20132014  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  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: EpicsSharp issues
From: "Bertrand Alain Gregor" <[email protected]>
To: "Christopher J. Pendleton" <[email protected]>
Cc: [email protected]
Date: Wed, 27 Nov 2013 11:06:29 +0100

Hi Chris,

 

I must admit I never worked with floats and the C# lib so far, nor I used much the arrays. Anyhow I found quite a few issues in my code and hope to have fixed them. There is a few things I'm not 100% sure however it seems to work now. So please try to grab the latest version and see if it works for you.

 

Sincerely,

 

Alain

 


From: Christopher J. Pendleton [mailto:[email protected]]
Sent: Tuesday, November 26, 2013 16:09
To: Bertrand Alain Gregor
Cc: [email protected]
Subject: RE: EpicsSharp issues

 

Would you expect this code to work?

 

###

    static class Program

    {

        [STAThread]

        static void Main()

        {

            EpicsClient client = new EpicsClient();

            EpicsChannel<ExtTimeType<float[]>> record =

                client.CreateChannel<ExtTimeType<float[]>>("r_I128_channels_test");

            record.MonitorChanged += new EpicsDelegate<ExtTimeType<float[]>>(record_MonitorChanged);

            Console.ReadKey();

        }

 

        static void record_MonitorChanged(EpicsChannel<ExtTimeType<float[]>> sender, ExtTimeType<float[]> newValue)

        {

            Console.WriteLine("Help!");

        }

    }

###

 

I see a similar exception as before in the console window:

 

###

System.Collections.Generic.KeyNotFoundException: The given key was not present i

n the dictionary.

   at System.Collections.Generic.Dictionary`2.get_Item(TKey key)

   at PSI.EpicsClient2.EpicsChannel`1.<Disconnect>b__3(EpicsChannel action) in D

:\Projects\epicssharp\client\EpicsGenericChannel.cs:line 105

###

 

Thanks,

Chris

 

From: Bertrand Alain Gregor [mailto:[email protected]]
Sent: Tuesday, November 26, 2013 8:04 AM
To: Christopher J. Pendleton
Cc: [email protected]
Subject: RE: EpicsSharp issues

 

Ask for an  ExtTimeType<TType> where TType is the type you want for the data (string, float or whatever)

And you should receive the timestamp as Time property of it.

 

Cheers,

 

Alain Bertrand

 


From: Christopher J. Pendleton [mailto:[email protected]]
Sent: Tuesday, November 26, 2013 14:00
To: Bertrand Alain Gregor
Cc: [email protected]
Subject: RE: EpicsSharp issues

 

I am actually talking about the client. Can you point me to some documentation/example code that accesses timestamps?

Thanks,
Chris


From: Alain Bertrand
Sent: ‎11/‎25/‎2013 11:31 PM
To: Christopher J. Pendleton
Cc: [email protected]
Subject: Re: EpicsSharp issues

The client should be able to reach any PV information, so I guess you are talking about the server side implementation. Right? The server is designed in such a way that you can define your own types and have any properties you want visible through Epics. So units, limits or whatever else you want have should be doable already.

Cheers,

Alain

On 11/25/2013 9:48 PM, Christopher J. Pendleton wrote:

Hi Alain.

 

The new code works. I appreciate your efforts and quick response. I was wondering if there were any plans to expose some other PV information such as timestamp, units, limits, etc. in a future version of EpicsSharp?

 

Thanks,

Chris

 

 

 


Replies:
RE: EpicsSharp issues Christopher J. Pendleton
References:
RE: EpicsSharp issues Christopher J. Pendleton
RE: EpicsSharp issues Bertrand Alain Gregor
RE: EpicsSharp issues Christopher J. Pendleton

Navigate by Date:
Prev: Re: EPICS on RTEMS 4.11 Till Straumann
Next: RE: Alarm Handler Swati Soni2
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: EpicsSharp issues Christopher J. Pendleton
Next: RE: EpicsSharp issues Christopher J. Pendleton
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  <20132014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Apr 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·