class TMSiSDK.device.devices.apex.apex_structures.apex_config.ApexConfig#

Bases: object

Class to handle the configuration of the Apex.

__init__()#

Initialize the configuration.

Methods

__init__()

Initialize the configuration.

export_to_xml(filename)

Export the current configuration to xml file.

get_channels()

Get channels of the device.

get_impedance_channels()

Get impedance channels of the device.

get_impedance_limit()

Get the impedance limit.

get_live_impedance()

Get live impedance

get_sample_rate()

Get sample rate

get_sampling_frequency()

Get sampling frequency

import_from_xml(filename)

Import the configuration from a file to the device.

set_channels(channels)

Set channels of the device

set_device_impedance_channels(channels)

Set impedance channels of the device.

set_device_sampling_config(...)

Set device sampling configuration

set_sampling_frequency(sampling_frequency)

Set the sampling frequency

export_to_xml(filename)#

Export the current configuration to xml file.

Parameters:

filename (str) – filename where to save the configuration.

Returns:

True if succeded, False if failed.

Return type:

bool

get_channels()#

Get channels of the device.

Returns:

list of apex channels.

Return type:

list[ApexChannel]

get_impedance_channels()#

Get impedance channels of the device.

Returns:

list of impedance channels.

Return type:

list[ApexImpedanceChannel]

get_impedance_limit()#

Get the impedance limit.

Returns:

impedance limit of the device

Return type:

int

get_live_impedance()#

Get live impedance

Returns:

live impedance on or off

Return type:

ApexLiveImpedance

get_sample_rate()#

Get sample rate

Returns:

base sample rate.

Return type:

ApexBaseSampleRate

get_sampling_frequency()#

Get sampling frequency

Returns:

sampling frequency

Return type:

int

import_from_xml(filename)#

Import the configuration from a file to the device.

Parameters:

filename (str) – filename where to take the configuration from.

Returns:

True if succeded, False if failed, error message.

Return type:

bool

set_channels(channels)#

Set channels of the device

Parameters:

channels (list[ApexChannels]) – list of apex channels

set_device_impedance_channels(channels)#

Set impedance channels of the device.

Parameters:

channels (list[ApexImpedanceChannel]) – list of impedance channels.

set_device_sampling_config(device_sampling_config)#

Set device sampling configuration

Parameters:

device_sampling_config (TMSiDevSamplingCfg) – sampling configuration for the device.

set_sampling_frequency(sampling_frequency)#

Set the sampling frequency

Parameters:

sampling_frequency (int) – sampling frequency