Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions doc/iocs/tools/icpconfig.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
# ICP Config

ICP config is a set of C functions that are called by every IOC on startup to define the macros used within the IOC. The code for this is [here](https://github.com/ISISComputingGroup/EPICS-icpconfig). Macros can come from the following:
* Default macro values defined in the ioc's config.xml
* The current configuration
* `\Instrument\Settings\globals.txt` - See [here](../testing/Running-IOCs)
* `\Instrument\var\tmp\test_macros.txt` - A file create by the IOC_test_framework to create macros for testing. Only used if the environment variables `TESTDEVSIM=yes` or `TESTRECSIM=yes`.

Macros are loaded in the order above, such that `globals.txt` will override macros in the configuration and test macros will override all others. See diagram below for an idea of how this works.
Macros are loaded in the order above, such that default values are overwritten if any other source is presented, `globals.txt` will override macros in the configuration and test macros will override all others. See diagram below for an idea of how this works.

![](loading_macros.png)
![](loading_macros.png)