Skip to content

Configuration

Matthew Neeley edited this page Jan 28, 2016 · 4 revisions

The default parameters used by pylabrad to connect to the labrad manager are defined in the labrad.constants. In the default configuration, pylabrad will attempt to connect to a manager running on localhost with the default TCP port 7682 and will prompt for a password. These defaults can be overridden by environment variables set on your machine, including setting a password so that you will not be prompted for one when establishing a connection. You should set these environment variables to correspond to how you have the labrad manager configured and where it is running. Of course, it is also possible to override any of these defaults, whether coming from code or from environment variables, when you call labrad.connect.

Name Default Description
LABRADHOST "localhost" The hostname or IP address where the manager is running.
LABRADPORT 7682 TCP port to use when connecting to the labrad manager.
LABRADPASSWORD None Password to use for connecting to the manager. By default, user will be prompted for a password.
LABRAD_TLS "starttls" Transport Level Security (TLS) mode to use for securing connections to the manager. Defaults to "off" instead if TLS is not supported by your version of twisted.
LABRAD_TLS_PORT 7643 TCP port to use when connecting to the labrad manager with a connection initially secured by TLS.
LABRADNODE Used by the node server as the name of the labrad node running on this machine. Defaults to the hostname returned by socket.gethostname.

See labrad.constants.check_tls_mode for more details about available TLS modes.

Clone this wiki locally