Experimental Physics and Industrial Control System
|
Hello Vahe,
I would strongly suggest using StreamDevice [1] to interface such
a device.
This approach will be much easier and faster. Writing a protocol
file for your device is basically all you will have to do.
~Ralph
[1]
http://epics.web.psi.ch/software/streamdevice/
On 22.05.2013 09:25, Vahe Sahakyan wrote:
Hello,
I'm trying to create IOC for our XGS-600 vacuum gauge
controller (Agilent Technologies). It is connected via RS232
serial port and I know the commands I'm going to use.
This is my first real IOC to built. I read Norum's tutorial how
to built Gpib and serial device IOCs and I have several questions:
Can we use the
http://www.aps.anl.gov/epics/modules/soft/asyn/R4-9/HowToDoSerial/tutorial.html
tutorial as base for our own IOC? If it is possible than
1) if my device is connected via serial port, should I use the
same command as for gpib devices, i.e.
/base/asyn/bin/linux-x86/makeSupport.pl -t devGpib myDevice
2) If the commands of our device have the following format:
#0002UHFIG1,end the command ends with "\n". How can we define
it in a gpibCmd structure? In a Norum's tutorial it is written as
following:
{&DSET_LO, GPIBWRITE, IB_Q_LOW, NULL, "\377\377\033", 10,
10,
NULL, 0, 0, NULL, NULL, "\033"},
3) In the above mentioned command to what must be changed
GPIBWRITE/GPIBREAD in case of RS232 connection?
If anybody had already written an IOC for this controller I'll be
very thankful to get advices.
Thank you in advance,
Regards,
Vahe
|
- Replies:
- Re: Gauge controller with R232 serial port Eric Norum
- References:
- Gauge controller with R232 serial port Vahe Sahakyan
- Navigate by Date:
- Prev:
RE: asynPrint to print asyn port name ulrik.pedersen
- Next:
Re: streamdevice Dirk Zimoch
- 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
- Navigate by Thread:
- Prev:
Gauge controller with R232 serial port Vahe Sahakyan
- Next:
Re: Gauge controller with R232 serial port Eric Norum
- 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
|
ANJ, 20 Apr 2015 |
·
Home
·
News
·
About
·
Base
·
Modules
·
Extensions
·
Distributions
·
Download
·
·
Search
·
EPICS V4
·
IRMIS
·
Talk
·
Bugs
·
Documents
·
Links
·
Licensing
·
|