mpylab.env.custom moduleΒΆ

mpylab.env.custom module.

mpylab.env.custom.my_switch(swstr, fstr, fs=1000000000.0)

Select a switch channel from a frequency in an outer stack frame.

Parameters:
  • swstr (str) – Name of the switch object in an enclosing frame.

  • fstr (str) – Name of the frequency variable in an enclosing frame.

  • fs (float, optional) – Frequency boundary between switch channels 1 and 2.

Returns:

Driver status code, or -1 if either outer-frame variable cannot be found.

Return type:

int