Why do I receive an error when I try to connect to the Bloomberg database using the BLOOMBERG function?

10 views (last 30 days)
When I attempt to connect to the Bloomberg database in older versions of MATLAB using the BLOOMBERG function, I receive the following error:
Cannot find Bloomberg license or API software

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 May 2010
The documentation has been updated in Release 2008a (R2008a). For previous product releases, read below:
You may encounter this error if the 'bbapi.dll' file is not found on the system path or if 'bbcomm.exe' is not running.
1. You can verify if the Bloomberg API is working by going to the 'Windows Start' menu and choosing "Bloomberg -> API Demo".
2. You will need to verify that 'bbapi.dll' is on your Windows system path ( system environment variable - PATH) to work with MATLAB. To check this, visit the following support article from Microsoft.
<http://support.microsoft.com/kb/310519>
Another possibility is that the user is not using the right syntax. The two input form is no longer supported by Bloomberg. So to connect, you can try:
>> c = bloomberg
Alternatively:
The Bloomberg software is updated regularly and only the most recent version of the Datafeed Toolbox may contain the correct library interface to connect with the Bloomberg API.
The only workaround is to update the version of MATLAB which is being used.
Also, this error may occur because too many connections to the Bloomberg data server have already been established. This may be the result of calling the command
c = bloomberg;
in a FOR-loop. In this case, you should either close the bloomberg connection:
close(c);
before the next iteration or, ideally, open the connection outside of the FOR-loop and use only that one connection within the loop.

More Answers (0)

Tags

Products


Release

R14SP2

Community Treasure Hunt

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

Start Hunting!