pylab_ml.dummy.Dummy

class Dummy(parent, logger, **kwargs)[source]

Bases: object

Dummy object for an communication-instance.

Date:

June 16, 2026

Author:

Semi-ATE <info@Semi-ATE.org>

Usable if you have no real serial device, but you want avoid an Exception if you make access to this device

__init__(parent, logger, **kwargs)[source]

Initialise the Dummy instance.

Parameters:
  • parent (object) – Parent object

  • logger (object) – Logger instance

  • kwargs (dict) – Additional keyword arguments

Methods

__init__(parent, logger, **kwargs)

Initialise the Dummy instance.

close()

Close the Dummy instance.

flush([arg])

query(cmd)

Query the Dummy instance.

read()

Read a value from the Dummy instance.

write(cmd)

Write a command to the Dummy instance.

close()[source]

Close the Dummy instance.

query(cmd)[source]

Query the Dummy instance.

Parameters:

cmd (str) – Command to query

Returns:

Response from the Dummy instance

Return type:

str or int

read()[source]

Read a value from the Dummy instance.

Returns:

value – Value read from the Dummy instance

Return type:

str or int

write(cmd)[source]

Write a command to the Dummy instance.

Parameters:

cmd (str) – Command to write