Experimental Physics and Industrial Control System
An up to date version of the code for the tty driver is attached.
The version at Delta site is slightly out of date.
Pete
>
> I have developped the Stream Device driver to talk to a lot of
> serial/GPIB/... devices. I also have a protocol file for the Danfysik
> 8000 PS. You probably need a driver interface for your serial
> board to
> Stream Device (Stream Device itself is hardware independent).
> Pete Owens
> from Diamond has written one. Look at
> www.delta.uni-dortmund.de/controls. Pete's tty driver is in
> the download
> area under unsupported.
>
> I have attached the protocol file and the template I used at
> DELTA. Try
> this as a starting point.
>
> Dirk.
>
>
> Gournay Jean-Francois wrote:
> > Hello all,
> >
> > I have to talk to the magnet power supply system 8000 from O.D.
> > Not surprisingly the controller has a clumsy protocol over
> a serial line.
> > After spending some time to fight with it, I am wondering
> if somebody
> > has already developed something for it ?
> >
> > If no, perhaps somebody can make some suggestions ...
> > 1. Some commands give responses, some other not ... but drvAscii /
> > drvSerial seems OK to accomodate this. What is not so nice
> is that I
> > have a semTake error due to the timeout (the PS is connect
> to a vxWorks
> > serial port and I am with R3.13) when I have no response
> from the PS
> > which means no error !!! But OK I can live with this.
> >
> > 2. The most difficult problem I have is the following : I
> have to write
> > DAC values with a string which looks like : <WA 999999>
> (999999 is an
> > integer value with 6 digits). This command gives a response
> in a string.
> >
> > I tried to implement this with an ao record with a flnk to
> a sub record
> > and finally with a stringin record which talks to the PS.
> The idea is to
> > modify the INP field of the stringin record in
> psDACProcess, to reflect
> > the desired DAC value.
> >
> > The DB looks like this :
> >
> > record(ao, "PS_DAC_OUT_ao") {
> > field(FLNK,"PS_DAC_sb")
> > }
> > record(sub,"PS_DAC_sb") {
> > field(INAM,"psDACInit")
> > field(SNAM,"psDACProcess")
> > }
> >
> > record(stringin, "PS_DAC_OUT_si") {
> > field(DESC,"PS DAC output I")
> > field(DTYP,"Ascii SIO")
> > field(INP,"@/tyCo/2 <WA 999999><%s>")
> > }
> >
> > The sub record works and I am able to reflect the desired
> value coming
> > from the ao record in the INP field of the stringin record.
> >
> > The problem is that the INP field of the stringin record is
> stored by
> > devAscii at the init of the record and any subsequent changes are
> > ignored when the record is processed.
> >
> > Thans for any help.
> > Jean-François
> >
> > J.F. Gournay
> > CEA Saclay
> > DAPNIA/SIS
> >
> > tel +33 (0)1 69 08 70 32
> > fax +33 (0)1 69 08 63 01
> >
>
> --
> Dr. Dirk Zimoch
> Swiss Light Source
> Paul Scherrer Institut
> Computing and Controls
> phone +41 56 310 5182
> fax +41 56 310 4413
>
Attachment:
streamTty.c
Description: streamTty.c
- Navigate by Date:
- Prev:
Re: Oxford/Danfysik power supply Dirk Zimoch
- Next:
RE: Oxford/Danfysik power supply Elder Matias
- 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:
Re: Oxford/Danfysik power supply Dirk Zimoch
- Next:
RE: Oxford/Danfysik power supply Elder Matias
- 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