Main Content


Determine Bloomberg B-PIPE connection V3

Since R2021a



v = isconnection(c) returns true (1) if c is a valid Bloomberg® V3 connection using the Bloomberg B-PIPE® C++ interface and false (0) otherwise.


collapse all

Create a Bloomberg B-PIPE connection using the IP address of the machine running the Bloomberg B-PIPE process. This example uses the Bloomberg B-PIPE C++ interface and assumes the following:

  • The authentication is Windows® authentication when you set authtype to 'OS_LOGON'.

  • The application name is blank because you are not connecting to Bloomberg B-PIPE using an application.

  • The IP address for the machine running the Bloomberg B-PIPE process is ''.

  • The port number of the machine running the Bloomberg B-PIPE process is 8194.

c is a bloombergBPIPE object.

authtype = 'OS_LOGON';
appname = '';
ipaddress = {''};
port = 8194;

c = bloombergBPIPE(authtype,appname,ipaddress,port);

Validate the Bloomberg connection.

v = isconnection(c)
v =


v returns true showing that the Bloomberg connection is valid.

Close the Bloomberg connection.


Input Arguments

collapse all

Bloomberg B-PIPE connection, specified as a bloombergBPIPE object.

Version History

Introduced in R2021a