dso_channel module

class dso_channel.Channel(parent, vernier: bool = False)

Bases: object

This module can control the Channel Vertical function on your DSO

get_bandwidth(ch: int)

Get channel bandwidth

Parameters:

ch (int) – channel number

Returns:

bandwidth

Return type:

str or float

get_coupling(ch: int) str
Parameters:

ch (int) – channel number

Returns:

DC, AC or GND

Return type:

str

get_deskew(ch: int) float

Get channel deskew

Parameters:

ch (int) – channel number

Returns:

deskew

Return type:

float

get_expend(ch: int) str

Queries the Expand status of a channel.

Parameters:

ch (int) – channel number

Returns:

Expand status of a channel

Return type:

str

get_impedance(ch: int) int

Get channel impedance

Parameters:

ch (int) – channel number

Returns:

impedance value

Return type:

int

get_pos(ch: int) float

Get channel position

Parameters:

ch (int) – channel number

Returns:

position

Return type:

float

get_probe_ratio(ch: int) float

Get channel probe ratio

Parameters:

ch (int) – channel number

Returns:

probe ratio

Return type:

float

get_probe_type(ch: int) str
Parameters:

ch (int) – channel number

Returns:

voltage or current

Return type:

str

get_scale(ch: int) float

Get channel scale

Parameters:

ch (int) – channel number

Returns:

scale value

Return type:

float

is_invert(ch: int) bool
is_on(ch: int) bool
is_vernier(ch: int) bool

Check the adjustment mode of vertical scale.

Note

Invalid in some models.

Parameters:

ch (int) – channel number

Raises:

ValueError – Invalid for this model

Returns:

True or False

Return type:

bool

set_bandwidth(ch: int, value)

Set channel bandwidth

Parameters:
  • ch (int) – channel number

  • value (str or float) – FULL or bandwidth value

set_coupling(ch: int, mode: str)
Parameters:
  • ch (int) – channel number

  • mode (str) – DC, AC or GND

set_deskew(ch: int, value: float)

Set channel deskew

Parameters:
  • ch (int) – channel number

  • value (float) – deskew

set_expend(ch: int, expend: str)

Sets Expand from ground or from center for a channel.

Parameters:
  • ch (int) – channel number

  • expend (str) –

    GND : Expand by ground

    CENTer : Expand by center

set_impedance(ch: int, value: float)

Set channel impedance

Parameters:
  • ch (int) – channel number

  • value (float) – impedance value

set_invert_off(ch: int)

Set channel invert to OFF

Parameters:

ch (int) – channel number

set_invert_on(ch: int)

Set channel invert to ON

Parameters:

ch (int) – channel number

set_off(ch: int)

Set channel to OFF

Parameters:

ch (int) – channel number

set_on(ch: int)

Set channel to ON

Parameters:

ch (int) – channel number

set_pos(ch: int, vpos: float)

Set channel position

Parameters:
  • ch (int) – channel number

  • vpos (float) – position

set_probe_ratio(ch: int, ratio: float)

Set channel probe ratio

Parameters:
  • ch (int) – channel number

  • ratio (float) – probe ratio

set_probe_type(ch: int, type: str)
Parameters:
  • ch (int) – channel number

  • type (str) – voltage or current

set_scale(ch: int, scale: float)

Set channel scale

Parameters:
  • ch (int) – channel number

  • scale (float) – scale value

set_vernier_off(ch: int) bool

Set the adjustment mode of vertical scale to OFF.

Note

Invalid in some models.

Parameters:

ch (int) – channel number

Raises:

ValueError – Invalid for this model

Returns:

True or False

Return type:

bool

set_vernier_on(ch: int) bool

Set the adjustment mode of vertical scale to ON.

Note

Invalid in some models.

Parameters:

ch (int) – channel number

Raises:

ValueError – Invalid for this model

Returns:

True or False

Return type:

bool