v is a structure containing the Bloomberg session object, IP address, port number, and timeout value.
Close the Bloomberg connection.
close(c)
Create the Bloomberg connection.
c = blp;
Alternatively, you can connect to the Bloomberg Server using blpsrv or Bloomberg
B-PIPE using bpipe.
Retrieve the port number from the Bloomberg connection object by specifying 'port' as a character
vector.
property = 'port';
v = get(c,property)
v =
8194
v is a double that contains the port number of the Bloomberg connection object.
Close the Bloomberg connection.
close(c)
Create the Bloomberg connection.
c = blp;
Alternatively, you can connect to the Bloomberg Server using blpsrv or Bloomberg
B-PIPE using bpipe.
Create a cell array properties with character vectors
'session' and 'port'. Retrieve the Bloomberg session object and port number from the Bloomberg connection object.
properties = {'session','port'};
v = get(c,properties)
v =
session: [1x1 com.bloomberglp.blpapi.Session]
port: 8194
v is a structure containing the Bloomberg session object and port number.
Bloomberg connection, specified as a connection object
created using blp, blpsrv, or bpipe.
Property names, specified as a character vector, string scalar, cell array of
character vectors, or string array containing Bloomberg connection property names. The property names are
session, ipaddress, port, and
timeout.
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window.
Web browsers do not support MATLAB commands.
Website auswählen
Wählen Sie eine Website aus, um übersetzte Inhalte (sofern verfügbar) sowie lokale Veranstaltungen und Angebote anzuzeigen. Auf der Grundlage Ihres Standorts empfehlen wir Ihnen die folgende Auswahl: .
Sie können auch eine Website aus der folgenden Liste auswählen:
So erhalten Sie die bestmögliche Leistung auf der Website
Wählen Sie für die bestmögliche Website-Leistung die Website für China (auf Chinesisch oder Englisch). Andere landesspezifische Websites von MathWorks sind für Besuche von Ihrem Standort aus nicht optimiert.