Create your own custom callback and subscribe it to the RunEngine. It should:
Upon starting a run, create a text file which saves the date and time, using the time from the document
Upon closing a run, calculating the total time of the run, then updating this text file with the total time, whether or not the experiment was a success, and the number of events which occured in this plan
Test this by making a plan which moves the omega motor 5 degrees, then waits for half a second, then moves by 5 degrees again. It should repeat this 20 times. You will need to include yield from statements to open your run and close your run in order for the callbacks to be triggered.
Create your own custom callback and subscribe it to the RunEngine. It should:
Test this by making a plan which moves the omega motor 5 degrees, then waits for half a second, then moves by 5 degrees again. It should repeat this 20 times. You will need to include yield from statements to open your run and close your run in order for the callbacks to be triggered.