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
************************************
|