Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

processEvent

Sample Bloomberg EMSX event handler

Syntax

processEvent(c)

Description

example

processEvent(c) displays and flushes the event queue associated with the Bloomberg® EMSX connection c. processEvent is a sample event handler function. You can build a custom event handler function to process Bloomberg EMSX events.

Examples

collapse all

Create the Bloomberg EMSX connection c.

 c = emsx('//blp/emapisvc_beta');

Use timer to continually process the Bloomberg EMSX event queue.

 t = timer('TimerFcn',{@c.eventhandler},'Period',1,...
           'ExecutionMode','fixedRate')

t is the MATLAB® timer object. For details, see timer.

Close the Bloomberg EMSX connection.

close(c)

Create the Bloomberg EMSX connection c.

 c = emsx('//blp/emapisvc_beta');

Use the default event handler function processEvent to process the Bloomberg EMSX event queue once.

processEvent(c)
SessionConnectionUp = {

    server = "localhost/127.0.0.1:8194"

}

SessionStarted = {

}

ServiceOpened = {

    serviceName = "//blp/emapisvc_beta"

}

processEvent clears the Bloomberg EMSX event queue.

Close the Bloomberg EMSX connection.

close(c)

Input Arguments

collapse all

Bloomberg EMSX service connection, specified as a connection object created using emsx.

Introduced in R2013a

Was this topic helpful?