Title: Oxford/Danfysik power supply
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
- Replies:
- Re: Oxford/Danfysik power supply Dirk Zimoch
- Navigate by Date:
- Prev:
Solution to a different version of the S_errno_ENOBUFS problem Redman, Russell O.
- Next:
CA Connect rates under RTEMS wnolan
- 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:
Solution to a different version of the S_errno_ENOBUFS problem Redman, Russell O.
- Next:
Re: Oxford/Danfysik power supply 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
|