Warning Message Displayed at Start
rhjpires
I have finally begun writing some scripts for batch data analysis and fitting - thanks to the help of many people here!!
For one of the functions I have written, I would like for a warning message window to be displayed BEFORE prompting the user for parameters. So a simple dialog box with an OK button is what I need. I checked and tried DoAlert and Popup but could not put it up running.
Anyone with suggestions?
Many Thanks,
R.
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
April 18, 2015 at 07:59 pm - Permalink
Many thanks for comments and suggestions!
R.
"Batch Line Fit", DoBatchLineFit()
End
Function DoBatchLineFit()
String prefix
DoAlert /T="ATTENTION" 0, "Make sure your data has been converted to waveform"
Variable Vstart
Variable Vend
// Prompt user for parameters for fit (waves prefix and fit range)
Prompt prefix, "Enter the prefix of waves to analyze"
Prompt Vstart, "Enter LEFT limit of fit range"
Prompt Vend, "Enter RIGHT limit of fit range"
DoPrompt "PARAMETERS FOR BATCH FITTING", prefix, Vstart, Vend
//In case of aborting
if (V_Flag)
Abort "Exiting Analysis"
endif
//rest of code...
END
April 19, 2015 at 01:01 am - Permalink
"Batch Line Fit", DoBatchLineFit()
End
Function DoBatchLineFit()
DoAlert /T="ATTENTION" 0, "Make sure your data has been converted to waveform"
// Prompt user for parameters for fit (waves prefix and fit range)
Variable Vstart
Variable Vend
String prefix
Prompt prefix, "Enter the prefix of waves to analyze"
Prompt Vstart, "Enter LEFT limit of fit range"
Prompt Vend, "Enter RIGHT limit of fit range"
DoPrompt "PARAMETERS FOR BATCH FITTING", prefix, Vstart, Vend
//In case of aborting
if (V_Flag)
Abort "Exiting Analysis"
endif
//rest of code...
END
--Jim Prouty
Software Engineer, WaveMetrics, Inc.
April 19, 2015 at 07:53 am - Permalink
April 19, 2015 at 08:13 am - Permalink