Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
quadEM.cmd 1.84 KiB

# BEGIN quadEM.cmd ------------------------------------------------------------

# initQuadEM(quadEMName, baseAddress, fiberChannel, microSecondsPerScan,
#            maxClients, unidigName, unidigChan)
#  quadEMName  = name of quadEM object created
#  baseAddress = base address of VME card
#  channel     = 0-3, fiber channel number
#  microSecondsPerScan = microseconds to integrate.  When used with ipUnidig
#                interrupts the unit is also read at this rate.
#  unidigName  = name of ipInidig server if it is used for interrupts.
#                Set to 0 if there is no IP-Unidig being used, in which
#                case the quadEM will be read at 60Hz.
#  unidigChan  = IP-Unidig channel connected to quadEM pulse output
initQuadEM("quadEM1", 0xf000, 0, 1000, "Unidig1", 2)
# Use the following if an IpUnidig is not being used for interrupts
# It will use 60Hz system clock instead
#initQuadEM("quadEM1", 0xf000, 0, 1000, 0, 0)

# initFastSweep(portName, inputName, maxSignals, maxPoints)
#  portName = asyn port name for this new port (string)
#  inputName = name of asynPort providing data
#  maxSignals  = maximum number of signals (spectra)
#  maxPoints  = maximum number of channels per spectrum
initFastSweep("quadEMSweep", "quadEM1", 10, 2048)

# Database for ai records that give average readings of current, positions, etc.
dbLoadRecords("$(QUADEM)/quadEMApp/Db/quadEM.db", "P=xxx:, EM=EM1, CARD=0, PORT=quadEM1")

# Database for FastSweep (mca records), i.e. quadEM digital scope
dbLoadRecords("$(QUADEM)/quadEMApp/Db/quadEM_med.db", "P=xxx:quadEM:,NCHAN=2048,PORT=quadEMSweep")
dbLoadRecords("$(QUADEM)/quadEMApp/Db/quadEM_med_FFT.db", "P=xxx:quadEM_FFT:,NCHAN=1024")

# Database for fast feedback using quadEM and dac128V
dbLoadTemplate("quadEM_pid.substitutions")

# END quadEM.cmd --------------------------------------------------------------