- class TMSiSDK.device.devices.saga.saga_structures.saga_config.SagaConfig#
Bases:
object
Class to handle the configuration of the Saga.
- __init__()#
Initialize the configuration.
Methods
__init__
()Initialize the configuration.
export_to_xml
(filename)Export the current configuration to xml file.
Get active channels of the device.
Get active impedance channels of the device.
Get auto reference method
Get channels of the device.
Get configured interface of the device.
Get dr_sync_out_divider
Get dr_sync_out_duty_cycle
Get impedance channels of the device.
Get the impedance limit.
Get mask info
Get reference method
Get repair logging
Get sample rate
Get sampling frequency
Get triggers
import_from_xml
(filename)Import the configuration from a file to the device.
set_channels
(channels)Set channels of the device
set_configured_interface
(configured_interface)Set auto reference method of the device.
set_device_config
(device_config)Set device configuration
set_device_impedance_channels
(channels)Set impedance channels of the device.
set_device_reference_method
(reference_method)Set reference method of the device.
set_dr_sync_out_divider
(divider)Set dr sync out divider
set_dr_sync_out_duty_cycle
(duty_cycle)Set dr sync out duty cycle
set_mask_info
(channels, functions)Set mask info
set_repair_logging
([enable_repair_logging])Set the repair logging
set_sensors
(sensors)Set sensors of the device
set_triggers
(triggers)Set triggers
- 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_active_channels()#
Get active channels of the device.
- Returns:
list of saga active channels.
- Return type:
list[SagaChannel]
- get_active_imp_channels()#
Get active impedance channels of the device.
- Returns:
list of saga active impedance channels.
- Return type:
list[SagaChannel]
- get_auto_reference_method()#
Get auto reference method
- Returns:
autoreference method
- Return type:
AutoRefMethog
- get_channels()#
Get channels of the device.
- Returns:
list of saga channels.
- Return type:
list[SagaChannel]
- get_configured_interface()#
Get configured interface of the device.
- Returns:
configured interface
- Return type:
int
- get_dr_sync_out_divider()#
Get dr_sync_out_divider
- Returns:
dr_sync_out_divider
- Return type:
int
- get_dr_sync_out_duty_cycle()#
Get dr_sync_out_duty_cycle
- Returns:
dr_sync_out_duty_cycle
- Return type:
int
- get_impedance_channels()#
Get impedance channels of the device.
- Returns:
list of impedance channels.
- Return type:
list[SagaImpedanceChannel]
- get_impedance_limit()#
Get the impedance limit.
- Returns:
impedance limit of the device
- Return type:
int
- get_mask_info()#
Get mask info
- Returns:
dictionary with channels and masks
- Return type:
dict
- get_reference_method()#
Get reference method
- Returns:
reference method
- Return type:
RefMethog
- get_repair_logging()#
Get repair logging
- Returns:
repair logging
- Return type:
int
- get_sample_rate()#
Get sample rate
- Returns:
base sample rate.
- Return type:
int
- get_sampling_frequency()#
Get sampling frequency
- Returns:
sampling frequency
- Return type:
int
- get_triggers()#
Get triggers
- Returns:
1 if triggers are enabled, 0 otherwise
- 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[SagaChannels]) – list of saga channels
- set_device_auto_reference_method(auto_reference_method)#
Set auto reference method of the device.
- Parameters:
auto_reference_method (AutoReferenceMethod) – auto_reference_method.
- set_device_config(device_config)#
Set device configuration
- Parameters:
device_config (TMSiDevGetConfig) – configuration of the device.
- set_device_impedance_channels(channels)#
Set impedance channels of the device.
- Parameters:
channels (list[SagaImpedanceChannel]) – list of impedance channels.
- set_device_reference_method(reference_method)#
Set reference method of the device.
- Parameters:
reference_method (ReferenceMethod) – reference_method.
- set_dr_sync_out_divider(divider)#
Set dr sync out divider
- Parameters:
divider (int) – divider of the sync out
- set_dr_sync_out_duty_cycle(duty_cycle)#
Set dr sync out duty cycle
- Parameters:
duty_cycle (int) – duty cycle of the sync out
- set_mask_info(channels, functions)#
Set mask info
- Parameters:
channels (list[int]) – list of indices of channels
functions (list[function]) – list of functions to apply
- set_repair_logging(enable_repair_logging=True)#
Set the repair logging
- Parameters:
enable_repair_logging (bool, optional) – enable or not the repair logging, defaults to True
- set_sensors(sensors)#
Set sensors of the device
- Parameters:
sensors (list[SagaSensors]) – list of sensors
- set_triggers(triggers)#
Set triggers
- Parameters:
triggers (bool) – True if enabled, False otherwise