catman®Professional: How to execute an Auto Command List at the stop of a periodic measurement?
The Measurement Wizard understands within the periodic measurement the stop button as a termination of the measurement and does not execute the sequences of the Auto Command List.
The Measurement Wizard understands within the periodic measurement the stop button as a termination of the measurement and does not execute the sequences of the Auto Command List.
A small modification will change that and the stop button will be understood as “early stop” and not “terminate”. The following modification works with catman® Professional 5.0 and 4.5.
- Open the script editor and load the workspace “measwiz.scp“ (which can be found in the subfolder “catmod“ of your catman® installation).
- Open the sub program “PeriodicMeasurement“ (screenshot).
- In the section “User aborts in period“ at line 416 (version 5.0) resp. 410 (version 4.5) replace the command “EXIT“ with following command lines (refer to the screenshot):
- Disable the command “EXIT“ by putting a “rem“ in front of it
- gEvent = 0
- BREAK - Activate the modifications by the function “create executable file”, which can be found in the menu „Compiler“.
- Save and close the script editor.
Hint:
In the subfolder „Backup“ you will find a copy of the Measurement Wizard. Copy all files with the name “measwiz“ into the folder “catmod“ to restore the original installation.
Background:
The command EXIT terminates the period (quits the complete SUB „PeriodicMeasurement“) and does not execute further lines in the SUB. The command BREAK does only quit the DO....LOOP loop of the
measurement. The line “gEvent=0“ resets the stop button.



