Event codes simulation

Hi Francois,

Thank you for your help last time. I managed to install Brainstorm.
I'm wondering if it would be possible to plot an average of power spectrum between two event codes that happen multiple times during trials. I mean, using only the event codes as a reference without specifying any time. Is it possible to do it using Brainstorm without any script? I didn't find it on the tutorials.

Also, do you know if there is any tool to simulate/test approximately how the event codes from my task will come out on the recording machine channels? On my current MEG project, I'm using presentation(neurobehavioral systems) for a visual task.

Thank you!

I'm wondering if it would be possible to plot an average of power spectrum between two event codes that happen multiple times during trials. I mean, using only the event codes as a reference without specifying any time. Is it possible to do it using Brainstorm without any script?

To compute a power spectrum, you need to specify some input data, and therefore you need to define a time window around each of your event of interest. In Brainstorm, the simplest would be be to import some epochs around your events of interest (as in the introduction tutorials), then compute the PSD/FFT of each of them and average the results for a more stable estimate.

Also, do you know if there is any tool to simulate/test approximately how the event codes from my task will come out on the recording machine channels?

I think the only way is to test it in real experimental conditions.
This tutorial gives a few examples for measuring delays between the stimulation and the recording of the stimuation:
https://neuroimage.usc.edu/brainstorm/Tutorials/StimDelays