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  <20162017  2018  2019  2020  2021  2022  2023  2024  Index 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: Epics-Digitizer Communication
From: Eric Norum <[email protected]>
To: Hulusi Öz <[email protected]>
Cc: tech-talk <[email protected]>
Date: Thu, 28 Jul 2016 07:04:18 -0700
The error is indicating that the CAEN device is not a POSIX termios serial port and as such doesn’t accept the ioctl commands to set things like input timeout limits.  I have no idea about the CAEN device protocol.  If it happens to be USBTMC you could use the support for that this is part of ASYN.  Otherwise you’ll have to contact the CAEN folks and see what support they provide for EPICS.

On Jul 27, 2016, at 10:52 PM, Hulusi Öz <[email protected]> wrote:

Hi Sir,

I have a few question about communication between Epics and Digitizer (manufactured by CAEN).
I tried to write a basic protocol files that just read analog input,but I don't know that it's true or not. Here it is :

Terminator = LF;
get_analog {
    in " %f";
    ExtraInput = Ignore;
}
It worked for Arduino. I can get analog values and monitor them on the terminal.
I want to use this in CAEN Digitizer,since I could deal with the Arduino,I suppose..
But,the thing is that when I connect the digitizer to the computer via USB, the IOC output says like that :

2016/07/27 09:28:55.056528 SERIALPORT SERIALPORT:input: asynError in read: Can't set "/dev/v1718_0" c_cc[VTIME]: Inappropriate ioctl for device
2016/07/27 09:28:55.056871 SERIALPORT SERIALPORT:input: I/O error after reading 0 bytes: ""
2016/07/27 09:28:55.056913 SERIALPORT SERIALPORT:input: Protocol aborted
2016/07/27 09:28:55.556477 SERIALPORT SERIALPORT:input: asynError in read: Can't set "/dev/v1718_0" c_cc[VTIME]: Inappropriate ioctl for device

I installed the CAEN driver for this product (Digitizer DT 5730 in <http://www.caen.it/csite/CaenProd.jsp?parent=14&idmod=757>) at the path "/lib/modules/4.4.0-31-generic/kernel/drivers" . When I connect it, to learn which port number that it uses , v1718_0
The way I learnt it is that :

ls /dev > notplugged // then I plug the Arduino
ls /dev > plugged
diff notplugged plugged.

Its result for the Arduino says, Serial /ttymACM0,and it works. However the result for the Digitizer says, USB /v1718_0 .
I am using Asyn Driver and StreamDevice.. I don't know that should I use another extensions or support for this product: I search on this website but I couldn't find..

Thanks in advance, sir..
Regards..

Hulusi Oz

-- 
Eric Norum
[email protected]





Replies:
Re: Epics-Digitizer Communication Ford, Christopher

Navigate by Date:
Prev: RE: EpicsQT and Archiver Appliance rory.clarke
Next: Re: EpicsQT and Archiver Appliance Michael Davidsaver
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: Re: streamdevice question Eric Norum
Next: Re: Epics-Digitizer Communication Ford, Christopher
Index: 1994  1995  1996  1997  1998  1999  2000  2001  2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  2014  2015  <20162017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 29 Jul 2016 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·