BioImager  3.6.0
A .NET microscopy imaging library. Supports various microscopes by using imported libraries & GUI automation. Supported libraries include PriorĀ® & ZeissĀ® & all devices supported by Micromanager 2.0 and python-microscope.
Loading...
Searching...
No Matches
microscope._wrappers.BMC Namespace Reference

Classes

class  DM
 
class  DM_DRIVER
 
class  DM_PRIV
 

Functions

def make_prototype (name, argtypes, restype=RC)
 

Variables

 SDK = ctypes.WinDLL("BMC2")
 
int MAX_PATH = 260
 
int SERIAL_NUMBER_LEN = 11
 
int MAX_DM_SIZE = 4096
 
 DMHANDLE = ctypes.POINTER(DM)
 
 RC = c_int
 
 LOGLEVEL = c_int
 
int LOG_ALL = 0
 
int LOG_TRACE = LOG_ALL
 
int LOG_DEBUG = 1
 
int LOG_INFO = 2
 
int LOG_WARN = 3
 
int LOG_ERROR = 4
 
int LOG_FATAL = 5
 
int LOG_OFF = 6
 
def Open = make_prototype("BMCOpen", [DMHANDLE, c_char_p])
 
def SetArray
 
def GetArray
 
def Close = make_prototype("BMCClose", [DMHANDLE])
 
def ErrorString = make_prototype("BMCErrorString", [RC], c_char_p)
 
def ConfigureLog = make_prototype("BMCConfigureLog", [c_char_p, LOGLEVEL])
 
def VersionString = make_prototype("BMCVersionString", [], c_char_p)
 

Function Documentation

◆ make_prototype()

def microscope._wrappers.BMC.make_prototype (   name,
  argtypes,
  restype = RC 
)

Definition at line 92 of file BMC.py.

92def make_prototype(name, argtypes, restype=RC):
93 func = getattr(SDK, name)
94 func.argtypes = argtypes
95 func.restype = restype
96 return func
97
98

Variable Documentation

◆ Close

def microscope._wrappers.BMC.Close = make_prototype("BMCClose", [DMHANDLE])

Definition at line 110 of file BMC.py.

◆ ConfigureLog

def microscope._wrappers.BMC.ConfigureLog = make_prototype("BMCConfigureLog", [c_char_p, LOGLEVEL])

Definition at line 114 of file BMC.py.

◆ DMHANDLE

microscope._wrappers.BMC.DMHANDLE = ctypes.POINTER(DM)

Definition at line 77 of file BMC.py.

◆ ErrorString

def microscope._wrappers.BMC.ErrorString = make_prototype("BMCErrorString", [RC], c_char_p)

Definition at line 112 of file BMC.py.

◆ GetArray

def microscope._wrappers.BMC.GetArray
Initial value:
1= make_prototype(
2 "BMCGetArray", [DMHANDLE, ctypes.POINTER(c_double), c_uint32]
3)

Definition at line 106 of file BMC.py.

◆ LOG_ALL

int microscope._wrappers.BMC.LOG_ALL = 0

Definition at line 82 of file BMC.py.

◆ LOG_DEBUG

int microscope._wrappers.BMC.LOG_DEBUG = 1

Definition at line 84 of file BMC.py.

◆ LOG_ERROR

int microscope._wrappers.BMC.LOG_ERROR = 4

Definition at line 87 of file BMC.py.

◆ LOG_FATAL

int microscope._wrappers.BMC.LOG_FATAL = 5

Definition at line 88 of file BMC.py.

◆ LOG_INFO

int microscope._wrappers.BMC.LOG_INFO = 2

Definition at line 85 of file BMC.py.

◆ LOG_OFF

int microscope._wrappers.BMC.LOG_OFF = 6

Definition at line 89 of file BMC.py.

◆ LOG_TRACE

int microscope._wrappers.BMC.LOG_TRACE = LOG_ALL

Definition at line 83 of file BMC.py.

◆ LOG_WARN

int microscope._wrappers.BMC.LOG_WARN = 3

Definition at line 86 of file BMC.py.

◆ LOGLEVEL

microscope._wrappers.BMC.LOGLEVEL = c_int

Definition at line 81 of file BMC.py.

◆ MAX_DM_SIZE

int microscope._wrappers.BMC.MAX_DM_SIZE = 4096

Definition at line 38 of file BMC.py.

◆ MAX_PATH

int microscope._wrappers.BMC.MAX_PATH = 260

Definition at line 36 of file BMC.py.

◆ Open

def microscope._wrappers.BMC.Open = make_prototype("BMCOpen", [DMHANDLE, c_char_p])

Definition at line 99 of file BMC.py.

◆ RC

microscope._wrappers.BMC.RC = c_int

Definition at line 79 of file BMC.py.

◆ SDK

microscope._wrappers.BMC.SDK = ctypes.WinDLL("BMC2")

Definition at line 30 of file BMC.py.

◆ SERIAL_NUMBER_LEN

int microscope._wrappers.BMC.SERIAL_NUMBER_LEN = 11

Definition at line 37 of file BMC.py.

◆ SetArray

def microscope._wrappers.BMC.SetArray
Initial value:
1= make_prototype(
2 "BMCSetArray",
3 [DMHANDLE, ctypes.POINTER(c_double), ctypes.POINTER(c_uint32)],
4)

Definition at line 101 of file BMC.py.

◆ VersionString

def microscope._wrappers.BMC.VersionString = make_prototype("BMCVersionString", [], c_char_p)

Definition at line 116 of file BMC.py.