EPICS Controls 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  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Question about stream device
From: "최숙" <[email protected]>
To: [email protected]
Date: Thu, 21 Jul 2016 09:53:54 +0900

Dear EPICS colleagues.


I want to handle ISEG high voltage power supplier to usee stream device through USB.


I need kut off the return value including \r\n..


I send a string like "U1\r\n"


It returned a string like "U1\r\n200\r\n"


In this case I want to only 200 value.. but  record read only U1... first part of response because of \r\n.


Anyone know about the method of cut off the first part let me the method...



This is a screen of IOC running


2016/07/21 09:02:35.693 /dev/ttyUSB_A70449SI read 15

I1\r\n0.0000E-3\r\n

2016/07/21 09:02:35.892 /dev/ttyUSB_A70449SI write 4

U1\r\n                                                                           <-- I send this message

2016/07/21 09:02:35.947 /dev/ttyUSB_A70449SI read 7

U1\r\n0\r\n                                                                <-- This is return message

2016/07/21 09:02:36.637 /dev/ttyUSB_A70449SI write 4

I1\r\n

2016/07/21 09:02:36.693 /dev/ttyUSB_A70449SI read 15

I1\r\n0.0000E-3\r\n

2016/07/21 09:02:36.892 /dev/ttyUSB_A70449SI write 4

U1\r\n

2016/07/21 09:02:36.947 /dev/ttyUSB_A70449SI read 7

U1\r\n0\r\n

2016/07/21 09:02:37.637 /dev/ttyUSB_A70449SI write 4

I1\r\n

2016/07/21 09:02:37.693 /dev/ttyUSB_A70449SI read 15

I1\r\n0.0000E-3\r\n




Suk Choi                           

Ph.D / Research Fellow

RI Beam Production Systems Team

Rare Isotope Science Project / Institute for Basic Science

70, Yuseong-daero 1689-gil,Yuseong-gu, Daejeon, Korea, 34047

Tel 042-878-8807  Fax 042-878-8899

E-mail [email protected]


Replies:
RE: Question about stream device Mark Rivers

Navigate by Date:
Prev: RE: CARS:Modbus - function 06 (write single register) issue Mark Rivers
Next: RE: Question about stream device Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: RE: conversion with ai and devAsynFloat64 Mark Rivers
Next: RE: Question about stream device Mark Rivers
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 20 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·