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

Subject: RE: why failed without changes
From: Mark Rivers <rivers@cars.uchicago.edu>
To: "'liangyx@ihep.ac.cn'" <liangyx@ihep.ac.cn>, "tech-talk@aps.anl.gov" <tech-talk@aps.anl.gov>
Date: Mon, 12 Oct 2015 15:12:06 +0000
You may be able to get more information by changing this line:

asynSetTraceMask("serial_974",0,0x9)

to

asynSetTraceMask("serial_974",0,0xFF)

Here are some possibilities:

- Someone changed the baud rate on the device

- The cable is not the same one you were using, or it is broken.

You can open an asynRecord.adl display and try sending it commands, changing the baud rate, stop bits, etc. until you get a response.

Mark

-----Original Message-----
From: tech-talk-bounces@aps.anl.gov [mailto:tech-talk-bounces@aps.anl.gov] On Behalf Of ???
Sent: Monday, October 12, 2015 9:48 AM
To: tech-talk@aps.anl.gov
Subject: why failed without changes

Hi, everyone:

    My environment: SL 6.0, epics 3.14.12.1, synApps 5.6
    I have a strang question about controling a counter(974) with synApp5.6.
    I successfully used it before. Now,I failed control it, even I failed control it with Labview(windows program). 
    Some more information:I do nothing except connecting a signal generator to 974, when I disconnected the signal generator, it failed in control.


**********************************
Following is part of the st.cmd.( I think it is the information)

####
drvAsynSerialPortConfigure("serial_974","/dev/ttyS0",3,0,0)
asynSetOption("serial_974",0,"baud","9600")
asynSetOption("serial_974",0,"bits","8")
asynSetOption("serial_974",0,"parity","none")
asynSetOption("serial_974",0,"stop","2")
#asynSetOption("serial_974",0,"clocal","Y")
#asynSetOption("serial_974",0,"crtscts","N")
asynOctetSetInputEos("serial_974",0,"\r\n")
asynOctetSetOutputEos("serial_974",0,"\r\n")
asynSetTraceIOMask("serial_974",0,0x2)
asynSetTraceMask("serial_974",0,0x9)
asynOctetConnect("serial_974","serial_974")
asynOctetWriteRead("serial_974","INIT")
2015/10/12 22:01:57.625 /dev/ttyS0 write 6
INIT\r\n
2015/10/12 22:01:58.725 Error in WriteRead, nout 4 ninp=0 error 
###################### setup 974 #############################
initScaler974("serial974","serial_974",0,100)
########################################################

thanks for your help,
Liang



Replies:
Re: why failed without changes Maren Purves
References:
why failed without changes 梁雅翔

Navigate by Date:
Prev: why failed without changes 梁雅翔
Next: Re: why failed without changes Maren Purves
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017 
Navigate by Thread:
Prev: why failed without changes 梁雅翔
Next: Re: why failed without changes Maren Purves
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  <20152016  2017 
ANJ, 16 Dec 2015 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·