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  <20122013  2014  2015  2016  2017  2018  2019  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
<== Date ==> <== Thread ==>

Subject: What is void* puser in ca_create_channel
From: Florian Feldbauer <florian@ep1.ruhr-uni-bochum.de>
To: EPICS tech talk <tech-talk@aps.anl.gov>
Date: Thu, 29 Mar 2012 12:01:06 +0200
Dear all,

I currently write a CA Client that should monitor all measured temperatures in my experiment
to regulate the chillers.
This is my first try to program a CA Client, and I have a question concerning this:

The ca_create_channel and the ca_create_subscription methods both have
a parameter void* puser. How does this parameter have to look like?
Can I use a C-Struct with any member I want to have (even members which are not for the CA, but for another part of my program)? Are there any members which are mandatory? (like value or chid)

In the camonitor.c example generated with makeBaseApp.pl this puser is just a pointer to a C-Struct containing
a c-string value, the chid and evid of the channel.

Best regards,
Florian

--
-------------------------------------
| Florian Feldbauer                 |
| Ph.D. student                     |
|                                   |
| Institut für Experimentalphysik I |
| Ruhr-Universität Bochum           |
| Universitätsstr. 150              |
| D-44780 Bochum                    |
|                                   |
| Office: NB 2/173                  |
| Phone:  (+49)234 / 32-23538       |
| Fax:    (+49)234 / 32-14170       |
| Web:    http://www.ep1.rub.de     |
-------------------------------------


Replies:
Re: What is void* puser in ca_create_channel Ralph Lange
RE: What is void* puser in ca_create_channel Hill, Jeffrey O

Navigate by Date:
Prev: Re: EPICS Collaboration Meeting Spring 2012 Emmanuel Mayssat
Next: Re: What is void* puser in ca_create_channel Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
Navigate by Thread:
Prev: Re: Keithley 2400 Feng Laurence
Next: Re: What is void* puser in ca_create_channel Ralph Lange
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  <20122013  2014  2015  2016  2017  2018  2019 
ANJ, 18 Nov 2013 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·