autoconnect

autoconnect#

method

B2900.autoconnect() bool#

Autoconnect to an instrument using internally stored parameters.

If the device is persisted in PyroLab’s program data, the parameters for connect should be saved and associated with the object (in the attribute _autoconnect_params). autoconnect() simply calls connect() with the saved parameters.

Returns:
bool

True if connection was successful, False otherwise.

Raises:
Exception

If the autoconnect parameters are missing.