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
<2007>
2008
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
<2007>
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|