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
andatr
values are not defined in the Connections Database then you will have to callbuild_system_model()
,load_setup()
andinitialise()
(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.
- build_system_model(path)[source]
Set the model configuration file.
- Parameters:
path (
str
) – The path to theSystem.cfg
file.
- errcheck(result, *args, **kwargs)[source]
Checks whether a function call to the SDK was successful.
- property wavelength