Exemplo n.º 1
0
def _set_binning(binning_value):
    if (_is_camera_available()):
	mmc.setProperty(mmc.getCameraDevice(),
                        MMCorePy.g_Keyword_Binning,
                        binning_value)
	return mmc.getProperty(mmc.getCameraDevice(),
                               MMCorePy.g_Keyword_Binning)
Exemplo n.º 2
0
def _set_property_for_device(device_id, property_id, value):
    device_id = str(device_id)
    property_id = str(property_id)
    value = str(value)
    mmc.setProperty(device_id, property_id, value)
    mmc.waitForDevice(device_id)
    return mmc.getProperty(device_id, property_id)