msl.equipment.resources.bentham.benhw64 module

A wrapper around the Bentham32 class.

class msl.equipment.resources.bentham.benhw64.Bentham(record)[source]

Bases: Connection

A wrapper around the Bentham32 class.

This class can be used with either a 32- or 64-bit Python interpreter to call the 32-bit functions in benhw32_cdecl.dll.

The properties for a Bentham connection supports the following key-value pairs in the Connections Database:

'cfg': str, the path to the System.cfg file [default: None]
'atr': str, the path to the System.atr file [default: None]

If the cfg and atr values are not defined in the Connections Database then you will have to call build_system_model(), load_setup() and initialise() (in that order) to configure the SDK.

Do not instantiate this class directly. Use the connect() method to connect to the equipment.

Parameters

record (EquipmentRecord) – A record from an Equipment-Register Database.

auto_measure()[source]
build_system_model(path)[source]

Set the model configuration file.

Parameters

path (str) – The path to the System.cfg file.

disconnect()[source]

Disconnect from the SDK and from the 32-bit server.

errcheck(result, *args, **kwargs)[source]

Checks whether a function call to the SDK was successful.

get(hw_id, token, index)[source]
get_component_list()[source]
get_hardware_type(hw_id)[source]
get_mono_items(hw_id)[source]
property wavelength
initialise()[source]

Initialize the connection.

load_setup(path)[source]

Load the setup file.

Parameters

path (str) – The path to the System.atr file.

park()[source]
select_wavelength(wavelength)[source]
set(hw_id, token, index, value)[source]
version()[source]

str: The version number of the SDK.

zero_calibration(start_wavelength, stop_wavelength)[source]