py_canoe.core.system.System
The System object represents the system of the CANoe application. The System object offers access to the namespaces for data exchange with external applications.
Source code in src\py_canoe\core\system.py
19 20 | |
namespaces
property
Return the Namespaces object for accessing system variable namespaces.
variables_files
property
Return the VariablesFiles object for accessing system variable files.
add_variable(sys_var_name, value, read_only=False)
Add a new system variable to the CANoe system. If the namespace does not exist, it will be created.
Source code in src\py_canoe\core\system.py
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 | |
get_all_namespace_names()
Get all system variable namespace names as a list. If an error occurs, it will raise a PyCanoeError.
Source code in src\py_canoe\core\system.py
167 168 169 170 171 172 173 174 | |
get_all_variables_in_namespace(namespace_name)
Get all system variables in a specific namespace as a list of dictionaries with variable names, values, and full names. If the namespace does not exist, it will raise a NamespaceNotFoundError. If an error occurs while enumerating variables, it will raise a PyCanoeError.
Source code in src\py_canoe\core\system.py
176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 | |
get_namespaces()
Get system root namespaces as a dictionary with namespace names as keys and Namespace objects as values. If an error occurs, it will log the error and return None.
Source code in src\py_canoe\core\system.py
153 154 155 156 157 158 159 160 161 162 163 164 165 | |
get_variable_value(sys_var_name, return_symbolic_name=False, enable_events=True)
Get the value of a system variable. If the variable does not exist, it will log an error message and return None.
Source code in src\py_canoe\core\system.py
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 | |
get_variables_files()
Get system variables files as a dictionary with file full names as keys and VariablesFile objects as values. If an error occurs, it will log the error and return None.
Source code in src\py_canoe\core\system.py
196 197 198 199 200 201 202 203 204 205 206 207 208 | |
remove_variable(sys_var_name)
Remove a system variable from the CANoe system. If the variable does not exist, it will log an info message and return False.
Source code in src\py_canoe\core\system.py
61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | |
set_variable_array_values(sys_var_name, value, index=0, timeout=1, enable_events=True)
Set the values of a system variable array starting from a specific index. If the variable does not exist or if there is not enough space in the array, it will log an error message and return False.
Source code in src\py_canoe\core\system.py
130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 | |
set_variable_value(sys_var_name, value, timeout=1, enable_events=True)
Set the value of a system variable. If the variable does not exist, it will log an error message and return False.
Source code in src\py_canoe\core\system.py
107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | |