Experimental Physics and Industrial Control System
Hi,
First I am sorry for my poor English and the mistakes would make.
I am new to EPICS and I met some question when using asyn. Hoping your advices for my question.
I used the asyn to control the motor( do it as the tutorial in asyn ), if I want to move the different step, I have to change the number and make it. I want to find an easy way.
Here is the my file( you can see these ):
-----------------------------------------------------------------------
/*
I have the devXXX.c, devXXX.db, devXXX.dbd file,
here is some of my words in devXXX.c( key part ),
you could only see the four part.
*/
-------------------------------------------
#define EOSNL "\r\n"
static sturct gpibCmd goibCmds[]=
{
{&DSET_SO,GPIBCMD,IB_Q_HIGH, "\x02RPS1/0/300/0"EOSNL, NULL,0,200,NULL,0,0,NULL,NULL,EOSNL} /* "\x02RPS1/0/300/0" is the command sent to motor, 300 is the distance */
}
------------------------------------------
over.
I want to change the "300" with a pv in "\x02RPS1/0/300/0"EOSNL, then I could change the value at will, no need to make again and agian.
When I try to add the pv, make would error, I don't know how to solve it.
Hope your answer.
Thank you in advanced.
Liang YX
Institute of High Energy Physics
Chinese Academy of Sciences
P. O. Box 918, 100049 Beijing
R. P. China
Tel: 0086-0188235977-603
Email: [email protected]
- Replies:
- RE: how to add a variable in asyn command Mark Rivers
- Navigate by Date:
- Prev:
RE: could it possible to get pv from another subnet? Mark S. Engbretson
- Next:
RE: how to add a variable in asyn command Mark Rivers
- 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: could it possible to get pv from another subnet? Hartman, Steven M.
- Next:
RE: how to add a variable in asyn command Mark Rivers
- 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