Open stumpychloe opened 1 month ago
The first task of this issue is to determine where in the state matrix is it determined which PWM will be turned on.
In the file state_matrix the definition add_state is responsible deciding what action will occur based of the data. For stimulus delivery I manual imputed the LED port under output_actions ex: PWM8. When this was done LED 8 was light up instead of one of the original three ports.
When the deliver_stimlus is printed it spits out DIV STIM = [('PWM1', 0.0), ('PWM3', 64.0)]", '']
The port number is calculated by This calculation makes the left port 1, center 2, and right 3. to change the calculations the ports_lmr_air value will have to change. Currently its set at 123568 when I changed it to 678000 it cant run and spits out the error.
['stderr', '2024-05-16 12:21:49.822370', '', 'Not enough liquid calibration measurements exist for valve 6. Bpod needs at least 3 measurements.', '', '']
This error occurs only for the reward valve which isn't needed for the second experiment. So I think if I disable the valve for the second experiment it could run in the other ports.
by updating the no_stimulus section so that the left and right ports are coordinated to ports 6 and 8. When the experiment is conducted ports 6 and 8 reflect whats happening to the left and right ports in the first experiment but only the LEDs light up.
To implement the center port for when the experiment type is no stimulus I wrote this code.
My next goal is to make a option in the GUI task parameters for there to not be a second experiment type.
I went in and changed the experiment type to a new name of no_light and implemented into GUI additionally I changed the experiment type no stimulus back to its formal function. A small bug I found was that when the no-light experiment is taking place the center port does not stay lit up for the first choice compare to in the first experiment.
Goals:
It seems that the data from the no_light experiment is stored the same as the other experiments. Additionally I made it so that when the no_light experiment is primary it will run through the first three ports. I still need to fix the timing of the center port when no_light is the secondary experiment.
Background:
Currently the protocol only one experiment is taking place in the first three ports of the board with light stimulus and rewards.
Goal:
Mirror the same experiment but on the last three ports of the board. The change in the second experiment is that there will only be a stimulus displayed with no reward. Additionally the two experiments will run simultaneous when checked off in the parameters window.