EmulatorMode
If the Bpod software can not connect to a Bpod device, it can be run in Emulator mode.
In emulator mode, a software state machine on the computer takes the place of the Bpod device.
State matrices can be sent and run, and events returned without changing protocol code.
The Bpod console shows the state of the device, and accepts manual inputs. Simply click port sensor, BNC and wire override buttons.
The computer clock is used for timers and event timestamps. Thus, timing is far less precise than for measurements obtained with the Bpod device.
The PsychToolboxSoundServer plugin detects when Bpod is in emulator mode, and plays sounds through the computer's default sound card.
In emulator mode, sounds are played with the MATLAB sound function. Performance and availability varies by platform.
Emulator mode can be forced when hardware is connected, by running Bpod('EMU')
To exit emulator mode, ensure that the Bpod device is plugged in and restart Bpod.
Currently, only the state machine's onboard channels are supported. If your protocol depends on Bpod modules or other external hardware, you will have to run your protocol with the hardware present.