[][src]Function libeyelink_sys::eyelink_timed_command

pub unsafe extern "C" fn eyelink_timed_command(
    msec: UINT32,
    text: *mut c_char
) -> INT16

@ingroup messaging Sends a command to the connected eye tracker, wait for reply.

@remarks If \c eyelink_send_command() is used, the text command will be executed, and a result code returned that can be read with \c eyelink_command_result(). @param text String command to send. @param msec Maximum milliseconds to wait for reply. @return OK_RESULT (0) if OK.\n \c NO_REPLY if timed out.\n \c LINK_TERMINATED_RESULT if cannot send.\n other error codes represent tracker execution error.\n

\b Example:

\code

#include 

INT16 error;
char buf[256];

error = eyelink_timed_command(1000, "button_function 5
'accept_target_fixation'");

if (error)
{
eyelink_last_message(buf);
eyemsg_printf("Error in excuting the command: %s", buf);
}
\endcode

\sa \c eyelink_command_result() and \c eyelink_send_command()