PROPixx Demo 5 -- Displaying Gabor patches at 480 Hz ============================================================== In this demo, we design a stimuli to run at 480 Hz on the PROPixx. To display at 480 Hz, we limit our resolution to 1/4 of the screen to display 4 times faster. Indeed, your stimulus needs to be created as follows: +-------------------+-------------------+ | Quadrant 1 | Quadrant 2 | +-------------------+-------------------+ | Quadrant 3 | Quadrant 4 | +-------------------+-------------------+ We simply generate a window of size (960, 540) and we move it to the right quadrant. In one frame, we animate the stimulus 4 times, once for each quadrant. We send a 120 Hz signal that has 4 frames of information, allowing us to display at 480 Hz. For 1440 Hz display, the technique is the same, but we use the colour information of each quadrant to create the equivalent of twelve frames in one. Frame 1 would be Quadrant 1 Red, frame 2 is Quadrant 2 Red, and on until green and then finally quadrant 1 to 4 blue. To set the PROPixx in a different mode, we use a sequencer, ``Datapixx('SetPropixxDlpSequenceProgram', 2);``, the 2 is for 480 Hz, 5 for 1440 Hz, 0 for normal display. In this demo we create a Gabors that we scale for every Gabors we want, then we move them randomly in the resolution. We animate the Gabors 4 times per frame to create the 480 Hz animation. We animate everything as in Quadrant 1 and move them to the respective quadrant. At the end of the script, we must put back the normal sequencer, ``Datapixx('SetPropixxDlpSequenceProgram', 0);``. .. literalinclude:: ../DatapixxToolbox/DatapixxDemos/DatapixxShowGabor.m :language: matlab :emphasize-lines: 23, 111-112, 130-131, 149-152, 192 :linenos: