You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Record a timestamped chronological log of trial types and rewards into a CSV file using a [`BehaviorSubject`].
267
+
268
+
### Exercise 8: Conditioned place preference
269
+
270
+
Implement the following trial structure for conditioned place preference. `enter` and `leave` events should be triggered in real-time from the camera, by tracking an object moving in or out of a region of interest (ROI). `Reward` should be triggered once upon entering the ROI, and not repeat again until the object exits the ROI and the ITI has elapsed.
271
+
272
+
```mermaid
273
+
stateDiagram-v2
274
+
direction LR
275
+
ITI --> Ready: elapsed
276
+
Ready --> Reward: enter
277
+
Reward --> ITI: leave
278
+
```
279
+
280
+
> [!Tip]
281
+
> There are several ways to implement ROI activation, so feel free to explore different ideas. Consider using either [`Crop`], [`RoiActivity`], or [`ContainsPoint`] as part of different strategies to implement the `enter` and `leave` events.
0 commit comments