def update(self, data):
        """Update the DMD with a new frame.

        Args:
        ----
            data: A 4096-byte raw string.

        """
        if len(data) == 4096:
            self.platform.run_proc_cmd_no_wait("_dmd_send", data)
        else:
            self.machine.log.warning("Received DMD frame of length %s instead"
                                     "of 4096. Discarding...", len(data))