mpylab.device.sg_rs_smc100a moduleΒΆ

mpylab.device.sg_rs_smc100a module.

class mpylab.device.sg_rs_smc100a.SIGNALGENERATOR(**kw)

Bases: SIGNALGENERATOR

SIGNALGENERATOR class.

GetRFState()

Read the RF output state from the instrument.

Returns:

Status code and "on" or "off". An empty or invalid reply returns a nonzero status and "unknown".

Return type:

tuple of (int, str)

Raises:

Exception – If the communication backend raises while querying the device.

Init(ini=None, channel=None, ignore_bus=None)

Init method.

mpylab.device.sg_rs_smc100a.main(argv=None)

Run a bounded, RF-off SMC100A smoke test.

Parameters:

argv (sequence of str, optional) – Command-line arguments without the program name. An optional INI path selects an explicitly configured device. Without it, the test uses a virtual driver and never opens a hardware bus.

Returns:

Zero after all bounded operations succeed.

Return type:

int

Raises:

RuntimeError – If initialization or a driver operation reports an error.