Skip to content
Snippets Groups Projects
Commit 836b51e3 authored by Jean-François Denis's avatar Jean-François Denis
Browse files

Create the wavefom for the intensity graph

parent bc148e20
No related branches found
No related tags found
No related merge requests found
## COMPRESS SCALARE VALUE
record(compress, "$(DEVICE):BUFF-$(SIGNAL)-COMP") {
field(NSAM, "$(NELM_COMP)")
field(ALG,"Circular Buffer")
field(INP,"$(DEVICE):$(SIGNAL)-COMP CPP")
}
## Reset buffer
record(bo,$(DEVICE):BUFF-$(SIGNAL)-COMP-RES){
field(DOL,"$(MTRREC) CPP")
field(OUT,"$(DEVICE):BUFF-$(SIGNAL)-COMP.RES PP")
}
## WAVEFORM FINAL
record(waveform, "$(DEVICE):BUFF-$(SIGNAL2)") {
field(FTVL, "FLOAT")
field(NELM, "$(NELM)")
}
####################################################################
########################## CREATE THE ANGLE WAVEFORM ###############
####################################################################
## Function that compute the coefficient between MRAD and VOLTAGE
record(aSub, "$(DEVICE):BUFF-$(SIGNAL)-FUNC") {
######### INPUTS #########
## Waveform data
field(FTA, "FLOAT")
field(NOA,$(NELM_COMP))
field(INPA, "$(DEVICE):BUFF-$(SIGNAL)-COMP")
## Waveform data reentrance
field(FTB, "FLOAT")
field(NOB,$(NELM))
field(INPB,"$(DEVICE):BUFF-$(SIGNAL2)")
## Motor position // process the record after each position
field(FTC, "LONG")
field(NOC,1)
field(INPC,"$(DEVICE):$(SCAN_SLIT)-NORD_POS CPP")
## Nb angle total
field(FTD, "LONG")
field(NOD, "1")
field(INPD, "$(DEVICE):$(SCAN_EF).NPTS")
## Nb position total
field(FTE, "LONG")
field(NOE, "1")
field(INPE, "$(DEVICE):$(SCAN_SLIT).NPTS")
######### OUTPUTS #########
## ANGLE Waveform converted in MRAD (to save)
field(FTVA, "FLOAT")
field(NOVA, "$(NELM)")
field(OUTA, "$(DEVICE):BUFF-$(SIGNAL2) PP")
######### FUNCTION #######
field(SNAM, "CREATE_TAB")
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment