Chapter 4: Reuse device and database configurations
Follow the lessons in order; keep the application source for later exercises.
- Move device configuration into an iocshLoad fragment.
- Run independently configured request/reply simulators.
- Configure three device connections in one IOC.
- Stream 32 temperature channels from one simulator.
- Load records directly, at build time, or with substitutions.
- Explain the startup sequence and linked libraries.
- Read the Base initialization sequence.
- Locate each complete runnable example.
Chapter exercises
- Copy the Chapter 3
st.cmdtost_break.cmd. MoveiocInit()immediately beforedbLoadRecords, start it, and inspect the startup error. Restore the original order and confirm normal communication. - In lesson 4.5, configure two TC32 simulators and verify all 64 PVs.
- Explain which macros are resolved at build time and which remain for startup. Generating a flat database changes where expansion happens; it does not establish a measured startup-time advantage.
Before moving on
-
jeonglee_Demo/retainsiocsh/training_device.iocsh,simulator/advanced_connection_handler.sh, andsimulator/tc32_emulator.bashfor Chapters 5 and 6. -
jeonglee_Demo/db/TC-32.dbis rebuilt from restored sources sohead -n 7 db/TC-32.dbshows$(P)$(R)CH01and$(PORT). - Every
jeonglee_DemoIOC is stopped withexitand every simulator is stopped with Ctrl+C. -
ss -ltn 'sport = :9399 or sport = :9400 or sport = :9401'reports no active TCP listeners.