Skip to content
Snippets Groups Projects
Commit ba0c4abe authored by rivers's avatar rivers
Browse files

New file for APS quad electrometer

parent 5c43ce86
No related branches found
No related tags found
No related merge requests found
# 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")
file "$(STD)/stdApp/Db/fast_pid_control.db"
{
pattern
{P, PID, INPUT, ICHAN, OUTPUT, OCHAN, LOPR, HOPR, DRVL, DRVH, PREC, KP, KI, KD, DT, SCAN}
{xxx:, quadEMVertical, quadEM1, 8, DAC1, 2, -32767, 32767, 0, 4095, 3, .02, 100., 0., .001, ".1 second"}
{xxx:, quadEMHorizontal, quadEM1, 9, DAC1, 3, -32767, 32767, 2048, 3072, 3, .02, 100., 0., .001, ".1 second"}
}
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