Hi,
we are using a setup with 4 nose ports for a behavioral experiment and want to control it via MATLAB. MATLAB generates a random sequence of 3 target ports, and we use the Bpod console to mimic the rat’s behavior. The code and setup work fine in general.
However, we would like to get live feedback in MATLAB showing:
a) which ports the rat is supposed to poke in each trial, and
b) which ports are actually poked, as the trials progress.
We noticed that this kind of live feedback (e.g., using disp or fprintf) only works when we run the program directly from MATLAB, not from the Bpod console. But when running it from MATLAB, we suddenly don’t get any output for the actual poked ports—only the target ports (a) are recorded, while (b) is an empty table.
When we run the program from the Bpod console, both a) and b) are saved correctly at the end, but we cannot display the trial progress live in MATLAB.
It seems like the Bpod is not sending feedback about the poked ports back to MATLAB when started via MATLAB.
Do you have any idea how we can fix this, ideally with minimal effort?
Thanks in advance!