|
|
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](MATLAB_init) |
|
|
|
| get_data | Request data. | [Documentation](MATLAB_get_data_ex) |
|
|
|
| get_markers | Request markers | [Documentation](MATLAB_get_markers) |
|
|
|
| send_markers | Send new markers | [Documentation](MATLAB_send_markers) |
|
|
|
| send_message | Send a string message (for logging purpose) | [Documentation](MATLAB_send_message) |
|
|
|
| get_props | Get global settings related to the current file | [Documentation](MATLAB_get_props) |
|
|
|
| debug_connect | Activate debug/developer mode | [Documentation](MATLAB_debug) |
|
|
|
| run | run a plugin | [Documentation](MATLAB_run) |
|
|
|
|
|
|
# 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.
|
|
|
|
|
|
|
|
|
|