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):
6565 self .pi_device = GCSDevice ("E-710" ) # Creates a Controller instant
6666 self .pi_device .ConnectNIgpib (board = 0 ,device = 4 ) # Connect to GPIB board
6767 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()))
6969
7070 self .axes = self .pi_device .axes [0 :2 ] # selecting x and y axis of the stage
7171
7272 self .pi_device .INI ()
7373 self .pi_device .REF (axes = self .axes )
7474
7575 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))
7878
7979 def center_piezo (self ):
8080 self .pi_device .MOV (axes = self .axes , values = [50 ,50 ])
8181 self .ui .status_textBrowser .setText ("Piezo Stage Centered: [50x,50y]" )
8282
8383 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 ) ))
8585
8686 def abs_mov (self ):
8787 x_abs_pos = self .ui .x_abs_doubleSpinBox .value ()
You can’t perform that action at this time.
0 commit comments