Main Content

processEvent

Sample Bloomberg EMSX event handler

Since R2021a

Description

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

example

Examples

collapse all

Create the Bloomberg EMSX connection c using the Bloomberg EMSX C++ interface.

c = bloombergEMSX('//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 using the Bloomberg EMSX C++ interface.

c = bloombergEMSX('//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 bloombergEMSX object.

Version History

Introduced in R2021a