12.07.2015 Views

spec - Local Sector 7 web page

spec - Local Sector 7 web page

spec - Local Sector 7 web page

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

def Pheader ’printf("\n Setpoint = %g (%g C)\n", TEMP_SP,DEGC_SP)’def Fheader ’_cols++;printf("#X %gKohm (%gC)\n",TEMP_SP,DEGC_SP)’def Plabel ’sprintf("%7.7s %7.7s ","T-set","T-degC")’def Pout ’sprintf("%7.5g %7.5g ",TEMP_SP,DEGC)’def Flabel ’"DegC "’def Fout ’sprintf("%g ",DEGC)’The Pheader and Fheader macros must print newline-terminated lines. More thanone line is permitted, however. Besides adding scan header information to the datafile, Fheader also adjusts the value of the global variable _cols ,which is used toindicate the number of data columns in the data file. In the example shown, the Flabeland Fout definitions add one column to the data file, so _cols is incremented byone. The Plabel and Pout macros add columns to the printer (and screen) output.The columns in Flabel should be separated by double spaces (the data file convention).The columns in the other headers should be separated by single spaces. Ineach case, the spaces come after the label.The Ftail macro is available for adding scan results to the data file at the conclusionof a scan. By default Ftail is defined as nothing,def Ftail ’’ # File tailYoumight define it to bedef Ftail ’printf("#R %d %g %g %g %g %g %g\n", \SCAN_N, pl_xMAX, pl_MAX, pl_FWHM, pl_CWHM, pl_COM, pl_SUM);’where the values being printed are from the pl_anal() function described on <strong>page</strong>##. The #R characters begin the data file control line for scan results.Tempera tureControl Macrostesettempmeasuretempshowtempteramp# Read or set the temperature# Set the temperature# Measure the temperature# Show temperature parameters# Ramp the temperatureMethods for handling temperature control and other experimental parameters arelikely to vary greatly from lab to lab and experiment to experiment. Youmay be ableto modify these standard macros to suit your <strong>spec</strong>ific needs.The temperature control model assumed by these macros uses two independentinstruments: one instrument to control the temperature and one instrument to measurethe temperature. The following global variables are used by the macros:INTERIM WORK-IN-PROGRESS (8/16/01) NOT FOR GENERAL DISTRIBUTION STANDARD MACRO GUIDE 149

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!