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 @@ -64,23 +64,23 @@ def init_piezo_stage(self):
6464 self .pi_device = GCSDevice ("E-710" ) # Creates a Controller instant
6565 self .pi_device .ConnectNIgpib (board = 0 ,device = 4 ) # Connect to GPIB board
6666 self .ui .status_textBrowser .setText ('Connected: {}' .format (self .pi_device .qIDN ().strip ()))
67- print ('connected: {}' .format (self .pi_device .qIDN ().strip ()))
67+ # print('connected: {}'.format(self.pi_device.qIDN().strip()))
6868
6969 self .axes = self .pi_device .axes [0 :2 ] # selecting x and y axis of the stage
7070
7171 self .pi_device .INI ()
7272 self .pi_device .REF (axes = self .axes )
7373
7474 self .pi_device .SVO (axes = self .axes , values = [True ,True ]) # Turn on servo control for both axes
75- self .ui .status_textBrowser .setText ("Current Stage Position:\n " + self .pi_device .qPOS (axes = self .axes ))
76- print (self .pi_device .qPOS (axes = self .axes ))
75+ self .ui .status_textBrowser .setText ("Current Stage Position:\n {}" . format ( self .pi_device .qPOS (axes = self .axes ) ))
76+ # print(self.pi_device.qPOS(axes=self.axes))
7777
7878 def center_piezo (self ):
7979 self .pi_device .MOV (axes = self .axes , values = [50 ,50 ])
8080 self .ui .status_textBrowser .setText ("Piezo Stage Centered: [50x,50y]" )
8181
8282 def current_piezo_stage_pos (self ):
83- self .ui .status_textBrowser .setText ("Current Stage Position:\n " + self .pi_device .qPOS (axes = self .axes ))
83+ self .ui .status_textBrowser .setText ("Current Stage Position:\n {}" . format ( self .pi_device .qPOS (axes = self .axes ) ))
8484
8585 def abs_mov (self ):
8686 x_abs_pos = self .ui .x_abs_doubleSpinBox .value ()
You can’t perform that action at this time.
0 commit comments