コード例 #1
0
print "Create RAW scalar objects: 'ca81sr','ca82sr','ca83sr','ca84sr','ca85sr','ca86sr','ca87sr','ca88sr'"

#Patch Panel TOPAS use the same scaler preset/trigger signal from the same scaler card
pvPatchPanelScalerTP='BL06I-EA-8512-01:PRESET';
pvPatchPanelScalerCNT='BL06I-EA-8512-01:STARTCOUNT';

#For Patch Panel TOPAS
#Use the scaler Raw count
pvCA81CRAW = 'BL06I-EA-HIRES-01:SC1-RAW';
pvCA82CRAW = 'BL06I-EA-HIRES-01:SC2-RAW';
pvCA83CRAW = 'BL06I-EA-HIRES-01:SC3-RAW';
pvCA84CRAW = 'BL06I-EA-HIRES-01:SC4-RAW';
pvCA85CRAW = 'BL06I-EA-HIRES-01:SC5-RAW';
pvCA86CRAW = 'BL06I-EA-HIRES-01:SC6-RAW';
pvCA87CRAW = 'BL06I-EA-HIRES-01:SC7-RAW';
pvCA88CRAW = 'BL06I-EA-HIRES-01:SC8-RAW';

ca81sr = Scaler8512ChannelEpicsDeviceClass('ca81sr',pvPatchPanelScalerTP, pvPatchPanelScalerCNT, pvCA81CRAW);
ca82sr = Scaler8512ChannelEpicsDeviceClass('ca82sr',pvPatchPanelScalerTP, pvPatchPanelScalerCNT, pvCA82CRAW);
ca83sr = Scaler8512ChannelEpicsDeviceClass('ca83sr',pvPatchPanelScalerTP, pvPatchPanelScalerCNT, pvCA83CRAW);
ca84sr = Scaler8512ChannelEpicsDeviceClass('ca84sr',pvPatchPanelScalerTP, pvPatchPanelScalerCNT, pvCA84CRAW);
ca85sr = Scaler8512ChannelEpicsDeviceClass('ca85sr',pvPatchPanelScalerTP, pvPatchPanelScalerCNT, pvCA85CRAW);
ca86sr = Scaler8512ChannelEpicsDeviceClass('ca86sr',pvPatchPanelScalerTP, pvPatchPanelScalerCNT, pvCA86CRAW);
ca87sr = Scaler8512ChannelEpicsDeviceClass('ca87sr',pvPatchPanelScalerTP, pvPatchPanelScalerCNT, pvCA87CRAW);
ca88sr = Scaler8512ChannelEpicsDeviceClass('ca88sr',pvPatchPanelScalerTP, pvPatchPanelScalerCNT, pvCA88CRAW);

topas_scaler=[ca81sr,ca82sr,ca83sr,ca84sr,ca85sr,ca86sr,ca87sr,ca88sr]

#acqtime = DetectorIntegrationsDevice('acqtime', [ca81sr]);
#acqtime.addDetectors([ca81sr]);
コード例 #2
0
from Diamond.PseudoDevices.Scaler8512Device import Scaler8512ChannelEpicsDeviceClass

print "-" * 100
print "Set up the Patch Panel U1 scaler card"
print "Create RAW scalar objects: 'ca51sr','ca52sr','ca53sr','ca54sr'"
#Patch Panel U1 use the same scaler preset/trigger signal from the same scaler card
pvPatchPanelScalerTP = 'BL06I-DI-8512-03:PRESET'
pvPatchPanelScalerCNT = 'BL06I-DI-8512-03:STARTCOUNT'

#For Patch Panel U1
#Use the scaler Raw count
pvCA51CRAW = 'BL06I-EA-USER-01:SC1-RAW'
pvCA52CRAW = 'BL06I-EA-USER-01:SC2-RAW'
pvCA53CRAW = 'BL06I-EA-USER-01:SC3-RAW'
pvCA54CRAW = 'BL06I-EA-USER-01:SC4-RAW'

ca51sr = Scaler8512ChannelEpicsDeviceClass('ca51sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA51CRAW)
ca52sr = Scaler8512ChannelEpicsDeviceClass('ca52sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA52CRAW)
ca53sr = Scaler8512ChannelEpicsDeviceClass('ca53sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA53CRAW)
ca54sr = Scaler8512ChannelEpicsDeviceClass('ca54sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA54CRAW)

scalar3 = [ca51sr, ca52sr, ca53sr, ca54sr]

#acqtime = DetectorIntegrationsDevice('acqtime', [ca51sr]);
#acqtime.addDetectors([ca51sr]);
コード例 #3
0
pvIntegrationTime = 'BL06I-DI-ADC-01:SC:INTTIME'
pvTrigger = 'BL06I-DI-ADC-01:SC:STARTCOUNT'

pvCA91V = 'BL06I-DI-LDGN-01:I'
pvCA92V = 'BL06I-DI-LDGN-02:I'
pvCA93V = 'BL06I-OP-SM-01:I'
pvCA94V = 'BL06I-OP-SM-02:I'

pvCA101V = 'BL06I-DI-PHDGN-02:I:B'
pvCA102V = 'BL06I-OP-FCMIR-01:I:B'
pvCA103V = 'BL06I-DI-PHDGN-03:I:B'
pvCA104V = 'BL06I-DI-IONC-01:I:B'

#Use the ADC Voltage reading
ca91s = Scaler8512ChannelEpicsDeviceClass('ca91s', pvIntegrationTime,
                                          pvTrigger, pvCA91V)
ca92s = Scaler8512ChannelEpicsDeviceClass('ca92s', pvIntegrationTime,
                                          pvTrigger, pvCA92V)
ca93s = Scaler8512ChannelEpicsDeviceClass('ca93s', pvIntegrationTime,
                                          pvTrigger, pvCA93V)
ca94s = Scaler8512ChannelEpicsDeviceClass('ca94s', pvIntegrationTime,
                                          pvTrigger, pvCA94V)

ca101s = Scaler8512ChannelEpicsDeviceClass('ca101s', pvIntegrationTime,
                                           pvTrigger, pvCA101V)
ca102s = Scaler8512ChannelEpicsDeviceClass('ca102s', pvIntegrationTime,
                                           pvTrigger, pvCA102V)
ca103s = Scaler8512ChannelEpicsDeviceClass('ca103s', pvIntegrationTime,
                                           pvTrigger, pvCA103V)
ca104s = Scaler8512ChannelEpicsDeviceClass('ca104s', pvIntegrationTime,
                                           pvTrigger, pvCA104V)
コード例 #4
0
pvIntegrationTime = 'BL06I-DI-ADC-02:SC:INTTIME'
pvTrigger = 'BL06I-DI-ADC-02:SC:STARTCOUNT'

pvCA111V = 'BL06I-AL-SLITS-04:I1'
pvCA112V = 'BL06I-AL-SLITS-04:I2'
pvCA113V = 'BL06J-AL-SLITS-01:I1'
pvCA114V = 'BL06J-AL-SLITS-01:I2'

pvCA121V = 'BL06I-OP-SWMIR-01:I:B'
pvCA122V = 'BL06J-DI-PHDGN-01:I'
pvCA123V = 'BL06J-DI-IONC-01:I'
pvCA124V = 'BL06J-DI-PHDGN-02:I'

#Use the ADC Voltage reading
ca111s = Scaler8512ChannelEpicsDeviceClass('ca111s', pvIntegrationTime,
                                           pvTrigger, pvCA111V)
ca112s = Scaler8512ChannelEpicsDeviceClass('ca112s', pvIntegrationTime,
                                           pvTrigger, pvCA112V)
ca113s = Scaler8512ChannelEpicsDeviceClass('ca113s', pvIntegrationTime,
                                           pvTrigger, pvCA113V)
ca114s = Scaler8512ChannelEpicsDeviceClass('ca114s', pvIntegrationTime,
                                           pvTrigger, pvCA114V)

ca121s = Scaler8512ChannelEpicsDeviceClass('ca121s', pvIntegrationTime,
                                           pvTrigger, pvCA121V)
ca122s = Scaler8512ChannelEpicsDeviceClass('ca122s', pvIntegrationTime,
                                           pvTrigger, pvCA122V)
ca123s = Scaler8512ChannelEpicsDeviceClass('ca123s', pvIntegrationTime,
                                           pvTrigger, pvCA123V)
ca124s = Scaler8512ChannelEpicsDeviceClass('ca124s', pvIntegrationTime,
                                           pvTrigger, pvCA124V)
コード例 #5
0
pvCA22C = 'BL06I-DI-IAMP-02:I2C'
pvCA23C = 'BL06I-DI-IAMP-02:I3C'
pvCA24C = 'BL06I-DI-IAMP-02:I4C'

pvCA31C = 'BL06I-DI-IAMP-03:I1C'
pvCA32C = 'BL06I-DI-IAMP-03:I2C'
pvCA33C = 'BL06I-DI-IAMP-03:I3C'
pvCA34C = 'BL06I-DI-IAMP-03:I4C'

pvCA41C = 'BL06I-DI-IAMP-04:I1C'
pvCA42C = 'BL06I-DI-IAMP-04:I2C'
pvCA43C = 'BL06I-DI-IAMP-04:I3C'
pvCA44C = 'BL06I-DI-IAMP-04:I4C'

#Use the scaler "scaled" count
ca11s = Scaler8512ChannelEpicsDeviceClass('ca11s', pvScalerTP, pvScalerCNT,
                                          pvCA11C)
ca12s = Scaler8512ChannelEpicsDeviceClass('ca12s', pvScalerTP, pvScalerCNT,
                                          pvCA12C)
ca13s = Scaler8512ChannelEpicsDeviceClass('ca13s', pvScalerTP, pvScalerCNT,
                                          pvCA13C)
ca14s = Scaler8512ChannelEpicsDeviceClass('ca14s', pvScalerTP, pvScalerCNT,
                                          pvCA14C)

ca21s = Scaler8512ChannelEpicsDeviceClass('ca21s', pvScalerTP, pvScalerCNT,
                                          pvCA21C)
ca22s = Scaler8512ChannelEpicsDeviceClass('ca22s', pvScalerTP, pvScalerCNT,
                                          pvCA22C)
ca23s = Scaler8512ChannelEpicsDeviceClass('ca23s', pvScalerTP, pvScalerCNT,
                                          pvCA23C)
ca24s = Scaler8512ChannelEpicsDeviceClass('ca24s', pvScalerTP, pvScalerCNT,
                                          pvCA24C)
コード例 #6
0
#from Diamond.PseudoDevices.Scaler8512DirectPV import ScalerChannelEpicsPVClass;
from Diamond.PseudoDevices.Scaler8512Device import Scaler8512ChannelEpicsDeviceClass
from Diamond.PseudoDevices.Scaler8512Device import DetectorIntegrationsDevice

#Both Patch Panel U1 and U2 use the same scaler preset/trigger signal from the same scaler card
pvPatchPanelScalerTP = 'BL06I-EA-USER-03:SCALER:PRESET'
pvPatchPanelScalerCNT = 'BL06I-EA-USER-03:SCALER:STARTCOUNT'

#For Mobilerack Scaler card
#Use the scaler Raw count
pvCA71CRAW = 'BL06I-EA-USER-03:SC1-RAW'
pvCA72CRAW = 'BL06I-EA-USER-03:SC2-RAW'
pvCA73CRAW = 'BL06I-EA-USER-03:SC3-RAW'
pvCA74CRAW = 'BL06I-EA-USER-03:SC4-RAW'

ca71sr = Scaler8512ChannelEpicsDeviceClass('ca71sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA71CRAW)
ca72sr = Scaler8512ChannelEpicsDeviceClass('ca72sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA72CRAW)
ca73sr = Scaler8512ChannelEpicsDeviceClass('ca73sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA73CRAW)
ca74sr = Scaler8512ChannelEpicsDeviceClass('ca74sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA74CRAW)
コード例 #7
0
#Patch Panel U2 use the same scaler preset/trigger signal from the same scaler card
pvPatchPanelScalerTP = 'BL06I-DI-8512-02:PRESET'
pvPatchPanelScalerCNT = 'BL06I-DI-8512-02:STARTCOUNT'

#For Patch Panel U2
#Use the scaler Raw count
pvCA61CRAW = 'BL06J-EA-USER-01:SC1-RAW'
pvCA62CRAW = 'BL06J-EA-USER-01:SC2-RAW'
pvCA63CRAW = 'BL06J-EA-USER-01:SC3-RAW'
pvCA64CRAW = 'BL06J-EA-USER-01:SC4-RAW'
pvCA65CRAW = 'BL06J-EA-USER-01:SC5-RAW'
pvCA66CRAW = 'BL06J-EA-USER-01:SC6-RAW'
pvCA67CRAW = 'BL06J-EA-USER-01:SC7-RAW'
pvCA68CRAW = 'BL06J-EA-USER-01:SC8-RAW'

ca61sr = Scaler8512ChannelEpicsDeviceClass('ca61sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA61CRAW)
ca62sr = Scaler8512ChannelEpicsDeviceClass('ca62sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA62CRAW)
ca63sr = Scaler8512ChannelEpicsDeviceClass('ca63sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA63CRAW)
ca64sr = Scaler8512ChannelEpicsDeviceClass('ca64sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA64CRAW)
ca65sr = Scaler8512ChannelEpicsDeviceClass('ca65sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA65CRAW)
ca66sr = Scaler8512ChannelEpicsDeviceClass('ca66sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA66CRAW)
ca67sr = Scaler8512ChannelEpicsDeviceClass('ca67sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA67CRAW)
ca68sr = Scaler8512ChannelEpicsDeviceClass('ca68sr', pvPatchPanelScalerTP,
                                           pvPatchPanelScalerCNT, pvCA68CRAW)
コード例 #8
0
pvIntegrationTime = 'BL06I-DI-ADC-03:SC:INTTIME'
pvTrigger = 'BL06I-DI-ADC-03:SC:STARTCOUNT'

#Use the ADC Voltage reading
pvCA131V = 'BL06I-DI-ADC-03:CH1:I'
pvCA132V = 'BL06I-DI-ADC-03:CH2:I'
pvCA133V = 'BL06I-DI-ADC-03:CH3:I'
pvCA134V = 'BL06I-DI-ADC-03:CH4:I'

pvCA141V = 'BL06I-DI-ADC-03:CH5:I'
pvCA142V = 'BL06I-DI-ADC-03:CH6:I'
pvCA143V = 'BL06I-DI-ADC-03:CH7:I'
pvCA144V = 'BL06I-DI-ADC-03:CH8:I'

ca131s = Scaler8512ChannelEpicsDeviceClass('ca131s', pvIntegrationTime,
                                           pvTrigger, pvCA131V)
ca132s = Scaler8512ChannelEpicsDeviceClass('ca132s', pvIntegrationTime,
                                           pvTrigger, pvCA132V)
ca133s = Scaler8512ChannelEpicsDeviceClass('ca133s', pvIntegrationTime,
                                           pvTrigger, pvCA133V)
ca134s = Scaler8512ChannelEpicsDeviceClass('ca134s', pvIntegrationTime,
                                           pvTrigger, pvCA134V)

ca141s = Scaler8512ChannelEpicsDeviceClass('ca141s', pvIntegrationTime,
                                           pvTrigger, pvCA141V)
ca142s = Scaler8512ChannelEpicsDeviceClass('ca142s', pvIntegrationTime,
                                           pvTrigger, pvCA142V)
ca143s = Scaler8512ChannelEpicsDeviceClass('ca143s', pvIntegrationTime,
                                           pvTrigger, pvCA143V)
ca144s = Scaler8512ChannelEpicsDeviceClass('ca144s', pvIntegrationTime,
                                           pvTrigger, pvCA144V)