Analog I/O Demo 5 -- Synchronizing with the digital to analog converter ================================================================================== For this demo to work, you need to send/display your visual stimuli on the device. Since it uses Pixel Synchronization, if your device does not get a video signal, synchronization will be impossible. .. Note:: You can only use ADC/DAC with the full version of a device; the lite version does not have ADC/DAC capabilities. A great feature is displayed in this demo: the ability to read back the first line of pixel from the video signal. This is done using ``Datapixx('GetVideoLine', 1);``, where the 1 is a number from 1 to 1920, which represents pixels for which you want the RGB information for. This demo also shows the different possible ways of updating a device. This can be done instantly: ``Datapixx('RegWrRd');``, On the next video frame: ``Datapixx('RegWrVideoSync');``, or on a specific series of pixels defined by the user: ``Datapixx('RegWrPixelSync`, pixelColor);``. .. literalinclude:: ../DatapixxToolbox/DatapixxDemos/DatapixxDacSyncDemo.m :language: matlab :emphasize-lines: 48, 75, 76, 78 :linenos: