image demo

This commit is contained in:
Michael Davidsaver
2017-09-19 16:05:37 -05:00
parent 0e4ba7eceb
commit 1ea57ef799
8 changed files with 111 additions and 3 deletions

View File

@ -0,0 +1,5 @@
TOP = ../..
include $(TOP)/configure/CONFIG
ARCH = linux-x86_64-debug
TARGETS = envPaths
include $(TOP)/configure/RULES.ioc

View 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
View File

@ -0,0 +1,5 @@
#!../../bin/linux-x86_64-debug/softIocPVA
dbLoadRecords("image.db","N=TST:image1")
iocInit()

View File

@ -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")