Skip to content

Instantly share code, notes, and snippets.

@keenanlang
Created October 21, 2022 16:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save keenanlang/e768774cbd0a367b96281939b8a2c9ba to your computer and use it in GitHub Desktop.
Save keenanlang/e768774cbd0a367b96281939b8a2c9ba to your computer and use it in GitHub Desktop.
Instructions to set up a basic simDetector IOC
Basic SimDetector
1.) Run mkioc
>/APSshare/bin/mkioc -n <ioc_name>
2.) Build new IOC
>cd <ioc_name>
>make
2.) Copy simDetector script out of examples
>cd iocBoot/ioc<ioc_name>
>cp examples/areaDetector.iocsh ./
3.) Edit st.cmd.Linux to add the script
Add "< areaDetector.iocsh" after "< common.iocsh"
4.) Edit settings.iocsh to increase EPICS_CA_MAX_ARRAY_BYTES
5.) Run the IOC
>cd <ioc_path>/iocBoot/ioc<ioc_name>
>../../bin/<arch>/<ioc_name> st.cmd.Linux
6.) In a separate terminal, run the UI
>cd <ioc_path>
>./start_caQtDM_<ioc_name>
7.) Navigate to the simDetector screen
Click "Detectors", then "simDetector", then "Simulator #1 Generic"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment