Experimental Physics and Industrial Control System
|
I presume that you are using devGpib and ASYN. I think that the
following command table entry will do what you want:
{&DSET_SO,GPIBWRITE,IB_Q_HIGH,NULL,"DISP:TEXT '%s'",200,NULL,
0,0,NULL,NULL,NULL},
Then in your st.cmd file you would have lines like:
asynOctetSetInputEos("L0",0,"\n")
asynOctetSetOutputEos("L0",0,"\n")
If you want to include a single quote character in the displayed
message you must send it as two adjacent single quote characters, or
you can change the command above to
{&DSET_SO,GPIBWRITE,IB_Q_HIGH,NULL,"DISP:TEXT \"%s\"",200,NULL,
0,0,NULL,NULL,NULL},
(then you'll have to send a double quote twice to get it into the
displayed message......)
On Jul 19, 2007, at 8:38 AM, zhangdemin99 wrote:
Dear all,
I am using ASYN to communicate the GPIB device, and a serial line
directly attached to the IOC. I want to send a string command to
the GPIB device, such as "DISPlay:TEXT" ,and the text which I want
to send is anystring, then how to creat the command array entries
when creating ? the "eos" is "LF".
Many thanks in advance.
demin zhang
CAEP
轻 轻 的,大 话 3 来 了。赶 快 收 拾 行 囊,开 始 我 们 的 探 营 之
旅 吧!
--
Eric Norum <[email protected]>
Advanced Photon Source
Argonne National Laboratory
(630) 252-4793
- References:
- How to declare the command array? zhangdemin99
- Navigate by Date:
- Prev:
Re: How to declare the command array? Emmanuel Mayssat
- Next:
medm with epics-base 3.14.6+ Emmanuel Mayssat
- 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:
Re: How to declare the command array? Emmanuel Mayssat
- Next:
medm with epics-base 3.14.6+ Emmanuel Mayssat
- 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
|
ANJ, 10 Nov 2011 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|