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 2025 | 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 2025 |
<== 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 |
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".
Demin Zhang
劲 爆 150 万 同 时 在 线,众 人 追 捧 梦 幻 西 游
-- Eric Norum <[email protected]> Advanced Photon Source Argonne National Laboratory (630) 252-4793