Skip to content

Commit 34a7367

Browse files
authored
add explanation of default handling to ICP Config
1 parent 03fc786 commit 34a7367

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

doc/iocs/tools/icpconfig.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
# ICP Config
22

33
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:
4+
* Default macro values defined in the ioc's config.xml
45
* The current configuration
56
* `\Instrument\Settings\globals.txt` - See [here](../testing/Running-IOCs)
67
* `\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`.
78

8-
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.
9+
Macros are loaded in the order above, such that default values are overwridden 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.
910

10-
![](loading_macros.png)
11+
![](loading_macros.png)

0 commit comments

Comments
 (0)