Hi,
According to
http://www.aps.anl.gov/epics/base/R3-14/12-docs/CAref.html#Configurin2,
you can set EPICS_CAS_SERVER_PORT
# on the server side
$ export EPICS_CAS_SERVER_PORT=5078
$ python dummy.py
# on the client side
$ export EPICS_CA_SERVER_PORT=5078
$ caget MTEST:RAND
MTEST:RAND 0.000 (SEVR:INVALID STAT:UDF)
But if the same driver is instantiated for many devices, you can create
the database with different prefixes.
if __name__ == '__main__':
...
prefix = sys.argv[1]
server.createPV(prefix, pvdb)
...
Then to run the server for each device
$ python dummy MTEST1:
$ python dummy MTEST2:
Best
Xiaoqiang
On 08/28/2016 02:45 AM, geyang wrote:
> hi,
>
> I would like to ask if SimpleServer's port can be changed to others
> in code, such as 5066/5068? For example, I have a device driver written
> by pcaspy, I want to implement the same driver for many same type
> devices on one machine, then I need to set them different server ports.
> thanks a lot for your help.
>
>
> Best wishes
> Geyang 2016/8/28
>
>
>