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?

 采纳的回答

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>

更多回答(0 个)

类别

在 帮助中心 和 File Exchange 中查找有关 Manage Products 的更多信息

产品

版本

R2017b

标签

尚未输入任何标签。

Community Treasure Hunt

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

Start Hunting!

Translated by