pub fn open_device_manual_bandwidth(
dev_id: Option<u32>,
bandwidth: i32,
) -> Result<Camera, XI_RETURN>
Expand description
Initialize the camera with the given bandwidth and return it.
If successful, this function returns a Camera object that represents the camera which was initialized. If an error occurs, the Result contains the error code.
The automatic bandwidth measurement is disabled when using this method. This can lead to faster device initialization.
§Arguments
*dev_id
: The device ID for the device to be initialized. Usually device IDs are sequential
and start at 0 for the first device in the system. Default value: 0
*bandwidth
: Transport layer bandwidth for this camera in MBit/s
§Examples
let mut cam = xiapi::open_device_manual_bandwidth(None, 1000)?;
cam.set_exposure(10000 as f32);
// Do more stuff with the camera ...