File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
PythonGUI_apps/OceanOptics_acquire Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -65,23 +65,23 @@ def init_piezo_stage(self):
65
65
self .pi_device = GCSDevice ("E-710" ) # Creates a Controller instant
66
66
self .pi_device .ConnectNIgpib (board = 0 ,device = 4 ) # Connect to GPIB board
67
67
self .ui .status_textBrowser .setText ('Connected: {}' .format (self .pi_device .qIDN ().strip ()))
68
- print ('connected: {}' .format (self .pi_device .qIDN ().strip ()))
68
+ # print('connected: {}'.format(self.pi_device.qIDN().strip()))
69
69
70
70
self .axes = self .pi_device .axes [0 :2 ] # selecting x and y axis of the stage
71
71
72
72
self .pi_device .INI ()
73
73
self .pi_device .REF (axes = self .axes )
74
74
75
75
self .pi_device .SVO (axes = self .axes , values = [True ,True ]) # Turn on servo control for both axes
76
- self .ui .status_textBrowser .setText ("Current Stage Position:\n " + self .pi_device .qPOS (axes = self .axes ))
77
- print (self .pi_device .qPOS (axes = self .axes ))
76
+ self .ui .status_textBrowser .setText ("Current Stage Position:\n {}" . format ( self .pi_device .qPOS (axes = self .axes ) ))
77
+ # print(self.pi_device.qPOS(axes=self.axes))
78
78
79
79
def center_piezo (self ):
80
80
self .pi_device .MOV (axes = self .axes , values = [50 ,50 ])
81
81
self .ui .status_textBrowser .setText ("Piezo Stage Centered: [50x,50y]" )
82
82
83
83
def current_piezo_stage_pos (self ):
84
- self .ui .status_textBrowser .setText ("Current Stage Position:\n " + self .pi_device .qPOS (axes = self .axes ))
84
+ self .ui .status_textBrowser .setText ("Current Stage Position:\n {}" . format ( self .pi_device .qPOS (axes = self .axes ) ))
85
85
86
86
def abs_mov (self ):
87
87
x_abs_pos = self .ui .x_abs_doubleSpinBox .value ()
You can’t perform that action at this time.
0 commit comments