Skip to main content
Skip table of contents

Record and use a digital input log

When you are ready to view the next video, you can either continue from your current file or open IntroRPx_DinLog.m. This is an intermediary file that contains placeholder comments that identify where you will write the next few blocs of code. This file can allow you to follow along with the video more easily.

Once the script is modified and waits for a RESPONSEPixx button press, the white square will remain onscreen long enough to be perceived.

If you are unfamiliar with counting in binary or in hexadecimal, you can use online converters (e.g.,https://codebeautify.org/decimal-binary-converter ) to convert between decimal and binary or hexadecimal. MATLAB uses bin2dec()and dec2bin(), as well as hex2dec() and dec2bin() to do these conversions. 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.