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?

 Akzeptierte Antwort

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>

Weitere Antworten (0)

Kategorien

Mehr zu Manage Products finden Sie in Hilfe-Center und File Exchange

Produkte

Version

R2017b

Tags

Noch keine Tags eingegeben.

Community Treasure Hunt

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

Start Hunting!

Translated by