fixes: helicalcoord system, EVR
This commit is contained in:
@@ -756,7 +756,7 @@ class HelicalScan(MotionBase):
|
||||
gt=self.gather
|
||||
gt.set_phasemode(False)
|
||||
#gt.set_address("Motor[4].ActPos","Motor[5].ActPos","Motor[3].ActPos","Motor[1].ActPos")
|
||||
gt.set_address("Motor[4].ActPos","Motor[5].ActPos","Motor[3].ActPos","Motor[1].ActPos","Gate3[1].Chan[0].UserFlag")
|
||||
gt.set_address("Motor[4].ActPos","Motor[5].ActPos","Motor[3].ActPos","Motor[1].ActPos","Gate3[1].Chan[1].UserFlag")
|
||||
gt.set_property(MaxSamples=1000000, Period=acq_per)
|
||||
ServoPeriod= .2 #0.2ms #Sys.ServoPeriod is dependent of !common() macro
|
||||
#ServoPeriod=comm.gpascii.servo_period
|
||||
@@ -779,6 +779,8 @@ a
|
||||
#5->I
|
||||
#3->I
|
||||
#1->I
|
||||
Motor[4].MaxSpeed=8
|
||||
Motor[5].MaxSpeed=8
|
||||
'''
|
||||
pbParam=param.copy()
|
||||
sh=pbParam.shape
|
||||
@@ -789,7 +791,7 @@ a
|
||||
subsParam=dict(map(lambda k, i, v: (k + '_' + str(i), v), s * sh[0], c, pbParam.reshape(-1)))
|
||||
subsParam['d2r']=d2r/1000.
|
||||
subsParam['r2d']=1000./d2r
|
||||
subsParam['cmt']='' #'//'
|
||||
subsParam['cmt']='//'#''
|
||||
|
||||
|
||||
subs={'qCX':'L4', 'qCZ':'L5', 'qW':'L3', 'qFY':'L1',
|
||||
|
||||
@@ -631,6 +631,7 @@ if __name__=='__main__':
|
||||
#setup_sync(self, crdId=1, prgId=2, plcId=2, mode=0, **kwargs):
|
||||
#sp.setup_sync() #no sync at all
|
||||
#sp.setup_sync(mode=1) #sync with timing system (PROG)
|
||||
sp.setup_coord_trf() # reset to shape path system
|
||||
sp.setup_sync(mode=2) #sync with timing system and PLC to sync speed (PROG)
|
||||
|
||||
#sp.gen_grid_points(w=2,h=2,pitch=50,rnd=.2);sp.sort_points(xy);sp.setup_motion(fnPrg=fn+'.prg',mode=1,pt2pt_time=10,acq_per=1)
|
||||
|
||||
Reference in New Issue
Block a user