... | ... | @@ -24,3 +24,38 @@ In this case, ID becomes **0100**. |
|
|
|
|
|
---
|
|
|
4. Create EPICS DB file
|
|
|
There are two types of the record.
|
|
|
The PCI ID is put on the **INP** field with channel number.
|
|
|
**record(longin, "ET_WR8:TDC:CH0:LI") {
|
|
|
field(DTYP, "WR TDC STAMP")
|
|
|
field(SCAN, "I/O Intr")
|
|
|
field(INP, "@IF=0100,CH=0")
|
|
|
field(TSE, "-2")
|
|
|
}
|
|
|
record(waveform, "ET_WR8:TDC:CH0:WF") {
|
|
|
field(DTYP, "WR TDC STAMP")
|
|
|
field(SCAN, "I/O Intr")
|
|
|
field(INP, "@IF=0100,CH=0")
|
|
|
field(NELM, "3")
|
|
|
field(FTVL, "ULONG")
|
|
|
field(TSE, "-2")
|
|
|
field(MPST, "Always")
|
|
|
}**
|
|
|
|
|
|
---
|
|
|
5. Build IOC with the **make** command at the TOP directory.
|
|
|
|
|
|
---
|
|
|
6. Edit the start-up script
|
|
|
**$ vi iocBoot/iocxxx/st.cmd**
|
|
|
Add **wrtdcOpen()** before **dbLoadRecords()**
|
|
|
**dbLoadDatabase "dbd/testWrtdc.dbd"
|
|
|
testWrtdc_registerRecordDeviceDriver pdbbase
|
|
|
wrtdcOpen(0100)** <- add
|
|
|
|
|
|
---
|
|
|
7. Execute
|
|
|
**$ cd iocBoot/iocxxx
|
|
|
$ sudo -E ./st.cmd**
|
|
|
|
|
|
--- |