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  <20162017  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  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Multiple device support for a record type
From: Ralph Lange <[email protected]>
To: EPICS Tech Talk <[email protected]>
Date: Thu, 11 Aug 2016 13:38:37 +0200
Hi Stefen,

On 11/08/2016 12:39, Stefen Paul wrote:
I've built device support for ai record for a vme based ADC board.
I've used the following to add the support:
    device(ai,VME_IO, devAiADCtype1, "HW Channel");

Now I want to build device support for ai record to support one more type of vme based ADC board to be used in the same system.
How do I do it ? Should I write something like :
    device(ai,VME_IO, devAiADCtype2, "HW Channel 2");

Yes, that's the way.

The constraint is that the combination of tag ("HW Channel") and record type must be unique. I.e. you can and should support multiple record types for the same hardware using a single tag.

Please use something descriptive as the tag, e.g. for a VME-6854 card by MyCorporation something like "MyCorp VME-6854".

If you have multiple functionalities in one support (for one hardware) that map to the same record type, e.g. different configuration options and digital outputs that all use a bo record, the distinction is usually done by a tag in the free text part of the INP/OUT link. If you need to code more configuration inside a single record instance than the free text allows, you can add info() structures to the record. (Be aware, though, that info structures are not visible remotely through Channel Access.)

Cheers,
~Ralph

Replies:
Re: Multiple device support for a record type Stefen Paul
References:
Multiple device support for a record type Stefen Paul

Navigate by Date:
Prev: Re: Multiple device support for a record type Michael Davidsaver
Next: Questions about Data browser in CSS lzf neu
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: Multiple device support for a record type Michael Davidsaver
Next: Re: Multiple device support for a record type Stefen Paul
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 12 Aug 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·