! #############################################################################
!  Copyright (c) 2000  Bruker Advance X-ray Solutions, Inc. (Bruker AXS, Inc.)
!                      5465 E Cheryl Parkway
!                      Madison, WI 53711-5373  USA
! #############################################################################
!
! PEAKSTST -- Command file for testing PEAKS commands
!
! Following files must be accessible, in the test directory (SAXS$TEST:).
!
!   peakstst.slm (this file)        corundum.raw
!
! Turn on logging
logfile /on
!
! Load corundum trace to demo test
PEAKS /LOAD SAXS$TEST:corundum.raw /RANGE=1 /QUADRANT=0
WAIT 0.5
!
! Select two profiles for lineshape file
PEAKS /PROFILE /NEW profile.pro 24.500 24.700 26.700 27.000
WAIT 0.5
PEAKS /PROFILE /ADD profile.pro 50.400 50.900 54.000 54.500
WAIT 0.5
!
! Perform profile fitting
PEAKS /AUTO /PEAKSIG=1.6 /BKGDSIG=1.4 /FWHM=0.45 profile.pro /VERBOSE /GRAPH /FLAG=1 /ASPLIT=0.0 /RATIO=0.5 0.0 180.0
WAIT 0.5
!
! Save peaks to ASCII file
PEAKS /SAVE data.pks /APPEND
WAIT 0.5
!
! Clear function tests
PEAKS /CLEAR 0 /DATA_SAVE /TRACE_SAVE /PEAKS_SAVE /SCREEN_SAVE
WAIT 0.5
PEAKS /CLEAR 1 /DATA_SAVE /PEAKS_SAVE /SCREEN_SAVE
WAIT 0.5
PEAKS /CLEAR 2 /DATA_SAVE /PEAKS_SAVE /SCREEN_SAVE
WAIT 0.5
PEAKS /CLEAR 3 /DATA_SAVE /PEAKS_SAVE /SCREEN_SAVE
WAIT 0.5
PEAKS /CLEAR 4 /DATA_SAVE /PEAKS_SAVE /SCREEN_SAVE
WAIT 0.5
PEAKS /LOAD $data /RANGE=1 /QUADRANT=5
WAIT 0.5
PEAKS /LOAD $data /RANGE=1 /QUADRANT=3
WAIT 0.5
PEAKS /CLEAR 0
WAIT 0.5
