# macros for Scientific Instruments temperature controller # # hp 04.02.2000 # hp 20.07.2000 modified to work together with hp_gpib.mac # # If you are using this macro make sure hp_gpib.mac was loaded first! # # It may also be usefull to look into hp_lakeshore340.mac for more # modern macros (temperature measurement during counting, writing more # than one temperature into files, ...). This macro is intended as the # simplest definitions for using a temperature controller. In general this # temperature controller is outdated and should not be used! # # global GPIB_SI_controller # GPIB_SI_controller = 15 # GPIB address GPIB_sleep[0][GPIB_SI_controller] = 0.25 # time to wait after put and get operation GPIB_eol_character[GPIB_SI_controller] = 13 # gives the character which is send after each put command # # # ################################################################################ # # measuretemp # hp 09.02.2000 # hp 20.07.2000 # # measuretemp for Scientific Instruments temperature controller # ################################################################################ # def measuretemp ' hp_gpib_get GPIB_SI_controller TEMP_CS = substr(GPIB_val,2) ' # # # # ################################################################################ # # _settemp # hp 09.02.2000 # hp 20.07.2000 # # _settemp for Scientific Instruments temperature controller # ################################################################################ # def _settemp ' hp_gpib_put GPIB_SI_controller sprintf("S%5.1f",_1) hp_gpib_put GPIB_SI_controller sprintf("t") # # hp_gpib_put GPIB_SI_controller t # would also work but only if t is not defined as a variable, also # hp_gpib_put GPIB_SI_controller "t" # does not work, unfortunately "t" does not make any difference for spec. ' # # # #