This commit is contained in:
2021-04-28 09:29:19 +02:00
parent 84e20e54cc
commit a9f0de27e6
1030 changed files with 14567 additions and 227310 deletions

View File

@@ -3,6 +3,7 @@ import ch.psi.pshell.device.Register.RegisterArray as RegisterArray
camera = "SLG-LCAM-C102"
SPECTRUM_SIZE = 659
Y_ROI = (0,199)
class Scalar(RegisterBase):
def __init__(self, name):
@@ -38,12 +39,14 @@ add_device(Scalar("smin"), True)
add_device(Scalar("smax"), True)
a,b=[],[]
for i in range(SPECTRUM_SIZE):
a.append(i)
b.append(0)
sx.write(a)
sy.write(b)
#CAS.setServerPort(54321)
cas1 = CAS(camera + ":SPECTRUM_Y", sy, 'double')
cas6 = CAS(camera + ":SPECTRUM_X", sx, 'double')
cas2 = CAS(camera + ":SPECTRUM_CENTER", sc, 'double')
@@ -51,6 +54,9 @@ cas3 = CAS(camera + ":SPECTRUM_FWHM", sf, 'double')
cas4 = CAS(camera + ":SPC_ROI_YMIN", smin, 'double')
cas5 = CAS(camera + ":SPC_ROI_YMAX", smax, 'double')
caput(camera + ":SPC_ROI_YMIN", Y_ROI[0])
caput(camera + ":SPC_ROI_YMAX", Y_ROI[1])
print caget(camera + ":SPECTRUM_Y").tolist()
print caget(camera + ":SPECTRUM_X").tolist()