minor changes
This commit is contained in:
@@ -46,6 +46,15 @@ Port 22 on PowerBrick is the ssh server port
|
||||
Port 2332 on PowerBrick is the gather port of gather_server
|
||||
|
||||
PPMAC=SAR-CPPM-EXPMX1
|
||||
|
||||
rsync -vai ~/Documents/prj/SwissFEL/PBTools/pbtools/gather/gather_server root@$PPMAC:/tmp/
|
||||
ssh root@$PPMAC
|
||||
LD_LIBRARY_PATH=/opt/ppmac/libppmac/ /tmp/gather_server
|
||||
|
||||
|
||||
|
||||
rsync -vai ~/Documents/prj/SwissFEL/PBTools/pbtools/gather/gather_server root@$PPMAC:/tmp
|
||||
|
||||
ssh -L 10001:localhost:22 root@$PPMAC 'uname -a'
|
||||
ssh -L 10002:localhost:2332 root@$PPMAC 'uname -a'
|
||||
-> this tunnels port 22 and 2332 of $PPMAC to 10001 and 10002 of localhost
|
||||
@@ -635,11 +644,11 @@ class ShapePath(MotionBase):
|
||||
self.ptsCorr=ptsCorr
|
||||
print(ptsCorr)
|
||||
|
||||
def setup_gather(self,acq_per=1):
|
||||
def setup_gather(self,acq_per=None):
|
||||
'''
|
||||
setup the channels to gather
|
||||
kwargs:
|
||||
acq_per : acquire period: acquire data all acq_per servo loops (default=1)
|
||||
acq_per : acquire period: acquire data all acq_per servo loops (default=None->calc best, =1-> fastest)
|
||||
'''
|
||||
if self.comm is None: return
|
||||
comm=self.comm
|
||||
@@ -650,8 +659,12 @@ class ShapePath(MotionBase):
|
||||
else:
|
||||
address=("Motor[1].ActPos","Motor[2].ActPos","Motor[1].DesPos","Motor[2].DesPos","Gate3[1].Chan[1].UserFlag")
|
||||
|
||||
gt.set_address(*address)
|
||||
gtMaxLn=gt.set_address(*address)
|
||||
if acq_per is None:
|
||||
ovhdTime=100
|
||||
acq_per=int(np.ceil((self.meta['pt2pt_time']*self.points.shape[0]+ovhdTime)/(gtMaxLn*self.meta['srv_per'])))
|
||||
gt.set_property(MaxSamples=1000000, Period=acq_per)
|
||||
#gt.set_property(Period=acq_per)
|
||||
self.meta.update({'acq_per':acq_per,'address':address})
|
||||
|
||||
def setup_coord_trf(self):
|
||||
@@ -896,7 +909,9 @@ if __name__=='__main__':
|
||||
#sp.gen_spiral_points(rStart=100,rInc=10,numSeg=4,numCir=60, ofs=(0, 0))
|
||||
#sp.gen_spiral_points(rStart=100,rInc=130,numSeg=4,numCir=2, ofs=(0, 0))
|
||||
#sp.gen_grid_points(w=20,h=20,pitch=100,rnd=0,ofs=(0,+2000));sp.sort_points(False);
|
||||
sp.gen_grid_points(w=5,h=10,pitch=100,rnd=0,ofs=(0,+2000));sp.sort_points(False,10);
|
||||
#sp.gen_grid_points(w=5,h=10,pitch=100,rnd=0,ofs=(0,+2000));sp.sort_points(False,10);
|
||||
sp.gen_grid_points(w=125,h=125,pitch=3,rnd=0,ofs=(0,+2000));sp.sort_points(False,125); sp.meta['pt2pt_time']=5
|
||||
|
||||
#sp.gen_grid_points(w=1,h=10,pitch=100,rnd=0,ofs=(0,0))
|
||||
#sp.gen_spiral_points(rStart=100,rInc=20,numSeg=8,numCir=32, ofs=(0, 0))
|
||||
#sp.gen_spiral_points(rStart=100,rInc=10,numSeg=2,numCir=32, phase=45, ofs=(0, 0))
|
||||
|
||||
Reference in New Issue
Block a user