Sign inSign up

dchabot/simioc

By dchabot

Updated almost 10 years ago

This IOC provides PVs to interact with 6 motors and point-detectors, as well as an areaDetector.

Image
1

10K+

dchabot/simioc repository overview

Overview

This image provides an EPICS IOC for interaction. This IOC provides PVs (process variables) to interact with 6 independent motors, an areadetector camera producing 1024x1024 images, and 6 point-detectors. These point-sensors yield scalar values whose amplitude depends on the position of an associated simulated motor, with peak values produced at the motor positions indicated in the table below.

The pv names and descriptions are here:

PV NameDescription
sim:mtr1Motor Record 1
sim:mtr2Motor Record 2
sim:mtr3Motor Record 3
sim:mtr4Motor Record 4
sim:mtr5Motor Record 5
sim:mtr6Motor Record 6
--------------
sim:dev1:currscalar sensor 1; linked to 'sim:mtr1'; peak value at 1.5
sim:dev2:currscalar sensor 2; linked to 'sim:mtr2'; peak value at 0.5
sim:dev3:currscalar sensor 3; linked to 'sim:mtr3'; peak value at -0.5
sim:dev4:currscalar sensor 4; linked to 'sim:mtr4'; peak value at -1.5
sim:dev5:currscalar sensor 5; linked to 'sim:mtr5'; peak value at -2.5
sim:dev6:currscalar sensor 6; linked to 'sim:mtr6'; peak value at -1.0
--------------
sim:det:areaDetector pv prefix; available plugins include 'image1:', 'cam1:', 'Stats1-5', etc
--------------
sim:fake:mtr-spsetpoint of motor-like device; writes do not cause motion
sim:fake:mtr-iposition readback of motor-like device
sim:fake:mtr:go-cmdif a new setpoint was entered, writing a '1' to this pv causes motion
sim:fake:mtr:stop-cmdwriting '1' to this pv will terminate in-progress motion
sim:fake:mtr:moving-stsreports state, "Moving" (0) or "Done" (1)

Docker Image

A Docker image is available:

docker pull dchabot/simioc
docker run -d dchabot/simioc
Host Environment

To be enable host-access to the process variables published by the IOC, a couple of EPICS environment variables are required to be set:

export EPICS_CA_AUTO_ADDR_LIST=NO
export EPICS_CA_ADDR_LIST=172.17.255.255  # use `ifconfig`, or similar, to examine the host-container network configuration

Access to the IOC shell (iocsh) is available via procServ, on port 2048 of the docker image:

docker ps -a  # locate the name or ID of the simioc image
docker exec -it <image ID> bash  # launch a bash shell attached to the running image

root@<image ID> telnet localhost 2048  # enter the IOC shell

Tag summary

Content type

Image

Digest

Size

468.8 MB

Last updated

almost 10 years ago

docker pull dchabot/simioc