EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: changing base address to NI1014-GPIB
From: Ned Arnold <[email protected]>
To: [email protected]
Cc: [email protected]
Date: Wed, 18 Oct 2000 09:08:40 -0500 (CDT)
Gaspare,

You do NOT need to rebuild the entire EPICS release to relocate
VME base addresses.

What must be done is that the default base address specifications in 
module_types.h must be redefined AFTER loading iocCore but BEFORE
iocInit.  There is a file in base (src/drv/old/module_types.c) which
one can use as a template for overriding default parameters in module_types.h.

For your example, create a simple program in your application area 
(e.g. hardwareConfig.c) as follows :

/**************************/
#include <vxWorks.h>
#include <types.h>
#include <dbDefs.h>
#include <dbAccess.h>
#include <types.h>

#include <module_types.h>

hardwareConfig()
{
    NIGPIB_SHORT_OFF        = 0x8000;  /* Relocate NI-1014 to 0x8000 */
    NIGPIB_IVEC_BASE        = 100;
    NIGPIB_IRQ_LEVEL        = 5;
    
    return(0);
}

/**************************/

Then, in your startup script for the ioc, do the following ...

cd topbin
ld < iocCore
ld < myLib
ld < hardwareConfig.o
 
# change hardware configuration. 
hardwareConfig

...

iocInit



Peruse module_types.c to see what other things can be overridden (e.g. # of
cards, interrupt vectors, etc)


Hope this helps ...

	
	Ned
	


> Hello,
> 
> I am an EPICS user, and I have to change the base address of my NI1014
> module in a crowded VME crate. It is actually set to 0x5000. How do I
> change this setting in software, which files do I have to edit (other
> than base/include/module_types.h) ? 
> Do I have to recompile the all EPICS or can I do something simpler ? 
> Many other users using the same state machine (and same EPICS core) work
> with NI1014, but not having overpopulation problems in their crates they
> do not have (want) to change their base address.  Do I have a better
> chance other than having my own complete, private version of EPICS ?
> 
> My EPICS version is 3.12.2 and I am using the driver drvGpib.c
> in its 1991 version by John Winans.
> 
> Thank you very much for any insight you can give.
> 
> 	Gaspare Lo Curto
> 
> 
> 
>  ### Gaspare Lo Curto	office 234	| Telephone: + 49 89 32354226  ###
>  ### Max Planck Institut fur Physik	| Fax:       + 49 89 3226704   ###
>  ### Foehringer Ring 6			|			       
###
>  ### D-80805 Munich      GERMANY	|			       ###
> 
> 
> 
> 
> 
> 



Navigate by Date:
Prev: devSupport for CAEN V767 Peter Mueller
Next: Interrupts, vectors and mv230x ioc Timo Korhonen
Index: 1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: changing base address to NI1014-GPIB Gaspare Lo Curto
Next: devSupport for CAEN V767 Peter Mueller
Index: 1994  1995  1996  1997  1998  1999  <20002001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Aug 2010 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·