image demo
This commit is contained in:
5
iocBoot/iocimagedemo/Makefile
Normal file
5
iocBoot/iocimagedemo/Makefile
Normal file
@ -0,0 +1,5 @@
|
||||
TOP = ../..
|
||||
include $(TOP)/configure/CONFIG
|
||||
ARCH = linux-x86_64-debug
|
||||
TARGETS = envPaths
|
||||
include $(TOP)/configure/RULES.ioc
|
40
iocBoot/iocimagedemo/image.db
Normal file
40
iocBoot/iocimagedemo/image.db
Normal file
@ -0,0 +1,40 @@
|
||||
|
||||
|
||||
record(longout, "$(N):ArraySize0_RBV") {
|
||||
info(Q:group, {
|
||||
"$(N):Array":{
|
||||
"foo.dimension[0].size":{+channel:"VAL", +type:"existing"}
|
||||
}
|
||||
})
|
||||
field(FLNK, "$(N):ArraySize1_RBV")
|
||||
}
|
||||
|
||||
record(longout, "$(N):ArraySize1_RBV") {
|
||||
info(Q:group, {
|
||||
"$(N):Array":{
|
||||
"foo.dimension[1].size":{+channel:"VAL", +type:"existing"}
|
||||
}
|
||||
})
|
||||
field(FLNK, "$(N):ArrayData_")
|
||||
}
|
||||
|
||||
record(aSub, "$(N):ArrayData_") {
|
||||
field(SNAM, "QSRV_image_demo")
|
||||
field(FTA, "ULONG")
|
||||
field(FTB, "ULONG")
|
||||
field(FTVA, "USHORT")
|
||||
field(NOVA, "262144") # eg. 512x512
|
||||
field(INPA, "$(N):ArraySize0_RBV NPP MSI")
|
||||
field(INPB, "$(N):ArraySize1_RBV NPP MSI")
|
||||
field(OUTA, "$(N):ArrayData PP MSI")
|
||||
}
|
||||
|
||||
record(waveform, "$(N):ArrayData") {
|
||||
field(FTVL, "UCHAR")
|
||||
field(NELM, "256")
|
||||
info(Q:group, {
|
||||
"$(N):Array":{
|
||||
"foo":{+type:"NTNDArray", +channel:"VAL", +trigger:"*"}
|
||||
}
|
||||
})
|
||||
}
|
5
iocBoot/iocimagedemo/st.cmd
Executable file
5
iocBoot/iocimagedemo/st.cmd
Executable file
@ -0,0 +1,5 @@
|
||||
#!../../bin/linux-x86_64-debug/softIocPVA
|
||||
|
||||
dbLoadRecords("image.db","N=TST:image1")
|
||||
|
||||
iocInit()
|
@ -38,7 +38,7 @@ record(calc, "$(N)Phase:Q") {
|
||||
}
|
||||
|
||||
record(waveform, "$(N)I") {
|
||||
field(DTYP, "PDB Demo")
|
||||
field(DTYP, "QSRV Demo")
|
||||
field( INP, "$(N)Phase:I")
|
||||
field(FTVL, "DOUBLE")
|
||||
field(NELM, "500")
|
||||
@ -49,7 +49,7 @@ record(waveform, "$(N)I") {
|
||||
}
|
||||
|
||||
record(waveform, "$(N)Q") {
|
||||
field(DTYP, "PDB Demo")
|
||||
field(DTYP, "QSRV Demo")
|
||||
field( INP, "$(N)Phase:Q")
|
||||
field(FTVL, "DOUBLE")
|
||||
field(NELM, "500")
|
||||
|
Reference in New Issue
Block a user