pylab_ml.matrix.base_matrix.Matrix_Emulator

class Matrix_Emulator(addr=None, x=66, y=8)[source]

Bases: object

Emulator from a relay Matrix.

Date:

June 16, 2026

Author:

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

Usable if you have no real Matrix as instance

__init__(addr=None, x=66, y=8)[source]

Initialise the emulator.

Parameters:
  • addr (str, optional) – Address of the emulator.

  • x (int, optional) – Number of columns in the emulator.

  • y (int, optional) – Number of rows in the emulator.

Methods

ClearCard()

Open all connections.

Close()

Close connection to Pickering Emulator.

Diagnostic()

Perform a diagnostic check.

ErrorMessage(err)

Get the error message corresponding to an error code.

GetCardId()

Get the card ID.

GetCrosspointState(cardnr, rows, cols)

Get the state of a crosspoint.

Reset()

Reset.

SetCrosspointState(cardnr, row, col, state)

Set state from crosspoint.

SubInfo(cardnr, unknown)

Get sub-unit information.

__init__([addr, x, y])

Initialise the emulator.

clear()

Clear all connections (opem).

message([message])

Display a message.

ClearCard()[source]

Open all connections.

Close()[source]

Close connection to Pickering Emulator.

Diagnostic()[source]

Perform a diagnostic check.

ErrorMessage(err)[source]

Get the error message corresponding to an error code.

Parameters:

err (int) – Error code.

Raises:

Exception – If an error occurs.

GetCardId()[source]

Get the card ID.

GetCrosspointState(cardnr, rows, cols)[source]

Get the state of a crosspoint.

Parameters:
  • cardnr (int) – Card number.

  • rows (int) – Row number.

  • cols (int) – Column number.

Returns:

0 if successful, error code otherwise, and the state of the crosspoint.

Return type:

tuple

Reset()[source]

Reset.

SetCrosspointState(cardnr, row, col, state)[source]

Set state from crosspoint.

Parameters:
  • cardnr (int) – Card number.

  • row (int) – Row number.

  • col (int) – Column number.

  • state (int) – State to set.

Returns:

0 if successful, error code otherwise.

Return type:

int

SubInfo(cardnr, unknown)[source]

Get sub-unit information.

Parameters:
  • cardnr (int) – Card number.

  • unknown (int) – Unknown parameter.

Returns:

0 if successful, error code otherwise, and the sub-unit information.

Return type:

tuple

clear()[source]

Clear all connections (opem).

message(message=None)[source]

Display a message.

Parameters:

message (str, optional) – Message to display.

np = <module 'numpy' from '/home/runner/miniconda3/envs/test/lib/python3.9/site-packages/numpy/__init__.py'>