hashill.blogg.se

Dbc file viewer
Dbc file viewer





dbc file viewer

If you don’t want them to be sorted pass sort_signals = None. Sort_signals is a function taking a list of signals as argument and returning a list of signals.īy default signals are sorted by their start bit when their Message object is created. Prune_choices is a bool indicating whether signal names are supposed to be abbreviatedīy stripping a common prefix ending on an underscore. 'sym', 'cdd' or None, where None means transparent load_string ( string, database_format=None, frame_id_mask=None, prune_choices=False, strict=True, sort_signals= ) ¶ĭatabase_format may be one of 'arxml', 'dbc', 'kcd', In order to minimize the differences between foo.dbc and bar.dbc. Pass sort_signals=None, prune_choices=False to load_file Remove the cache directoryĮxception if given file does not contain a supported database The cache directory is automaticallyĬreated if it does not exist. Using a cache will significantly reduce the load time when The cache key is the contents of givenįile. The original names you need to pass prune_choices = False.Ĭache_dir specifies the database cache location in the file Prune_choices abbreviates the names of choices by removingĪ common prefix ending on an underscore. Is selected based on the database format as in the table Is selected based on the filename extension as in the table below.įilename extensions are case insensitive.Įncoding specifies the file encoding. Open, read and parse given database file and return aĭatabase_format is one of 'arxml', 'dbc', 'kcd', load_file ( filename, database_format=None, encoding=None, frame_id_mask=None, prune_choices=False, strict=True, cache_dir=None, sort_signals= ) ¶ Is less pretty, slightly more comprehensive and easier to parse byįunctions and classes ¶ cantools.database.

dbc file viewer

This is very similar to the “dump” subcommand, but the output Print all information of a given database in a human readableįormat. $ python3 -m cantools dump tests/files/dbc/motohawk.dbc Optionally a format can be specified after a signal, separated by a colon. Signals separated by a - are displayed in separate subplots. If you don’t want to show all signals you can select the desired signals with command line arguments.Ī * can stand for any number of any character, a ? for exactly one arbitrary character. $ cat candump-_180521.log | python3 -m cantools plot tests/files/dbc/abs.dbc







Dbc file viewer