scenario lifecycle
Posted: Tue May 24, 2022 3:35 pm
Hi forum,
I'm trying to record a signal stream together with some stimulations into a Generic stream writer, and automatically append a specific stimulation at the end of the file when I stop the scenario, to be able to trigger the training of a Matrix classifier when reading the recorded file in a second scenario.
I'm receiving my stimulations from a python box, so I've been trying to append my specific stimulation from the box's uninitialize method, just before I send the OVStimulationEnd, but it doesn't seem to be written into the file.
The online doc for initialize, process, and uninitialize methods says "dummy method", which doesn't help much to understand when they are exactly called in the scenario lifecycle, but I was guessing that it should work because of the OVStimulationEnd being sent from there.
The Player Controller Box doesn't seem to be a useful alternative to address this case.
Is there some other box I've been missing, or is there no way to achieve this ?
It is not a big problem because I could send the specific ending stimulation from the same place I send the other ones, but it would help me in the process of iteratively testing my setup.
Thanks in advance,
Joseph
I'm trying to record a signal stream together with some stimulations into a Generic stream writer, and automatically append a specific stimulation at the end of the file when I stop the scenario, to be able to trigger the training of a Matrix classifier when reading the recorded file in a second scenario.
I'm receiving my stimulations from a python box, so I've been trying to append my specific stimulation from the box's uninitialize method, just before I send the OVStimulationEnd, but it doesn't seem to be written into the file.
The online doc for initialize, process, and uninitialize methods says "dummy method", which doesn't help much to understand when they are exactly called in the scenario lifecycle, but I was guessing that it should work because of the OVStimulationEnd being sent from there.
The Player Controller Box doesn't seem to be a useful alternative to address this case.
Is there some other box I've been missing, or is there no way to achieve this ?
It is not a big problem because I could send the specific ending stimulation from the same place I send the other ones, but it would help me in the process of iteratively testing my setup.
Thanks in advance,
Joseph