package reference manual
Represents a CANoe instance. Args: py_canoe_log_dir (str): The path for the CANoe log file. Defaults to an empty string. user_capl_functions (tuple): A tuple of user-defined CAPL function names. Defaults to an empty tuple.
add_database(database_file, database_network, database_channel)
adds database file to a network channel
Parameters: |
|
---|
add_filters_to_exporter(logger_index, full_names)
Add messages and symbols to exporter filter by their full names.
:param logger_index: indicates logger :param full_names: of messages and symbols
add_logging_block(full_name)
Adds new logging block.
:param full_name: full path to log file as "C:/file.(asc|blf|mf4|...)", may have field functions like {IncMeasurement} in the file name
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.
control_replay_block(block_name, start_stop)
Method for controlling CANoe replay block.
Parameters: |
|
---|
control_tester_present(diag_ecu_qualifier_name, value)
Starts/Stops sending autonomous/cyclical Tester Present requests to the ECU.
Parameters: |
|
---|
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.
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: |
|
---|
execute_all_test_environments()
executes all test environments available in test setup.
execute_all_test_modules_in_test_env(env_name)
executes all test modules available in test environment.
Parameters: |
|
---|
execute_test_module(test_module_name)
use this method to execute test module.
Parameters: |
|
---|
Returns: |
|
---|
get_bus_databases_info(bus)
returns bus database info(path, channel, full_name).
Parameters: |
|
---|
Returns: |
|
---|
get_bus_nodes_info(bus)
returns bus nodes info(path, full_name, active).
Parameters: |
|
---|
Returns: |
|
---|
get_can_bus_statistics(channel)
Returns CAN Bus Statistics.
Parameters: |
|
---|
Returns: |
|
---|
get_canoe_version_info()
The Version class represents the version of the CANoe application.
Returns: |
|
---|
get_environment_variable_value(env_var_name)
returns a environment variable value.
Parameters: |
|
---|
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_logging_blocks()
Return all available logging blocks.
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_messages(logger_index)
Return all messages from given logger.
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_symbols(logger_index)
Return all exporter symbols from given logger.
get_system_variable_value(sys_var_name, return_symbolic_name=False)
get_system_variable_value Returns a system variable value.
Parameters: |
|
---|
Returns: |
|
---|
get_test_environments()
returns dictionary of test environment names and class.
get_test_modules(env_name)
returns dictionary of test environment test module names and its class object.
Parameters: |
|
---|
load_logs_for_exporter(logger_index)
Load all source files of exporter and determine symbols/messages.
:param logger_index: indicates logger and its log files
open(canoe_cfg, visible=True, auto_save=True, prompt_user=False, auto_stop=True)
Loads CANoe configuration.
Parameters: |
|
---|
quit()
Quits CANoe without saving changes in the configuration.
read_text_from_write_window()
read the text contents from Write Window.
Returns: |
|
---|
remove_database(database_file, database_channel)
remove database file from a channel
Parameters: |
|
---|
remove_logging_block(index)
Remove logging block at given index.
Blocks` indexes starts from 1 instead of 0. After one block is removed the rest shift up e.g. having 3 loggers [L1, L2, L3] if we remove index=2 the new order will be [L1, L3] with indexes 1 and 2.
reset_measurement()
reset(stop and start) 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, prompt_user=False, create_dir=True)
Saves the configuration as a different CANoe version.
Parameters: |
|
---|
Returns: |
|
---|
send_diag_request(diag_ecu_qualifier_name, request, request_in_bytes=True, return_sender_name=False)
The send_diag_request method represents the query of a diagnostic tester (client) to an ECU (server) in CANoe.
Parameters: |
|
---|
Returns: |
|
---|
set_configuration_modified(modified)
Change status of configuration.
Modified=False makes it possible to load other config or close the application without the popup "Do you want to save changes?". Without that the application will stop on that popup.
:param modified: change configuration flag
set_environment_variable_value(env_var_name, value)
sets a value to environment variable.
Parameters: |
|
---|
set_j1939_signal_value(bus, channel, message, signal, source_addr, dest_addr, value, raw_value=False)
get_j1939_signal Returns a Signal object.
Parameters: |
|
---|
Returns: |
|
---|
set_measurement_index(index)
sets the measurement index for the next measurement.
Parameters: |
|
---|
Returns: |
|
---|
set_replay_block_file(block_name, recording_file_path)
Method for setting CANoe replay block file.
Parameters: |
|
---|
set_signal_value(bus, channel, message, signal, value, raw_value=False)
set_signal_value sets a value to Signal. Works only when messages are sent using CANoe IL.
Parameters: |
|
---|
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_export(logger_index)
Starts the export/conversion of exporter.
:param logger_index: indicates logger
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_all_test_environments()
stops execution of all test environments available in test setup.
stop_all_test_modules_in_test_env(env_name)
stops execution of all test modules available in test environment.
Parameters: |
|
---|
stop_ex_measurement(timeout=60)
StopEx repairs differences in the behavior of the Stop method on deferred stops concerning simulated and real mode in CANoe.
Parameters: |
|
---|
Returns: |
|
---|
stop_measurement(timeout=60)
Stops the measurement.
Parameters: |
|
---|
Returns: |
|
---|
stop_test_module(test_module_name)
stops execution of test module.
Parameters: |
|
---|
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.