Argonne National Laboratory

Experimental Physics and
Industrial Control System

1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  2016  2017  <20182019  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  <20182019 
<== Date ==> <== Thread ==>

Subject: Re: No reply from device using asyn+streamdevice
From: Eric Norum <ericnorum@gmail.com>
To: fatimah1129@sina.com
Date: Mon, 8 Oct 2018 20:13:36 -0700
asynSetTraceMask(“D1”,0,0x9) — bit 0 enables error messages, bit 4 enables diagnostic messages from the driver level.
asynSetTraceIOMask(“D1”,0,0x2) — bit 1 arranges for characters read from and sent to the instrument to be displayed as ASCII characters with C-style escape sequences.

The messages in your message indicate that nothing is being received since there are no characters between the pair of double quotes.

On Oct 8, 2018, at 8:02 PM, <fatimah1129@sina.com> <fatimah1129@sina.com> wrote:


I have added the following to  st.cmd file after configuring the port:

asynSetTraceIOMask(“D1”,0,0x2)
asynSetTraceMask(“D1”,0,0x9)

but the prompt as follows

2018/10/09 10:36:45.340114 D1 Va1: Input "" too short.
2018/10/09 10:36:45.340135 D1 No match for ":"
2018/10/09 10:36:50.340003 D1 Va1: Input "" too short.
2018/10/09 10:36:50.340043 D1 No match for ":"

I have three questions:1) what is the meaning of  mask in asynSetTraceIOMask and asynSetTraceMask? 2) I see the definition of the mask in asynDriver.h 



/* traceMask definitions*/
#define ASYN_TRACE_ERROR 0x0001
#define ASYN_TRACEIO_DEVICE 0x0002
#define ASYN_TRACEIO_FILTER 0x0004
#define ASYN_TRACEIO_DRIVER 0x0008
#define ASYN_TRACE_FLOW 0x0010
#define ASYN_TRACE_WARNING 0x0020
/* traceIO mask definitions*/
#define ASYN_TRACEIO_NODATA 0x0000
#define ASYN_TRACEIO_ASCII 0x0001
#define ASYN_TRACEIO_ESCAPE 0x0002
#define ASYN_TRACEIO_HEX 0x0004


— 
Eric Norum





Navigate by Date:
Prev: RE: perl under Hinko Kocevar
Next: Git vulnerability: update your clients! Ralph Lange
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  <20182019 
Navigate by Thread:
Prev: Re: No reply from device using asyn+streamdevice Dirk Zimoch
Next: ArchiveEngine Silver
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  <20182019 
ANJ, 09 Oct 2018 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·