5.3.1.20.3.3. cli.com.file_com.FileWriter

class cli.com.file_com.FileWriter(name: str, control: ComControl, parameter: FileParameter)

Process that writes data to an output file or logs CAN messages.

__init__(name: str, control: ComControl, parameter: FileParameter) None

Initializes the FileWriter process and CAN logger if required.

Parameters:
  • name (str) – The process name.

  • control (ComControl) – Communication control object.

  • parameter (FileParameter) – File parameter configuration.

Methods

__init__(name, control, parameter)

Initializes the FileWriter process and CAN logger if required.

close()

Close the Process object.

is_alive()

Return whether process is alive

join([timeout])

Wait until child process terminates

kill()

Terminate process; sends SIGKILL signal or uses TerminateProcess()

run()

Starts the file writing process, either writing CAN logs or standard output.

shutdown()

Signals the process to shut down by setting the shutdown event.

start()

Start child process

terminate()

Terminate process; sends SIGTERM signal or uses TerminateProcess()

Attributes

authkey

daemon

Return whether process is a daemon

exitcode

Return exit code of process or None if it has yet to stop

ident

Return identifier (PID) of process or None if it has yet to start

name

pid

Return identifier (PID) of process or None if it has yet to start

sentinel

Return a file descriptor (Unix) or handle (Windows) suitable for waiting for process termination.

control

parameter