Skip to content

Commit c68990f

Browse files
committed
Fix some problems
1 parent 1a0e1e0 commit c68990f

File tree

1 file changed

+7
-7
lines changed
  • iocs/merlinIOC/iocBoot/iocMerlin

1 file changed

+7
-7
lines changed

iocs/merlinIOC/iocBoot/iocMerlin/st.cmd

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ epicsEnvSet("CBUFFS", "500")
2424
epicsEnvSet("EPICS_DB_INCLUDE_PATH", "$(ADCORE)/db")
2525

2626
# The name of the drvAsynIPPort for commands
27-
epicsEnvSet("COMMAND_PORT", "ML_CMD")
27+
epicsEnvSet("COMMAND_PORT", "$(PORT)cmd")
2828
# The name of the drvAsynIPPort for data
29-
epicsEnvSet("DATA_PORT", "ML_DATA")
29+
epicsEnvSet("DATA_PORT", "$(PORT)data")
3030
# The IP address of the Merlin Labview system
3131
epicsEnvSet("MERLIN_IP", "164.54.160.214")
3232
# The IP port for the command socket
@@ -39,11 +39,11 @@ epicsEnvSet("MODEL", "3") #0=Merlin, 1=MedipixXBPM, 2=UomXBPM, 3=MerlinQuad
3939
epicsEnvSet("EPICS_DB_INCLUDE_PATH", "$(ADCORE)/db")
4040

4141

42-
drvAsynIPPortConfigure(LVCommand, $(MERLIN_IP):$(COMMAND_IPPORT), 0, 0, 0)
43-
asynOctetSetOutputEos(LVCommand, 0, "\n")
44-
asynOctetSetInputEos(LVCommand, 0, "\n")
42+
drvAsynIPPortConfigure($(COMMAND_PORT), $(MERLIN_IP):$(COMMAND_IPPORT), 0, 0, 0)
43+
asynOctetSetOutputEos($(COMMAND_PORT), 0, "\n")
44+
asynOctetSetInputEos($(COMMAND_PORT), 0, "\n")
4545

46-
drvAsynIPPortConfigure(LVData, $(MERLIN_IP):$(DATA_IPPORT), 0, 0, 0)
46+
drvAsynIPPortConfigure($(DATA_PORT), $(MERLIN_IP):$(DATA_IPPORT), 0, 0, 0)
4747

4848
# medipixDetectorConfig(
4949
# portName, # The name of the asyn port to be created
@@ -69,7 +69,7 @@ asynSetTraceIOMask("$(PORT)",0,2)
6969

7070
dbLoadRecords("$(ADMERLIN)/db/medipix.template","P=$(PREFIX),R=cam1:,PORT=$(PORT),ADDR=0,TIMEOUT=1")
7171

72-
# Create a standard arrays plugin, set it to get data from first Prosilica driver.
72+
# Create a standard arrays plugin, set it to get data from Merlin driver.
7373
NDStdArraysConfigure("Image1", 5, 0, "$(PORT)", 0, 0)
7474

7575
dbLoadRecords("$(ADCORE)/db/NDStdArrays.template", "P=$(PREFIX),R=image1:,PORT=Image1,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PORT),TYPE=Int16,FTVL=SHORT,NELEMENTS=262144")

0 commit comments

Comments
 (0)