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
Il 22/04/2025 20:12, Dariush Hampai ha
scritto:
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
************************************
- References:
- String manipulation from IOC Output Dariush Hampai via Tech-talk
- Navigate by Date:
- Prev:
No motor ui in pydm l123173 via Tech-talk
- Next:
Re: Process PINI-Record again as soon as device is reconnected Dr. Simon Friederich 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:
String manipulation from IOC Output Dariush Hampai 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>
|