Experimental Physics and Industrial Control System
Thanks for your reply. I am sorry for my careless. I did use the request file in the script "burtrb -f 17U-all.req -l name.log -o name.snap" and there are no #autosave. I am sorry again. The script is executed but only the first value is recorded. While executing the script directly, all the value is saved.
The request file content is below:
------------------------
%
%17U Ion chamber
%
17U:ES:ADC-01.VAL
%
%17U Energy
%
X17U1:OP:Mono:Soft_bragg.VAL
%
%17U XBPM position
%
X17U1:FE:XBPM1:POS:X
X17U1:FE:XBPM1:POS:Y
%
%17U SLIT1
%
X17U1:OP:SLIT1:size_x.RBV
X17U1:OP:SLIT1:center_x.RBV
X17U1:OP:SLIT1:size_y.RBV
X17U1:OP:SLIT1:center_y.RBV
%
%17U T2
%
X17U1:OP:Mono:T2.RBV
%
%17U Piezo
%
X17U1:E621:GET_SERVO
X17U1:E621:PUT_VOL
X17U1:E621:GET_VOL
....
The snap file is:
-------------------------------------
--- Start BURT header
Time: Wed Apr 28 15:30:04 2010
Login ID: mx ()
Eff UID: 501
Group ID: 500
Keywords:
Comments:
Type: Absolute
Directory /home/mx/beamstatus
Req File: 17U-all.req
--- End BURT header
17U:ES:ADC-01.VAL 1 -9.159466308435188e-04
The log file is:
-------------------------------------
X17U1:OP:Mono:Soft_bragg.VAL ... not connected so no ca_array_get_callback()
X17U1:FE:XBPM1:POS:X ... not connected so no ca_array_get_callback()
X17U1:FE:XBPM1:POS:Y ... not connected so no ca_array_get_callback()
X17U1:OP:SLIT1:size_x.RBV ... not connected so no ca_array_get_callback()
X17U1:OP:SLIT1:center_x.RBV ... not connected so no ca_array_get_callback()
X17U1:OP:SLIT1:size_y.RBV ... not connected so no ca_array_get_callback()
X17U1:OP:SLIT1:center_y.RBV ... not connected so no ca_array_get_callback()
X17U1:OP:Mono:T2.RBV ... not connected so no ca_array_get_callback()
X17U1:E621:GET_SERVO ... not connected so no ca_array_get_callback()
X17U1:E621:PUT_VOL ... not connected so no ca_array_get_callback()
X17U1:E621:GET_VOL ... not connected so no ca_array_get_callback()
X17U1:OP:SLIT2:size_x.RBV ... not connected so no ca_array_get_callback()
X17U1:OP:SLIT2:center_x.RBV ... not connected so no ca_array_get_callback()
X17U1:OP:SLIT2:size_y.RBV ... not connected so no ca_array_get_callback()
X17U1:OP:SLIT2:center_y.RBV ... not connected so no ca_array_get_callback()
X17U1:OP:M1:Soft_z.RBV ... not connected so no ca_array_get_callback(
.......
-----邮件原件-----
发件人: [email protected] [mailto:[email protected]] 代表 Pete R. Jemian
发送时间: 2010年4月28日 15:09
收件人: [email protected]
主题: Re: hi, how to use burtrb to save status as a task?
You do not show a BURT request file that contains the list of PVs you
wish to record. Name the request file with something like this:
Pathtoburtrb -f requestFile.req ?l name.log ?o name.snap
Also, the first two lines in your script should be swapped:
#!/bin/bash
#autosave
On 4/27/2010 11:30 PM, 汪启胜 wrote:
> Hello, I write a shell script which use burtrb to save the beamline
> status every an hour. When I execute the script, it is ok. But I add it
> as a task by crontab, there always connect failed.
>
> The shell script just like:
>
> #autosave
>
> #!/bin/bash
>
> Cd pathtosavedata
>
> #create the snap file name
>
> …
>
> …
>
> Pathtoburtrb ?l name.log ?o name.snap
>
> Chmod a+x autosave
>
> The crontab like below:
>
> 30 * * * * user pathtoautosave
>
> It did execute the task, but it always failed to connect to pv expect
> the first one, even I use the parameter ?r 10. Please help me figure out
> the problem.
>
> Thanks very much.
>
--
----------------------------------------------------------
Pete R. Jemian, Ph.D. <[email protected]>
Beam line Controls and Data Acquisition, Group Leader
Advanced Photon Source, Argonne National Laboratory
Argonne, IL 60439 630 - 252 - 3189
-----------------------------------------------------------
Education is the one thing for which people
are willing to pay yet not receive.
-----------------------------------------------------------
- Replies:
- Re: çå: hi, how to use burtrb to save status as a task? Benjamin Franksen
- Navigate by Date:
- Prev:
Re: hi, how to use burtrb to save status as a task? Pete R. Jemian
- Next:
Re: çå: hi, how to use burtrb to save status as a task? Benjamin Franksen
- 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: hi, how to use burtrb to save status as a task? Pete R. Jemian
- Next:
Re: çå: hi, how to use burtrb to save status as a task? Benjamin Franksen
- 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