Functions¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- Aravis.acquisition_mode_to_string(value)¶
- Parameters:
value (
Aravis.AcquisitionMode
) –- Return type:
- Aravis.auto_to_string(value)¶
- Parameters:
value (
Aravis.Auto
) –- Return type:
- Aravis.debug_enable(category_selection)¶
- Parameters:
category_selection (
str
) – debug category configuration string- Returns:
True
on success- Return type:
Configures the debug output using a configuration string consisting of a comma separated list of debug categories or category/debug level pair.
This function overwrites the configuration done by
ARV_DEBUG
environment variable. For example, enabling debug level 3 of the gvcp category and default debug level of category genicam is done using:``C arv_debug_enable (“gvcp:3,genicam”); ``
New in version 0.8.8.
- Aravis.disable_interface(interface_id)¶
- Parameters:
interface_id (
str
) – name of the interface
Disable an interface by name. By default, all interfaces are enabled, except ‘Fake’.
- Aravis.dom_implementation_add_document_type(qualified_name, document_type)¶
- Parameters:
qualified_name (
str
) –document_type (
GObject.GType
) –
- Aravis.dom_implementation_cleanup()¶
- Aravis.dom_implementation_create_document(namespace_uri, qualified_name)¶
- Parameters:
- Returns:
a new
Aravis.DomDocument
,None
on error:- Return type:
Create a new DOM document. Currently, only qualified_name is used.
- Aravis.enable_interface(interface_id)¶
- Parameters:
interface_id (
str
) – name of the interface
Enable an interface by name. By default, all interfaces are enabled, except ‘Fake’.
- Aravis.exposure_mode_to_string(value)¶
- Parameters:
value (
Aravis.ExposureMode
) –- Return type:
- Aravis.gc_access_mode_to_string(value)¶
- Parameters:
value (
Aravis.GcAccessMode
) –- Return type:
- Aravis.get_device_address(index)¶
- Parameters:
index (
int
) – device index- Returns:
The address of the device corresponding to index as a string.
- Return type:
The index of a device may change after a call to
Aravis.update_device_list
().New in version 0.6.0.
- Aravis.get_device_id(index)¶
-
Queries the unique device id corresponding to index. Prior to this call the
Aravis.update_device_list
() function must be called.New in version 0.2.0.
- Aravis.get_device_manufacturer_info(index)¶
- Parameters:
index (
int
) – device index- Returns:
the device manufacturer info,
None
on error- Return type:
Queries the device manufacturer info.
Prior to this call the
Aravis.update_device_list
() function must be called.New in version 0.8.20.
- Aravis.get_device_model(index)¶
-
Queries the device model.
Prior to this call the
Aravis.update_device_list
() function must be called.New in version 0.6.0.
- Aravis.get_device_physical_id(index)¶
-
Queries the physical device id corresponding to index such as the MAC address for Ethernet based devices, bus id for PCI, USB or Firewire based devices.
Prior to this call the
Aravis.update_device_list
() function must be called.New in version 0.2.0.
- Aravis.get_device_protocol(index)¶
-
The index of a device may change after a call to
Aravis.update_device_list
().New in version 0.6.0.
- Aravis.get_device_serial_nbr(index)¶
-
Queries the device serial.
Prior to this call the
Aravis.update_device_list
() function must be called.New in version 0.6.0.
- Aravis.get_device_vendor(index)¶
-
Queries the device vendor.
Prior to this call the
Aravis.update_device_list
() function must be called.New in version 0.6.0.
- Aravis.get_interface_id(index)¶
-
Retrieves the interface identifier. Possible values are ‘Fake’, ‘USB3Vision’ and ‘GigEVision’.
- Aravis.get_n_devices()¶
- Returns:
The number of currently online devices.
- Return type:
Retrieves the number of currently online devices. This value is valid until the next call to
Aravis.update_device_list
().
- Aravis.get_n_interfaces()¶
- Returns:
The number of available interfaces.
- Return type:
Gets the number of available interfaces, including the disabled ones.
- Aravis.make_thread_high_priority(nice_level)¶
- Parameters:
nice_level (
int
) – new nice level- Returns:
True
on success.Try to set current thread nice level to high priority, using rtkit.
- Return type:
New in version 0.4.0.
- Aravis.make_thread_realtime(priority)¶
- Parameters:
priority (
int
) – realtime priority- Returns:
True
on success.Try to make current thread realtime. It first try to use sched_setscheduler, and if it fails, use rtkit.
- Return type:
New in version 0.4.0.
- Aravis.open_device(device_id)¶
- Parameters:
- Raises:
- Returns:
A new
Aravis.Device
instance.- Return type:
Open a device corresponding to the given identifier. A
None
string makes this function return the first available device.New in version 0.8.0.
- Aravis.set_interface_flags(interface_id, flags)¶
-
Set the device specific flags.
New in version 0.8.23.
- Aravis.shutdown()¶
Frees a number of ressources allocated by Aravis that would be otherwise reported as memory leak by tools like Valgrind. The call to this function is optional if you don’t intend to check for memory leaks.
- Aravis.update_device_list()¶
Updates the list of currently online devices.