The core of a MATLAB plugin is the main function (located in main.m file).
This function is called by AnyWave once the plugin context is initialized.
anywave() main matlab function
Every requests to anywave should be done using the anywave() function.
The command parameter
The fist parameter to anywave function must be a string containing the command to process.
Here are the current supported commands:
command | description | Documentation |
---|---|---|
init | must be called first! | How to use init |
get_data | Request data. | Documentation |
get_markers | Request markers | Documentation |
send_markers | Send new markers | Documentation |
send_message | Send a string message (for logging purpose) | Documentation |
get_props | Get global settings related to the current file | Documentation |
debug_connect | Activate debug/developer mode | Documentation |
run | run a plugin | Documentation |
Global settings for the plugin
Once you called anywave('init', varargin) or anywave('debug_connect', port); a structure is returned containing all parameters currently in use in AnyWave's context.