kmf files¶
openKmf()¶
-
canlib.kvmlib.openKmf(path, device_type=<Device.MHYDRA_EXT: 1>)[source]¶ Open a kmf file from disk
Parameters: - path (
str) – The filepath to the .KMF file (e.g."data/kmf/LOG00000.KMF"). - device_type (
canlib.kvmlib.Device) – The type of the memorator that created the .KMF file(s) (defaults tocanlib.kvmlib.Device.MHYDRA_EXT)
Returns: New in version 1.6.
- path (
Kmf¶
-
class
canlib.kvmlib.Kmf(handle, ldf_version)[source]¶ A kmf file opened with
kvmlib.openKmfThe main use of this class is using its
logattribute, which is aMountedLogobject (see its documentation for how to use it).Also see the base class
kvmlib.KmfSystemfor inherited functionality.Variables: log ( MountedLog) – Object representing the log of log files within the kmf container-file.New in version 1.6.
KmfSystem¶
-
class
canlib.kvmlib.KmfSystem(handle)[source]¶ The base class of
KmfandMemoratorThe
KmfandMemoratorclasses are very similar, they are different ways of reading log files (LogFile) created by a memorator. This class represents the common ground between all ways of accessing log files.All subclasses should have a
logattribute which is anUnmountedLogor subclass thereof.This class automatically closes its internal handle when garbage collected.
New in version 1.6.
-
disk_usage¶ The disk usage
The tuple has one
usedand onetotalfield (in that order), which reference disk space in megabytes.Type: KmfSystem.DiskUsage
-