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

Subject: global variable asub type double
From: Miguel Bordalo <[email protected]>
To: EPICS Tech Talk <[email protected]>
Date: Thu, 15 Jun 2017 16:09:05 +0100
hello,

I would like to create a global variable of type double in my asub routine c program.
Following the example and for an integer type if I add 
to .c file:
    int myvariable;
    epicsExportAddress(int, myvariable);
to .dbd file:
    variable(myvariable)
to st.cmd
     var myvariable 60


indeed the integer variable is initialized as 60 and i can change it in runtime. although if i change the variable to double it gives me an error compiling.

Ty
-------------------------------------------------------------------------
Miguel Bordalo

Licenciado em Engenharia Electrotécnica e de Computadores
Instituto Superior Técnico

[email protected]


Replies:
Re: global variable asub type double Michael Davidsaver

Navigate by Date:
Prev: RE: the newest areaDetector Mark Rivers
Next: Re: global variable asub type double Michael Davidsaver
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: the newest areaDetector Mark Rivers
Next: Re: global variable asub type double Michael Davidsaver
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  <20172018  2019  2020  2021  2022  2023  2024 
ANJ, 21 Dec 2017 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·