EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

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

Subject: Re: help
From: Dirk Zimoch <[email protected]>
To: Xu HuiJuan <[email protected]>
Cc: TechTalk EPICS <[email protected]>
Date: Tue, 13 Nov 2007 16:42:34 +0100
Hello,

it should not be a problem to have the code for ca_create_channel() and ca_get()
in two different C source files as long as they are linked toghether to one
program. Was that your question?

Of course you have to pass the chid handles from one file to the other. How do
you do that? Global variables? Check that the chid contains the value you
expect. Print it once after ca_create_channel and once before ca_get. (%p format
should do).

You cannot (easily) create channels and use them in a different THREAD. You have
to use ca_attach_context() for that.

Dirk

PS: A more detailed subject than "help" would be useful.

Xu HuiJuan wrote:
> Hi, there is a question bothering me.
> I want to create all channels in one file with ca_create_channel() or 
> ca_search() and handle each record in another file. I can’t get the desired 
> channel data.
> Is this method work?
> If it is, is there anything specific I should pay attention to?
> Thanks!
> 
> 
> --
> Open WebMail Project (http://openwebmail.org)
> 
> 
> 

-- 
Dr. Dirk Zimoch
Paul Scherrer Institut, WBGB/006
5232 Villigen PSI, Switzerland
Phone +41 56 310 5182

References:
help Xu HuiJuan

Navigate by Date:
Prev: Re: asynGpib:srqPoll srqStatus is 1 after ntrys 5 Why? Dirk Zimoch
Next: Re: asynGpib:srqPoll srqStatus is 1 after ntrys 5 Why? Steven Hartman
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: help Xu HuiJuan
Next: RE: help Jeff Hill
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  <20072008  2009  2010  2011  2012  2013  2014  2015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 10 Nov 2011 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·