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
-1if either outer-frame variable cannot be found.- Return type:
int