POC for each interface type

This commit is contained in:
2025-10-29 12:07:02 +01:00
parent 6a86b79533
commit b810509156
8 changed files with 555 additions and 0 deletions

9
scripts/ioc.sh Executable file
View File

@@ -0,0 +1,9 @@
#!/bin/bash
export EPICS_HOST_ARCH=linux-x86_64
export EPICS_BASE=/usr/local/epics/base-7.0.7
PARENT_PATH="$( cd "$(dirname "${BASH_SOURCE[0]}")" ; pwd -P )"
# /usr/local/bin/procServ -o -L - -f -i ^D^C 20001 "${PARENT_PATH}/st.cmd" -d
${PARENT_PATH}/st.cmd

16
scripts/st.cmd Executable file
View File

@@ -0,0 +1,16 @@
#!/usr/local/bin/iocsh
#-d
on error break
require StreamGenerator, test
epicsEnvSet("INSTR", "SQ:TEST:")
epicsEnvSet("NAME", "SG")
drvAsynIPPortConfigure("ASYN_IP_PORT", "127.0.0.1:9071:9073 UDP", 0, 0, 0)
asynStreamGenerator("ASYN_SG", "ASYN_IP_PORT", 4)
dbLoadRecords("$(StreamGenerator_DB)channels.db", "INSTR=$(INSTR), NAME=$(NAME), PORT=ASYN_SG, CHANNEL=0")
iocInit()