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  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: 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: Tue, 22 Apr 2025 20:12:06 +0200
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_COUNT
0000000;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

************************************




Replies:
Re: String manipulation from IOC Output Dariush Hampai via Tech-talk

Navigate by Date:
Prev: Questions about Eiger2 Mark Rivers via Tech-talk
Next: ICALEPCS'25 in Chicago! Abstract submission and registration now open for the 20th International Conference on Accelerator and Large Experimental Physics Control Systems Johnson, Andrew N. via Tech-talk
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
Navigate by Thread:
Prev: Questions about Eiger2 Mark Rivers via Tech-talk
Next: Re: String manipulation from IOC Output Dariush Hampai via Tech-talk
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
ANJ, 26 May 2025 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions ·
· Download · Search · IRMIS · Talk · Documents · Links · Licensing ·