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: problem in communicating to the gpib device with asyn4-6
From: Eric Norum <[email protected]>
To: zhangdemin99 <[email protected]>
Cc: tech-talk <[email protected]>
Date: Mon, 13 Aug 2007 21:11:54 -0500

On Aug 3, 2007, at 10:25 PM, zhangdemin99 wrote:


dear Norum,
Tanks for your reply.
I have set like what you suggested:
{&DSET_SO,GPIBWRITE,IB_Q_LOW,NULL,"DISP:TEXT \"%s\"",0,200,NULL, 0,0,NULL,NULL,NULL}
{&DSET_SI,GPIBREAD,IB_Q_LOW,"DISP:TEXT?","%39[^\r\n]",0,200,NULL, 0,0,NULL,NULL,NULL}
asynOctetSetInputEos("L0",-1,"\LF")
asynOctetSetOutputEos("L0",-1,"\LF")


but there are also some problems:
epics>2007/08/04 10:18:38.879 /dev/ttyS0 write 18
DISP:TEXT \"abcd\"L
epics>2007/08/04 10:18:45.263 /dev/ttyS0 write 11
DISP:TEXT?L
2007/08/02 10:18:50.266 display-query read status ""nin 0
2007/08/02 10:18:50.266 display-query error.

At the same time ,thanks Mayssat for your suggestion.
I am sure the message terminators for the device are"LF".

I think that there may be a language problem here. It is quite likely that the terminator for your device is a single <linefeed> character. The documentation probably refers to this as LF and you are making the assumption that the terminator is literally 'LF'.


Try changing the end-of-string commands to the following and see what happens:
asynOctetSetInputEos("L0",-1,"\n")
asynOctetSetOutputEos("L0",-1,"\n")




Demin Zhang



劲 爆 150 万 同 时 在 线,众 人 追 捧 梦 幻 西 游

-- Eric Norum <[email protected]> Advanced Photon Source Argonne National Laboratory (630) 252-4793




References:
problem in communicating to the gpib device with asyn4-6 zhangdemin99

Navigate by Date:
Prev: Medm for cygwin White, Glen Russell
Next: RTEMS access VME bus 师昊礼
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: problem in communicating to the gpib device with asyn4-6 zhangdemin99
Next: ArchiveDataServer - signals appear to stop changing after run of update_server cron job Devin Bougie
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 ·