@@ -17,33 +17,39 @@ PVs on the live machine.
1717
1818Run the virtac under the development EPICS port::
1919
20- $ export EPICS_CA_SERVER_PORT=6064
21- $ export EPICS_CAS_SERVER_PORT=6064
22- $ export EPICS_CA_REPEATER_PORT=6065
23- $ # at Diamond the above can be set in one go using: . changeports 6064
24- $ pipenv run virtac
20+ :::{code-block} bash
21+ $ export EPICS_CA_SERVER_PORT=6064
22+ $ export EPICS_CAS_SERVER_PORT=6064
23+ $ export EPICS_CA_REPEATER_PORT=6065
24+ $ # at Diamond the above can be set in one go using: . changeports 6064
25+ $ pipenv run virtac
26+ :::
2527
2628It takes 10 seconds or so to load the interactive console::
2729
28- Starting record creation.
29- ~*~*Woah, we're halfway there, Wo-oah...*~*~
30- Finished creating all 2981 records.
31- Starting iocInit
32- ############################################################################
33- ## EPICS 7.0.6.0
34- ## Rev. 7.0.6.99.1.0
35- ############################################################################
36- iocRun: All initialization complete
37- Python 3.7.2 (default, Jan 20 2020, 11:03:41)
38- [GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
39- Type "help", "copyright", "credits" or "license" for more information.
40- (InteractiveConsole)
41- >>>
30+ :::{code-block} bash
31+ Starting record creation.
32+ ~ * ~ * Woah, were halfway there, Wo-oah...* ~ * ~
33+ Finished creating all 2981 records.
34+ Starting iocInit
35+ ############################################################################
36+ ## EPICS 7.0.6.0
37+ ## Rev. 7.0.6.99.1.0
38+ ############################################################################
39+ iocRun: All initialization complete
40+ Python 3.7.2 (default, Jan 20 2020, 11:03:41)
41+ [ GCC 4.8.5 20150623 (Red Hat 4.8.5-39)] on linux
42+ Type "help", "copyright", "credits" or "license" for more information.
43+ (InteractiveConsole)
44+ >>>
45+ :::
4246
4347Leave the server running and in a new terminal update the EPICS port::
4448
45- $ export EPICS_CA_SERVER_PORT=6064
46- $ # or: . changeports 6064
49+ :::{code-block} bash
50+ $ export EPICS_CA_SERVER_PORT=6064
51+ $ # or: . changeports 6064
52+ :::
4753
4854In this new terminal you are then free to address the simulator as you would
4955the live machine, either through Pytac or by directly accessing the PVs.
@@ -93,11 +99,15 @@ This is done inside the server console, in the terminal where one you ran
9399
94100 For example disabling SOFB on the first BPM::
95101
96- >>> server.set_feedback_record(3, 'enabled', 0)
102+ :::{code-block} bash
103+ >>> server.set_feedback_record(3, 'enabled', 0)
104+ :::
97105
98106 or reducing the beam current::
99107
100- >>> server.set_feedback_record(0, 'beam_current', 280)
108+ :::{code-block} bash
109+ >>> server.set_feedback_record(0, 'beam_current', 280)
110+ :::
101111
102112For further information on working with feedback systems, please refer to
103113`` FEEDBACK_SYSTEMS.rst `` .
@@ -116,7 +126,9 @@ If none of these is set then the virtual accelerator will default to 'I04'.
116126
117127For example::
118128
119- $ pipenv run virtac I04
120- $ export RINGMODE=I04
121- $ caput SR-CS-RING-01:MODE 3
122- $ # Having none of these set would also start in mode 'I04'.
129+ :::{code-block} bash
130+ $ pipenv run virtac I04
131+ $ export RINGMODE=I04
132+ $ caput SR-CS-RING-01: MODE 3
133+ $ # Having none of these set would also start in mode 'I04'.
134+ :::
0 commit comments