Pierrick Hanlet wrote on 21.10.2008 22:00:
> [...] Until the hardware is all in place, I can use my simple setup to develop my
> edm panels, etc. Does anyone have advice, or preferably working examples,
> of code that reads files from into ioc and the ioc writes the data to the database?
>
Hi Pierrick,
You just want to have your records change in a given sequence to test
your graphical user interfaces?
Then don't do it on the IOC, use a shell script instead that reads the
data from the file and write it with "caput".
E.g. if you have the file format: <channel> <value> <delay> in your
file, you could use the shell script:
#!/bin/sh
while true
do
read channel val delay
if [ $? -ne 0 ]; then break ;fi
caput $channel $val
if [ $delay -gt 0 ] ;then sleep $delay;fi
done
If you name the script "fileput" and your data file "data" you call it
"fileput <data".
Of course you need to have the location of the binary of 'caput' in your
PATH, it's part of EPICS base.
Regards
Andreas
--
Dr. Andreas Luedeke, SLS Operations Manager, Tel:+41-56-3104002
[email protected], http://people.web.psi.ch/luedeke
- Replies:
- Re: ioc reading data from files Jiro Fujita
- References:
- ioc reading data from files Pierrick Hanlet
- Navigate by Date:
- Prev:
RE: EPICS Threading Issues Richard Pastrick
- Next:
Re: ioc reading data from files 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:
ioc reading data from files Pierrick Hanlet
- Next:
Re: ioc reading data from files Jiro Fujita
- 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
|