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  2013  2014  2015  2016  2017  <20182019  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  <20182019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: RE: Fanout PV to many records
From: "Abdalla Ahmad" <[email protected]>
To: Dr. Bastian Löher <[email protected]>
Cc: "[email protected]" <[email protected]>
Date: Tue, 25 Sep 2018 06:27:48 +0000
Hi Bastian

Thank you for your suggestion. I managed to get the sfanout record, what's missing was to assign the field SELN as your number of output links.

Best Regards,
Abdalla.

-----Original Message-----
From: Dr. Bastian Löher [mailto:[email protected]] 
Sent: Tuesday, September 25, 2018 9:03 AM
To: Abdalla Ahmad <[email protected]>
Cc: Benjamin Franksen <[email protected]>; [email protected]
Subject: Re: Fanout PV to many records

Dear Abdalla,

I've used stock fanout, dfanoout or seq records in a cascaded manner for most of the problems I have encountered.

Usually I use a python script to generate a tree of these records. 
A tree of depth N gives you access to a max of 10^N PVs. There is some overhead to this solution, of course, but depending on the application this way of doing may beat having to include the additional custom record.

The result will be similar to:

-------

record(seq, "param_all")
{
	field(LNK1, "param_seq_A")
	field(LNK2, "param_seq_B")
	...
	field(LNKA, "param_seq_J")
}

record(seq, "param_seq_A")
{
	field(LNK1, "param_1")
	...
	field(LNKA, "param_10")
}

record(seq, "param_seq_B")
{
	field(LNK1, "param_11")
	...
	field(LNKA, "param_20")
}

...

-------

Kind regards
Bastian


On 180925-0548, Abdalla  Ahmad wrote:
> Hello Benjamin
> 
> Thank you very much that would be very helpful. Is there any example on how to use the record?
> 
> Best Regards
> Abdalla
> 
> -----Original Message-----
> From: Benjamin Franksen [mailto:[email protected]]
> Sent: Monday, September 24, 2018 2:34 PM
> To: Abdalla Ahmad <[email protected]>; [email protected]
> Subject: Re: Fanout PV to many records
> 
> On 06/11/2018 09:49 AM, Abdalla  Ahmad wrote:
> > Is there anything in EPICS database that allows me to write a PV 
> > value to tens of PVs? More than what fanout and dfanout can do? For 
> > example we have a dummy PV that holds a current value to be written 
> > to 32 power supplies and I am using a sequencer to achieve this.
> 
> If you are not afraid of custom record types, I have written a few that can have up to 1000 links (the number can be configured at compile time):
> 
> https://www-csr.bessy.de/control/SoftDist/fun/docs/fun.html
> https://www-csr.bessy.de/control/SoftDist/fun/
> 
> Cheers
> Ben
> --
> "Make it so they have to reboot after every typo." ― Scott Adams
> 

--
Dr. Bastian Löher

Data acquisition
Experiment controls
Detector development

R3B - Relativistic reactions with radioactive beams Gamma spectroscopy


-- TU Darmstadt ---------------------------------------------------------------

Room / Raum: S2|14 420
Phone / Telefon: +49 6151 75373
Mobile / Mobil: +49 162 5467038
E-Mail: [email protected]

Institut für Kernphysik
Technische Universität Darmstadt
Schlossgartenstrasse 9, 64289 Darmstadt
http://www.ikp.tu-darmstadt.de


-- GSI ------------------------------------------------------------------------

Room / Raum: SB3 3.199, KBW 5.15, SH4 2.007 Phone / Telefon: +49 6159 71 2739, 1803, 3272
Fax: +49 6159 71 3007
Mobile / Mobil: +49 162 5467038
E-Mail: [email protected]

GSI Helmholtzzentrum für Schwerionenforschung GmbH Planckstraße 1, 64291 Darmstadt, Germany, www.gsi.de

Commercial Register / Handelsregister: Amtsgericht Darmstadt, HRB 1528 Managing Directors / Geschäftsführung:
Professor Dr. Paolo Giubellino, Ursula Weyrich, Jörg Blaurock Chairman of the Supervisory Board / Vorsitzender des GSI-Aufsichtsrats:
State Secretary / Staatssekretär Dr. Georg Schütte

References:
Fanout PV to many records Abdalla Ahmad
Re: Fanout PV to many records Benjamin Franksen
RE: Fanout PV to many records Abdalla Ahmad
Re: Fanout PV to many records Dr. Bastian Löher

Navigate by Date:
Prev: Re: Fanout PV to many records Dr. Bastian Löher
Next: RE: Linux PREEMPT-RT kernel tuning example for EPICS IOC Sinclair, John William
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  <20182019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Fanout PV to many records Dr. Bastian Löher
Next: SNMP device support 吴煊
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  <20182019  2020  2021  2022  2023  2024 
ANJ, 25 Sep 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·