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: String manipulation from IOC Output |
From: | Dariush Hampai via Tech-talk <tech-talk at aps.anl.gov> |
To: | tech-talk at aps.anl.gov |
Date: | Mon, 26 May 2025 16:26:28 +0200 |
Dear all,
after a big help from Mark and Maurizio, I developped the IOC of
an Ortec 994 with card 99X-1 for serial interface.
In my github page who need can download the sources.
https://github.com/Teclis77/Ortec-994
Thanks to all
Dariush
Dear all,
I’m developing an hardware IOC for NIM Ortec chain, with Ortec 994 Dual Counter and RS232 99X-1 card interface).Following the examples and tutorials, I wrote a db and a proto files where I included the call functions. One of them is the SHOW Count function, that gives the following answer (via telnet)
SHOW_COUNT0000000;0000000;%0000069
The first answer are the two channels counts, while the second one is the Counter has properly answered and it is ready.
My proto files contains the following call for simple read the display (SH_COU is the abbreviation of SHOW_COUNT)
getCount {out "SH_COU";in "%s";}
and for starting count
setStart {out "START";in "%s";wait = 1500;out "SH_COU";in "%s";ExtraInput = Ignore;out "CL_COU";in "%s";out "STOP";in "%s";}
In the same proto file I define the display (0 or 1 for display A or B)
setDisplay {out "SET_DISPLAY %s";in "%s";ExtraInput = Ignore;@init {out "SET_DISPLAY 0";in "%s";}}
The question is: how can I read only the display A or display B (depending on setDisplay) if the outpuit is “ 0000000;0000000; “
Thank you in advance
Dariush
p.s.: I know that in Scaler module there is already am Ortec974 module, but the cpp file is optimized for that nim module (4 channels) and for GPIB communication, while my ortec994 is serial through MOXA NPORT converter (RS232 to IP), so I should modify too much the sources.
************************************
Dr. Dariush Hampai, PhD
INFN - LNF
X-Lab Frascati
Via E. Fermi, 54 (ex 40)
I-00044 Frascati (RM)
Italy
************************************