Hi.
I remember that I found the Simulation stuff was not always updated to
the last status of the motor record.
For me, the following st.cmd.unix works:
# The is the ASYN example for communication to 4 simulated motors
# "#!" marks lines that can be uncommented.
< envPaths
dbLoadDatabase("$(TOP)/dbd/motorSim.dbd")
motorSim_registerRecordDeviceDriver(pdbbase)
dbLoadTemplate("motor.substitutions")
# Create simulated motors: ( start card , start axis , low limit, high
limit, home posn, # cards, # axes to setup)
motorSimCreate( 0, 0, -32000, 32000, 0, 1, 4 )
# Setup the Asyn layer (portname, low-level driver drvet name, card,
number of axes on card)
drvAsynMotorConfigure("motorSim1", "motorSim", 0, 4)
iocInit
I call it (from within the .../iocBoot/iocSim directory) as
../../bin/linux-x86/motorSim st.cmd.unix
In the MotorExApp, you have to uncomment the lines adding the Simulation
Support in the Makefile:
WithAsyn_LIBS += motorSimSupport
WithAsynVx_LIBS += motorSimSupport
uncomment the Simulation Support in WithAsynInclude.dbd and
WithAsynVxInclude.dbd:
include "motorSimSupport.dbd"
In the top level Makefile I'm sure you already have uncommented
DIRS += motorExApp iocBoot
iocBoot_DEPEND_DIRS = motorExApp
Contact me if that doesn't do the trick.
Hope this helps,
Ralph
On Wed 17 Mar 2010 22:55:46 汪启胜 wrote:
>
> hi, folks. When i run the simulated motor in
> synApps/Motor/iocBoot/iocSim, i can not find the file MPF.dbd. I
> already compiled the synApps/motor/motorApp/MotorSimSrc.
>
> Please tell me how to use the simulated motor when there are no
> hardware. Thanks
>
>
> ===================================================
> Wang Qisheng
> No.239 Zhangheng Road
> PuDong District
> Shanghai Institute of Applied Physics CAS
> Shanghai, China
> Tel: +86-21-33933256 Fax: +86-21-33933031
>
- References:
- what is the withMPF.dbd? 汪启胜
- Navigate by Date:
- Prev:
Re: Tektronic Scope DPO7254 over VXI-11 crashes IOC Benjamin Franksen
- Next:
javaIOC: EPICS PVData Input/Output Controller : how to get Aditya Mandal
- 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: what is the withMPF.dbd? Mark Rivers
- Next:
A Qt widget toolkit for EPICS, KWT 1.0 released. Sulhee Baek
- 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
|