Triggering multiple recorder blocks at different times based on IO channels. #31
-
Hi, this is a cool project! I'm new to crappy and have an experiment where I want to start recording data from two separate digitizers at different times based on specific data channels. Is this possible or do all recording blocks need to run for the whole experiment? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi, thank you for your interest in Crappy ! It's always nice to find out we have users in various locations. Currently, the Recorder Blocks start acquiring data as soon as the experiment begins and only stop when the experiment ends. May I ask you why you want to start and stop recording data during the experiment ? Weis |
Beta Was this translation helpful? Give feedback.
-
Hi @magnus-haw !
Then, the link between your data source and Recorder block can be done with Hope this helps ! |
Beta Was this translation helpful? Give feedback.
Hi @magnus-haw !
Recording data on a specific condition seems to be the perfect job for modifiers. You can use a modifier to alter or drop the data going through a link.
For the example you described (only recording when a given value is above a threshold) you can use a simple function as a modifier like this :
Then, the link between your data source and Recorder block can be done with
crappy.link(data_source, recorder_block, modifier=only_above_0)
Hope this helps !
Victor