Multiparameter Multichannel Analyzers / Questions and Answers
When using the logsums command we noticed that the logfile does not update until we exit out of the program or the logfile name is changed. Is there any way to get the sums to automatically be saved into a .txt file after we have replayed the data?
Maybe you could write a script for replaying your data. We use such scripts for testing MPA-3 devices and writing a logfile with test results. Here I list some commands that we use in our testing scripts, in part they are not documented:
; following commands are at the beginning of the script, in that order:
messagefile ADCtest.txt
; displays a Messagebox with informal text
; written in file ADCtest.txt
logprompt EN number
; Opens a dialogbox to enter any text
; with title "EN number" and writes
; title and text into the logfile
openlogprompt
; Opens a new logfile with the name entered
; in the logprompt dialog
logtime
; writes time and date into the logfile
logwrite !!!!!!!!!! external ADC test !!!!!!!!!!!
; writes that text into the logfile
; Now follow some commands doing some test measurements and so on, like:
loadcnf ADCtest.cnf
; load a test configuration
start
; starts a measurement
mpaname=adcporttest.mpa
savempa ; save test spectra
logsums ; write sums into logfile
mpaname=adcportref.mpa
submpa ; subtract reference spectra
mpaname=adcres.mpa
savempa ; save result
logsums ; write sums into logfile
;... doing more tests
; now finish:
closelog
; close logfile
beep
; make a sound
showlog
; opens logfile in notepad
exit
; exits MPA-3
There are also commands that use the "Fit Rois" capability of MPANT, like
FITROIS ; send a message to MPANT like clicking
; "Fit ROIs" in the MPANT menu, i.e.
; makes a single peak Gaussian fit for all ROIs
; in the active Display of MPANT and dumps
; the result into a logfile.
FITROIS SP_1 ; Similar to the fitroi command, but using the
; argument allows to specify which spectrum
; should be evaluated independently of
; which child window is activated in MPANT.
; SP_1 means ADC1 (=ADC1A)