Event handler function, specified as a function handle. You can use the
example event handling function windEventHandler
to
process real-time WDS events. Or, you can define a custom event handler
function to process events of your choice.
The event handler function windEventHandler
creates the
variable winddata
in the MATLAB workspace. The windEventHandler
function
returns winddata
as a timetable that contains real-time
WDS data. If an error occurs, the function returns
winddata
as a table that contains an error code. For
troubleshooting, contact Wind Information Co., Ltd.
The winddata
timetable contains rows for each real-time
WDS event with the time. The first variable in this timetable is the
specified securities in the s
input argument. The
remaining variables are the specified fields in the f
input argument.
To access the code of the function, enter edit
windEventHandler
at the command line.
To define a custom event handler function:
Choose the WDS events to process, monitor, or evaluate.
Decide how the custom event handler processes these
events.
Determine the input and output arguments for the custom event
handler function.
Write the code for the custom event handler function. For
details, see Create Functions in Files.
After defining the function, you can run it by passing the name of the
function as a function handle. For details about function handles, see Create Function Handle.
Example: @(varargin)windEventHandler(varargin)
Data Types: function_handle