Why does MATLAB crash when starting a Bloomberg connection in a timer function?

I am running a timer function that feeds data from Bloomberg, it works fine for a couple of minutes before crashing. How can I fix this?

 Accepted Answer

First, make sure you are not creating multiple Bloomberg connections. 
Try one the following:
1. Use a single Bloomberg connection and pass a reference of it to the timer function.
2. Use the 'realtime' function with a custom 'eventhandler' field to obtain real time data for the connection: <https://www.mathworks.com/help/datafeed/blp.realtime.html>

More Answers (0)

Categories

Products

Release

R2017b

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!