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: | 回复: Reading multiple parameters from an incoming message. |
From: | "Li, Ji via Tech-talk" <tech-talk at aps.anl.gov> |
To: | Mark Rivers <rivers at cars.uchicago.edu> |
Cc: | "tech-talk at aps.anl.gov" <tech-talk at aps.anl.gov> |
Date: | Wed, 30 Dec 2020 03:14:14 +0000 |
Happy New Year, Mark.
This problem is still on my table and to be solved.
============================
Your .db file passes 3 arguments to the protocol file, %(P), $(Q), $(CMD). But in the protocol file I only see \$1 and \$2, not \$3. Is this correct?
============================ #InTerminator = 0x11;
How will asyn know when to return a string without a timeout if there is no terminator defined?
============================ I think the protocol would be easier to read if you change this: in "%d %*d %*d %*c%*c%*c%*c%*c%*c\n%*d %*d %*d %*c%*c%*c%*c%*c%*c\n" $ax_status; to this: in "%d %*d %*d %*6c\n%*d %*d %*d %*6c\n" $ax_status;
This looks much better. I updated the protocol.
============================
Best,
-Ji Li
发件人: Mark Rivers <rivers at cars.uchicago.edu>
发送时间: 2020年12月29日 18:45 收件人: Li, Ji <liji at bnl.gov> 抄送: tech-talk at aps.anl.gov <tech-talk at aps.anl.gov> 主题: RE: Reading multiple parameters from an incoming message. Hi Ji Li,
Sorry for the delay in replying. Maybe you have figured this out?
If not, I have some questions:
Your .db file passes 3 arguments to the protocol file, %(P), $(Q), $(CMD). But in the protocol file I only see \$1 and \$2, not \$3. Is this correct?
You have commented out the line that defines the input terminator in the protocol file: #InTerminator = 0x11;
How will asyn know when to return a string without a timeout if there is no terminator defined?
I think the protocol would be easier to read if you change this: in "%d %*d %*d %*c%*c%*c%*c%*c%*c\n%*d %*d %*d %*c%*c%*c%*c%*c%*c\n" $ax_status;
to this: in "%d %*d %*d %*6c\n%*d %*d %*d %*6c\n" $ax_status;
Mark
From: Li, Ji <liji at bnl.gov>
Hi Mark,
I was referring to the PV for RATEA - $(P){$(Q)-Ax:A}:RATE:RBV.
Please see the attached files for the protocol, the database, the substitutions file, and the st.cmd. I only worked on Independent Condition to operate the two syringes separately. For better clarity I removed other protocols/databases definitions.
The .proto file contains the definition of this protocol and the referenced macro.
I have several .db files for different categories of information (rate/volume/time/...). The attached .db file defines the status PV - currently only RATEA. I expect implementation of other PVs that get values from this status message would be similar once I'm done with RATEA.
Best,
-Ji Li
发件人: Mark Rivers
<rivers at cars.uchicago.edu>
Hi Ji Li, |