To use the Experiment Feedback tool, you need to edit the feedback script.
The main loop script run will only be triggered, when an observable that is used in the main loop script has changed. If the parameters within the loop script do not change, the script will not be executed.
These changes can be:
- A new image has been acquired
- The XYZ position has changed
- The status of a trigger port has been altered
- The settings for filter, objective, light source, etc. have changed
- The incubation parameters have changed
For advanced use cases it is possible to execute the script with the command RunLoopScript in conjunction with a timer.
- Select Acquisition tab > Experiment Feedback tool > Edit Feedback Script.
- The Script Editor for Experiment Feedback dialog opens. For more information, see Script Editor for Experiment Feedback Dialog.
- Create and edit the feedback script in the following sections: the PreLoop Script, the Loop Script and the PostLoop Script. To do so, use the commands on the Command tab. Add observables and actions to your experiment feedback script either via double-click or drag-and-drop. All observables and actions are also available via IntelliSense auto-completion starting with ZENService.
- If an image analysis is part of your feedback experiment, you can select an existing image analysis you previously created. Select Command tab > Available Observables section > Analysis drop-down menu.
- A list of the features that were defined in this image analysis setting, e.g. number of cells detected, is displayed. If you selected an image analysis setting and use one or more features in the feedback script, this image analysis setting is executed for each acquired image. Note that only features you have previously defined in the Image Analysis Wizard are available from within the Feedback Experiment. If you make any changes within the image analysis wizard to an existing *.czias file, you need to reload it in the feedback script editor to activate the changes in the feedback experiment.
- Click OK.
- The existing code is validated. You can only save and close the script editor if the code is free from syntax mistakes.
- The feedback script will be stored as part of the experiment file *.czexp.