
(example below assumes an oscilloscope)
Some parts of your program may need parts of the introduction that will be used in all sections, e.g., setting global variables (model name, number of channels, bandwidth, etc.).
I would put the standard notifications and variable declarations at the beginning, outside of any section. Then, put your self-test, compensation, and anything else that records results into their own section(s).
Depending on how much time elapses between partial cals, you could put the self-test and compensation in the main, outside of a section, assign the test response to a variable, and then only use the value in the intro section. That way, you will ensure the unit is functioning properly and is compensated, but only record the results once.
Hope that helps,
Freddie Lochner
ConRes Metrology
1 comment