reference
Python package for controlling Vector CANalyzer tool
CANalyzer(py_log_dir='', user_capl_functions=tuple())
The CANalyzer class represents the CANalyzer application. The CANalyzer class is the foundation for the object hierarchy. You can reach all other methods from the CANalyzer class instance.
add_offline_source_log_file(absolute_log_file_path)
this method adds offline source log file.
Parameters: |
|
---|
Returns: |
|
---|
break_measurement_in_offline_mode()
Interrupts the playback in Offline mode.
call_capl_function(name, *arguments)
Calls a CAPL function. Please note that the number of parameters must agree with that of the CAPL function. not possible to read return value of CAPL function at the moment. only execution status is returned.
Parameters: |
|
---|
Returns: |
|
---|
check_j1939_signal_online(bus, channel, message, signal, source_addr, dest_addr)
Checks whether the measurement is running and the signal has been received.
Parameters: |
|
---|
Returns: |
|
---|
check_j1939_signal_state(bus, channel, message, signal, source_addr, dest_addr)
Returns the state of the signal.
Returns: |
|
---|
check_signal_online(bus, channel, message, signal)
Checks whether the measurement is running and the signal has been received.
Parameters: |
|
---|
Returns: |
|
---|
check_signal_state(bus, channel, message, signal)
Checks whether the measurement is running and the signal has been received.
Parameters: |
|
---|
Returns: |
|
---|
clear_write_window_content()
Clears the contents of the Write Window.
compile_all_capl_nodes()
compiles all CAPL, XML and .NET nodes.
copy_write_window_content()
Copies the contents of the Write Window to the clipboard.
define_system_variable(sys_var_name, value)
define_system_variable Create a system variable with an initial value Args: sys_var_name (str): The name of the system variable. Ex- "sys_var_demo::speed" value (Union[int, float, str]): variable value. Default value 0.
Returns: |
|
---|
disable_write_window_output_file(tab_index=None)
Disables logging of all outputs of the Write Window.
Parameters: |
|
---|
enable_write_window_output_file(output_file, tab_index=None)
Enables logging of all outputs of the Write Window in the output file.
Parameters: |
|
---|
get_application_info()
Vector CANalyzer Application Version.
Returns: |
|
---|
get_can_bus_statistics(channel)
Returns CAN Bus Statistics.
Parameters: |
|
---|
Returns: |
|
---|
get_canalyzer_version_info()
The Version class represents the version of the CANalyzer application.
Returns: |
|
---|
get_j1939_signal_full_name(bus, channel, message, signal, source_addr, dest_addr)
Determines the fully qualified name of a signal.
Parameters: |
|
---|
Returns: |
|
---|
get_j1939_signal_value(bus, channel, message, signal, source_addr, dest_addr, raw_value=False)
get_j1939_signal Returns a Signal object.
Parameters: |
|
---|
Returns: |
|
---|
get_measurement_index()
gets the measurement index for the next measurement.
Returns: |
|
---|
get_measurement_running_status()
Returns the running state of the measurement.
Returns: |
|
---|
get_signal_full_name(bus, channel, message, signal)
Determines the fully qualified name of a signal.
Parameters: |
|
---|
Returns: |
|
---|
get_signal_value(bus, channel, message, signal, raw_value=False)
get_signal_value Returns a Signal value.
Parameters: |
|
---|
Returns: |
|
---|
get_system_variable_value(sys_var_name)
get_system_variable_value Returns a system variable value.
Parameters: |
|
---|
Returns: |
|
---|
new(auto_save=False, prompt_user=False)
Creates a new configuration.
Parameters: |
|
---|
open(canalyzer_cfg, visible=True, auto_save=False, prompt_user=False)
Loads CANalyzer configuration.
Parameters: |
|
---|
Raises: |
|
---|
quit()
Quits the application.
read_text_from_write_window()
read the text contents from Write Window.
Returns: |
|
---|
reset_measurement()
reset the measurement.
Returns: |
|
---|
reset_measurement_in_offline_mode()
Resets the measurement in Offline mode.
save_configuration()
Saves the configuration.
Returns: |
|
---|
save_configuration_as(path, major, minor, create_dir=True)
Saves the configuration as a different CANalyzer version.
Parameters: |
|
---|
Returns: |
|
---|
set_measurement_index(index)
sets the measurement index for the next measurement.
Parameters: |
|
---|
Returns: |
|
---|
set_system_variable_array_values(sys_var_name, value, index=0)
set_system_variable_array_values sets array of values to system variable.
Parameters: |
|
---|
set_system_variable_value(sys_var_name, value)
set_system_variable_value sets a value to system variable.
Parameters: |
|
---|
start_measurement(timeout=60)
Starts the measurement.
Parameters: |
|
---|
Returns: |
|
---|
start_measurement_in_animation_mode(animation_delay=100)
Starts the measurement in Animation mode.
Parameters: |
|
---|
step_measurement_event_in_single_step()
Processes a measurement event in single step.
stop_ex_measurement(timeout=60)
StopEx repairs differences in the behavior of the Stop method on deferred stops concerning simulated and real mode in CANalyzer.
Parameters: |
|
---|
Returns: |
|
---|
stop_measurement(timeout=60)
Stops the measurement.
Parameters: |
|
---|
Returns: |
|
---|
ui_activate_desktop(name)
Activates the desktop with the given name.
Parameters: |
|
---|
ui_open_baudrate_dialog()
opens the dialog for configuring the bus parameters. Make sure Measurement stopped when using this method.
write_text_in_write_window(text)
Outputs a line of text in the Write Window. Args: text (str): The text.