5.3.1.20.3.1. cli.com.file_com.File

class cli.com.file_com.File(name: str, parameter: FileParameter)

Handles file-based communication by reading from and writing to input/output files. Depending on the provided parameters, it initializes processes for file reading and writing.

__init__(name: str, parameter: FileParameter) None

Initializes the File communication interface.

Parameters:
  • name (str) – The name of the interface.

  • parameter (FileParameter) – Configuration parameters for file operations.

Methods

__init__(name, parameter)

Initializes the File communication interface.

is_alive([process_name])

Checks whether the managed process or all processes are still alive.

read()

Reads data from the output queue if available.

shutdown([block, timeout])

Signals all processes to shut down and optionally waits until they have finished.

start()

Starts all managed processes and waits until they are ready.

write(data)

Writes string data to the input queue for output processing.

write_can_message(msg)

Writes a CAN message to the input queue for output processing.